Differences between revisions 6 and 7
Revision 6 as of 2015-06-09 19:46:58
Size: 607
Editor: PieterSmit
Comment:
Revision 7 as of 2015-08-01 10:06:13
Size: 1346
Editor: PieterSmit
Comment: Add app publish to playstore instructions, from ionic site.
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:

== 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
 1. Remove debug console
    * $ cordova plugin rm org.apache.cordova.console
 1. generate a release build for Android. Edit '''config.xml'''
    * $ cordova build --release android
 1. Sign the release apk
    * $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
 1. zip align
    * $ zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk
 1. Go to playstore and publish
    * https://play.google.com/apps/publish/


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
  6. Go to playstore and publish

...

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