Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6E98F150 for ; Fri, 12 Dec 2014 13:13:11 +0000 (UTC) Received: (qmail 76700 invoked by uid 500); 12 Dec 2014 13:13:11 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 76663 invoked by uid 500); 12 Dec 2014 13:13:11 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 76562 invoked by uid 99); 12 Dec 2014 13:13:10 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2014 13:13:10 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 209F5A290E3; Fri, 12 Dec 2014 13:13:09 +0000 (UTC) From: fredgalvao To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-docs pull request: Instructions about signing and releasin... Content-Type: text/plain Message-Id: <20141212131310.209F5A290E3@tyr.zones.apache.org> Date: Fri, 12 Dec 2014 13:13:09 +0000 (UTC) Github user fredgalvao commented on a diff in the pull request: https://github.com/apache/cordova-docs/pull/212#discussion_r21742998 --- Diff: docs/en/3.4.0/guide/platforms/android/index.md --- @@ -242,3 +242,31 @@ You can push the app to the device from the command line: Alternately within Eclipse, right-click the project and choose __Run As → Android Application__. + +## Signing and releasing your android application + +Create a keystore file and a keystore alias as described at [Android Developer Site](http://developer.android.com/tools/publishing/app-signing.html#cert). AFter that, follow these steps. + +* Run `cordova build android` from the folder containing `www` folder +* `cd` to this path `platforms/android/` +* Make sure `ant.properties` in this folder contains these keys and right values +> key.store= +> +> key.alias= +> +> key.store.password= +> +> key.alias.password= +> # there is a way to keep these values outside version control. Refer to the Reference #2 below +> +* increment the `versionCode` in `AndroidManifest.xml` in this folder. If this is your very first release you can leave it as "1". +* `cd` to `ant-build` folder from this folder --- End diff -- Why are these last steps suggested considering the user is not using cordova CLI? Because if he is using CLI (which the first step suggests), he can just create the `ant.properties` file and change the version in `config.xml` instead of editing `AndroidManifest.xml`directly, and then run `cordova build android --release` in the project root. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org