Uncategorized

Prepare App for Google Play Upload

1- Build release :

ionic cordova build android –prod –release

2- Generate release key :

keytool -genkey -v -keystore my-release-key.keystore -alias releaseKeyStore -keyalg RSA -keysize 2048 -validity 10000

Add password to your key ,ex: 123456

3- Sign your app with the generated key :

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk releaseKeyStore

4- Compress your app:

/PATH-TO/Android/sdk/build-tools/23.0.3/zipalign  -v 4 platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk app.apk

5- Ready to upload :

Upload to google play store or install it directly on the device .