Version 4 (modified by Fran Boon, 4 years ago) ( diff )


Build for Release

  • Ensure the build is able to be run on the oldest devices possible (v6.0): platforms/android/
    # 6.0 Marshmallow
  • 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\29.0.3)
      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.