Book Image

PhoneGap By Example

Book Image

PhoneGap By Example

Overview of this book

Table of Contents (17 chapters)
PhoneGap By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Release to Google Play


Releasing to Google Play is a little different. First of all, let's check the cordova/platforms/android/AndroidManifest.xml configuration. We need to specify:

  • versionCode: Google Play will not accept the application if versionCode is different from the previous versions in the store

  • versionName: This is not used for anything except to display to users. It's a string, so we can name it the way we want

  • Set debuggable to false, for example, android:debuggable="false"

Create a keystore file

Now, we need to create a keystore file and set a password. We should ensure that we do not lose this file because we need it with every submission to the store. If we create a new one, the application would be interpreted as a new application and not as another version of the same application.

Tip

By default, the debug configuration uses the debug keystore located in $HOME/.android/debug.keystore.

We can generate a private key using Android SDK and JDK commands. Let's do this with the following...