Hybrid-app in Ionic / Cordova for SAR personnel
You need to have following assets available on PATH
to build this app
- Node 7+, install Node
- Ionic 2, install Ionic
- Gradle 4, install Gradle
- Java JRE or SDK 8, install Java
- Android SDK Platform 25, install Android Studio
- Xcode, install Xcode
- ios-deploy, install ios-deploy (use npm)
- CocoaPods, install CocoaPods
After installing Ionic2, use the following command to check requirements
$ cordova requirements
This should produce an output similar to this
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-25,android-24,android-23
Gradle: installed /path/to/gradle
Requirements check results for ios:
Apple OS X: installed darwin
Xcode: installed 8.3.3
ios-deploy: installed 1.9.1
CocoaPods: installed
In order to test app on Android run following commands.
$ yarn
$ ionic cordova platform add
$ ionic cordova run android
Since this repo is public you need to fist get PRIVATE signing keys release-signing.properties
,
sar-status-personnel.jks
and place them into platforms/android/
.
Once done you can release the app with following command.
Before every release remember to increace build number in config.xml
$ ionic cordova build android --prod --release
Upload platforms/android/build/outputs/apk
into Google Play.
$ ionic cordova run ios
$ ionic cordova run ios --device
Follow this guide https://ionicframework.com/docs/intro/deploying/ .
$ ionic cordova platform add ios
$ ionic cordova build ios