- Create app with ionic
ionic cordova build android --prod --release
- Create key
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
- Copy released file to root path
cp ./platforms/android/build/outputs/apk/android-release-unsigned.apk android-release-unsigned.apk
- Sign apk with my-release-key.jks and enter your password
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks android-release-unsigned.apk my-alias
- Optimize app
~/Library/Android/sdk/build-tools/26.0.2/zipalign -f -v 4 android-release-unsigned.apk scanShare.apk
- Create app with ionic
ionic cordova build ios --prod --release
- Enter x-code and run Product -> Archive
- Click Upload and follow the steps