Repo to hold bahmni offline code. This will support Chromium app and Android app as of now.
To run android app
- install Node.js. if you dont have it
- npm install -g cordova ionic, for any issues with ionic installation refer http://ionicframework.com/getting-started/
- npm install -g try-thread-sleep
- Follow cordova platform guide to install android sdk, tools. Instead of Android studio android support plugin for intellij can also be used. http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html
- Add the following sdk packages (http://developer.android.com/sdk/installing/adding-packages.html) latest sdk tools latest platform tools latest build tools Android 5.1.1(API 22) platform Android 4.0.3(API 15) platform latest Android Support Repository latest Android Support Library
- Checkout out repo
- cd bahmni-offline/android
- ionic platform remove android
- ionic platform add android
- git checkout .
- ionic build android
- In Intellij File -> New -> Project existing sources (bahmni-offline/android/platforms/android)
- to deploy the app shift + f10
To run andoid test
- cd android/platforms/android
- ./gradlew clean connectedAndroidTest