You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2014/10/24 21:03:58 UTC
docs commit: CB-7869 Provide more info regarding release APKs
Repository: cordova-docs
Updated Branches:
refs/heads/master 83a113c14 -> a5168e9bd
CB-7869 Provide more info regarding release APKs
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/a5168e9b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/a5168e9b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/a5168e9b
Branch: refs/heads/master
Commit: a5168e9bd02966d21eef5abdd0645b2e229caa4e
Parents: 83a113c
Author: Marcel Kinard <cm...@gmail.com>
Authored: Fri Oct 24 15:01:15 2014 -0400
Committer: Marcel Kinard <cm...@gmail.com>
Committed: Fri Oct 24 15:03:36 2014 -0400
----------------------------------------------------------------------
docs/en/edge/guide/platforms/android/index.md | 23 ++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a5168e9b/docs/en/edge/guide/platforms/android/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/android/index.md b/docs/en/edge/guide/platforms/android/index.md
index 9ba069e..f69ca67 100644
--- a/docs/en/edge/guide/platforms/android/index.md
+++ b/docs/en/edge/guide/platforms/android/index.md
@@ -158,11 +158,13 @@ unresolved problems. If so, follow these additional steps:
## Build the Project
If you are using the CLI in development, the project directory's
-top-level `www` directory contains the source files. Run either of
+top-level `www` directory contains the source files. Run any of
these within the project directory to rebuild the app:
- $ cordova build
- $ cordova build android # do not rebuild other platforms
+ $ cordova build # build all platforms that were added
+ $ cordova build android # build debug for only Android
+ $ cordova build android --debug # build debug for only Android
+ $ cordova build android --release # build release for only Android
If you are using the Android-specific shell tools in development,
there is a different approach. Once you generate the project, the
@@ -171,7 +173,7 @@ Subsequent commands are available in its `cordova` subdirectory.
The `build` command cleans project files and rebuilds the app. Here is
the syntax for both Mac and Windows. The first pair of examples
-generate debugging information, and the second signs the apps for
+generate debugging information, and the second builds the apps for
release:
$ /path/to/project/cordova/build --debug
@@ -180,6 +182,19 @@ release:
$ /path/to/project/cordova/build --release
C:\path\to\project\cordova\build.bat --release
+When building for release, if you add the following definitions to your
+`local.properties` file, then your APK will get signed and aligned such that
+it will be ready for upload to the Google Play store:
+
+ key.store=/Users/me/Developer/mykeystore.jks
+ key.alias=mykeyalias
+
+If the keystore and/or the aliased key have a password, the build script will
+prompt you for the password. You do not need to define the passwords in a
+properties file. If you do want to avoid the prompt, you can define them in
+`local.properties` as `key.store.password` and `key.alias.password`. Be aware
+of security concerns with those passwords if you do so.
+
## Configure an Emulator
You can use either the `cordova` CLI utility or Cordova's
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org