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=<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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to