Repo to hold bahmni offline code. This will support Chromium app and Android app as of now.
To run android app
//** Use Below commands in terminal **//
- 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
- export ANDROID_HOME=/Users/user/Library/Android/sdk export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home(Set Path if its not set already)
- Add the following sdk packages Android 5.1.1(API 22) platform
- checkout cd bahmni-offline/android
- cordova platform rm android
- cordova platform add android
- cordova build android /******************************/
- In Android Studio File -> New -> Import Project (bahmni-offline/android/platforms/android)
- Run the Project (Shift + F10) Or cordova run --emulator
- If the assets are not loaded, (This error appears on Emulator ->
Application Error, net::ERR_FILE_NOT_FOUND file:///android_asset/www/index.html was not found
) then hardcode the launchURL inConfigXmlParser.java -> public String getLaunchUrl() { return "file:///android_asset/www/index.html"; }
To run andoid test
- cd android/platforms/android
- ./gradlew clean connectedAndroidTest