Version 1 (modified by Fran Boon, 5 years ago) ( diff )


Build for Release

  • Modify the Manifest to be able to use the app on older devices (v4.4): platforms/android/AndroidManifest.xml
    <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" />
  • Configure the default server, if-required: www/config/settings.js
    'url': {
            type: 'url',
            defaultValue: '',
            writable: false,
  • @ToDo: Branding
  • create the non-debug APK
    cd eden_mobile
    cordova build --release android
  • File available as: platforms/android/build/outputs/apk/android-release-unsigned.apk
  • Sign the app:
      # Generate Private Key (just once, outside the eden_mobile folder)
      # keytool comes with your JRE, so may need to ensure it's bin directory is in your PATH
      keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
      # Optimise (zipalign comes with Android SDK build-tools, so may need to ensure it's in your PATH, e.g. %USERPROFILE%\AppData\local\android\sdk\build-tools\25.0.2)
      zipalign -v -p 4 android-release-unsigned.apk android-release-unsigned-aligned.apk
      # Sign (apksigner comes with Android SDK build-tools too)
      apksigner sign --ks my-release-key.jks --out android-release.apk android-release-unsigned-aligned.apk
Note: See TracWiki for help on using the wiki.