DHIS 2 [1] is health management information system and DHIS Mobile covers the wide area of mobile development related to DHIS2, with focus on a wide portfolio of solutions for utilizing mobile technology.

Let build dhis2-android-dashboard from source [2].

1. Get git clone from source [2]. (You can use ‘legacy’ branch for build for now, No breaks)

2. Get SDK version and package for the build from Android SDK Manger.

Preferred SDK versions

  • targetSdkVersion 22
  • compileSdkVersion 22
  • buildToolsVersion 22.0.1

‘dhis2-android-dashboard:api’  is required  Android Support Repository. Better you install if you have not install it from Android SDK Manager.

If you have not set ANDROID_HOME, set it first.

set ANDROID_HOME=D:\Program Files (x86)\Android\android-studio\sdk

3. It comes with gradlew, There is nothing to do. 

Run the ‘gradlew.bat

image

If you like UI you can try ‘gradlew –gui’

image

 

Some tips for ‘gradle’

--offline : The build should operate without accessing network resources
--info : Set log level to info
--recompile-scripts : Forces scripts to be recompiled, bypassing caching
--refresh-dependencies : Refresh the state of dependencies
--profile : Build execution report
--all : Shows additional detail in the task listing

 

[1] https://www.dhis2.org/documentation

[2] https://github.com/dhis2/dhis2-android-dashboard

0

Add a comment

I am
I am
Archives
Total Pageviews
Total Pageviews
2 0 5 7 7 0 6
Categories
Categories
Loading