This is mostly for my own reference but I hope someone else can find it useful too :)
- Disable debugging in your AndroidManifest.xml file by setting android:debuggable="false” in the “application” node.
- cordova build android –release
- jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore yourkey.keystore app.apk alias_name (assuming you’ve generated a key beforehand using keytool in the JDK bin directory)
- zipalign -v 4 app-release-unsigned.apk app.apk (obviously replace “app” with your app name)
Zipalign must be the last thing that happens!
Useful links:
http://developer.android.com/about/dashboards/index.html#Platform
http://chris-allen-lane.com/2012/12/phonegap-compiling-a-release-apk-without-using-phonegap-build/
http://iphonedevlog.wordpress.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/
Useful links:
http://developer.android.com/about/dashboards/index.html#Platform
http://chris-allen-lane.com/2012/12/phonegap-compiling-a-release-apk-without-using-phonegap-build/
http://iphonedevlog.wordpress.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/