Differences between revisions 7 and 8
Revision 7 as of 2015-08-01 10:06:13
Size: 1346
Editor: PieterSmit
Comment: Add app publish to playstore instructions, from ionic site.
Revision 8 as of 2017-11-08 19:18:11
Size: 1349
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
    * $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name     * $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore !HelloWorld-release-unsigned.apk alias_name
Line 25: Line 25:
    * $ zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk     * $ zipalign -v 4 !HelloWorld-release-unsigned.apk !HelloWorld.apk

IONIC (Cordova wrapper)

  • Links User Angular.js a javascript library

  • http://mcgivery.com/structure-of-an-ionic-app/

  • Bundled with ionic
    • Just in case anyone else runs across this thread, angular-resource is not bundled with ionic.
      • ionic.bundle.js is a concatenation of:
        • ionic.js, angular.js, angular-animate.js, angular-sanitize.js, angular-ui-router.js, ionic-angular.js
      • To add, add to index.html, right after ionic-bundle.js
        • <script src="lib/ionic/js/angular/angular-resource.min.js"></script>

Publish a app

  1. Only once gen key for app, stored in my-release-key.keystore

    • $ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
  2. Remove debug console
    • $ cordova plugin rm org.apache.cordova.console
  3. generate a release build for Android. Edit config.xml

    • $ cordova build --release android
  4. Sign the release apk
    • $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name

  5. zip align
    • $ zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk

  6. Go to playstore and publish

...

ionic (last edited 2017-11-08 19:18:11 by PieterSmit)