cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fredgalvao <...@git.apache.org>
Subject [GitHub] cordova-docs pull request: Instructions about signing and releasin...
Date Fri, 12 Dec 2014 13:13:09 GMT
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 &rarr; 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=<absolute_path_to_keystore_file_on_disk>
    +>
    +> key.alias=<alias_value>
    +>
    +> key.store.password=<store_password>
    +>
    +> key.alias.password=<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


Mime
View raw message