A simple app with News API and TODO
- Clone the app
- Run "npm install"
- Run "ionic serve" or "ionic cordova run browser"
Apk file is also attached "IonicApp.apk"
-
Set paths
- export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
- export ANDROID_HOME=$HOME/Android/Sdk/
- export PATH=$PATH:$ANDROID_HOME/tools
-
ionic cordova platform rm android
-
ionic cordova platform add android
-
ionic cordova build --release android
-
zip -d platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk META-INF/*
-
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ionicapp.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk ionic
It will prompt for password : simpleapp123
- zipalign -v 4 platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk IonicApp.apk