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 ifversionCode
is different from the previous versions in the storeversionName
: This is not used for anything except to display to users. It's a string, so we can name it the way we wantSet 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...