Changes between Initial Version and Version 1 of DeveloperGuidelines/EdenMobile/ProductionRelease


Ignore:
Timestamp:
10/19/17 14:08:58 (5 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/EdenMobile/ProductionRelease

    v1 v1  
     1= Build for Release =
     2 - Modify the Manifest to be able to use the app on older devices (v4.4): {{{platforms/android/AndroidManifest.xml}}}
     3{{{
     4<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" />
     5}}}
     6 - Configure the default server, if-required: {{{www/config/settings.js}}}
     7{{{
     8'url': {
     9        type: 'url',
     10        defaultValue: 'http://my.server.org/eden',
     11        writable: false,
     12}}}
     13 - @ToDo: Branding
     14 - create the non-debug APK
     15{{{
     16cd eden_mobile
     17cordova build --release android
     18}}}
     19 - File available as: {{{platforms/android/build/outputs/apk/android-release-unsigned.apk}}}
     20 - Sign the app:
     21  * https://developer.android.com/studio/publish/app-signing.html
     22  * https://cordova.apache.org/docs/en/latest/guide/platforms/android/
     23{{{
     24# Generate Private Key (just once, outside the eden_mobile folder)
     25# keytool comes with your JRE, so may need to ensure it's bin directory is in your PATH
     26keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
     27# 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)
     28zipalign -v -p 4 android-release-unsigned.apk android-release-unsigned-aligned.apk
     29# Sign (apksigner comes with Android SDK build-tools too)
     30apksigner sign --ks my-release-key.jks --out android-release.apk android-release-unsigned-aligned.apk
     31}}}