Automatically build Android APK for Ionic 3 project stored in GitLab

Setup GitLab CI. Your configuration file will look something like this

Optionally put a link to file in your README.md that will look like

https://gitlab.com/YOUR_ORGANIZATION_NAME/YOUR_PROJECT_NAME/builds/artifacts/master/raw/platforms/android/build/outputs/apk/android-debug.apk?job=build_android

How-to: Display images obtained from cordova-plugin-camera in ionic with live reload

  1. Install cordova-plugin-file.
  2. Obtain file URI from cordova-plugin-camera and convert it to cdvfile://

How-to: Use angular-templatecache with ionic

From project’s directory execute next command in order to install angular-templatecache

Modify your gulpfile.js

Don’t forget to reference ‘templates’ dependency in your www/js/app.js

Don’t forget to reference www/js/dist/templates.js in your index.html file.

Start debugging with

Run next command to rebuild template cache