Hello!
Today I am going to talk about how to make an android build in release mode and sign it to submit on Google play.
Introduction
If you want to make a build to push over google play then you have to follow these steps:
- Make a build in release mode by running
cordova build android --release
- Create a code signing key for android.
- Signing that build
- Verify that your APK is signed
- Align the final APK package using zipalign.
Now here is the details explanation about above steps:
Make a build in release mode by running
Just go inside your application’s directory and run command
Create a code signing key
To create a code signing key run command
Signing release build
Now sign your build by running the command
Verify apk
Run command
Align the final APK package using zipalign
Run command
zipalign ensures that all uncompressed data starts with a particular byte alignment relative to the start of the file, which reduces the amount of RAM consumed by an app.
Now you have a android build in released mode. You can upload it to Google play.
Note: Please backup your keystore file because if you lost it then no way to recover it. If you want to upload the new version of an your application over google play then your new apk must be signed by the same key.