Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3F249200D4C for ; Thu, 30 Nov 2017 19:57:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3CCCA160BF6; Thu, 30 Nov 2017 18:57:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 82D58160C18 for ; Thu, 30 Nov 2017 19:57:52 +0100 (CET) Received: (qmail 99699 invoked by uid 500); 30 Nov 2017 18:57:51 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 99589 invoked by uid 99); 30 Nov 2017 18:57:51 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2017 18:57:51 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4056885717; Thu, 30 Nov 2017 18:57:50 +0000 (UTC) Date: Thu, 30 Nov 2017 18:57:54 +0000 To: "commits@cordova.apache.org" Subject: [cordova-android] 04/05: CB-13621: Wrote similar warning to CB-12948 on iOS. We no longer support update. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: bowserj@apache.org In-Reply-To: <151206827008.29740.9063182215222942859@gitbox.apache.org> References: <151206827008.29740.9063182215222942859@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: cordova-android X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: 52fd32c8374ec33a7cea6cefe531f938d4b047dd X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20171130185750.4056885717@gitbox.apache.org> archived-at: Thu, 30 Nov 2017 18:57:53 -0000 This is an automated email from the ASF dual-hosted git repository. bowserj pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-android.git commit 52fd32c8374ec33a7cea6cefe531f938d4b047dd Author: Joe Bowser AuthorDate: Thu Nov 30 10:40:07 2017 -0800 CB-13621: Wrote similar warning to CB-12948 on iOS. We no longer support update. --- bin/lib/create.js | 45 +++++++++++---------------------------------- 1 file changed, 11 insertions(+), 34 deletions(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index c96ea6c..7e39f87 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -348,39 +348,16 @@ function generateDoneMessage (type, link) { // Returns a promise. exports.update = function (projectPath, options, events) { - options = options || {}; - - return Q() - .then(function () { - var isAndroidStudio = AndroidStudio.isAndroidStudioProject(projectPath); - var isLegacy = !isAndroidStudio; - var manifest = null; - var builder = 'gradle'; - - if (isAndroidStudio) { - manifest = new AndroidManifest(path.join(projectPath, 'app', 'main', 'AndroidManifest.xml')); - builder = 'studio'; - } else { - manifest = new AndroidManifest(path.join(projectPath, 'AndroidManifest.xml')); - builder = 'gradle'; - } - - if (Number(manifest.getMinSdkVersion()) < MIN_SDK_VERSION) { - events.emit('verbose', 'Updating minSdkVersion to ' + MIN_SDK_VERSION + ' in AndroidManifest.xml'); - manifest.setMinSdkVersion(MIN_SDK_VERSION); - } - - manifest.setDebuggable(false).write(); - - var projectName = manifest.getActivity().getName(); - var target_api = check_reqs.get_target(); - - exports.copyJsAndLibrary(projectPath, options.link, projectName, isLegacy); - exports.copyScripts(projectPath); - exports.copyBuildRules(projectPath, isLegacy); - exports.writeProjectProperties(projectPath, target_api); - exports.prepBuildFiles(projectPath, builder); - events.emit('log', generateDoneMessage('update', options.link)); - }).thenResolve(projectPath); + var errorString = + 'An in-place platform update is not supported. \n' + + 'The `platforms` folder is always treated as a build artifact in the CLI workflow.\n' + + 'To update your platform, you have to remove, then add your android platform again.\n' + + 'Make sure you save your plugins beforehand using `cordova plugin save`, and save \n' + 'a copy of the platform first if you had manual changes in it.\n' + + '\tcordova plugin save\n' + + '\tcordova platform rm android\n' + + '\tcordova platform add android\n' + ; + + return Q.reject(errorString); }; -- To stop receiving notification emails like this one, please contact "commits@cordova.apache.org" . --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org