-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop'
- Loading branch information
Showing
16 changed files
with
182 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,21 @@ Android application for DHIS2 which provides basic dashboard functionality. | |
Get the APK from the release page: | ||
|
||
https://github.com/dhis2/dhis2-android-dashboard/releases | ||
|
||
# Testing | ||
If you want to try the application out with a demo database, you can use the following: | ||
- Server: https://play.dhis2.org/demo | ||
- Username: admin | ||
- Password: district | ||
|
||
# How to Download and Set up the development environment in Android Studio | ||
|
||
Currently, the compatibility is guaranteed with 2.27, 2.28 and 2.29 servers, use develop branch in dhis2-android-dashboard repository. | ||
|
||
When cloning from zero, it's strongly recommended to do it as follows: | ||
|
||
``` | ||
git clone -b develop [email protected]:dhis2/dhis2-android-dashboard.git | ||
``` | ||
|
||
Then open Android Studio, select "File" --> "Open", and then select the downloaded folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
api/src/main/java/org/hisp/dhis/android/dashboard/api/models/Data.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package org.hisp.dhis.android.dashboard.api.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import org.hisp.dhis.android.dashboard.api.utils.StringUtils; | ||
|
||
public final class Data { | ||
|
||
|
||
@JsonProperty("write") | ||
boolean write; | ||
|
||
@JsonProperty("read") | ||
boolean read; | ||
|
||
|
||
@JsonIgnore | ||
public boolean isRead() { | ||
return read; | ||
} | ||
|
||
@JsonIgnore | ||
public void setRead(boolean read) { | ||
this.read = read; | ||
} | ||
|
||
@JsonIgnore | ||
public boolean isWrite() { | ||
return write; | ||
} | ||
|
||
@JsonIgnore | ||
public void setWrite(boolean write) { | ||
this.write = write; | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public String toString() { | ||
return StringUtils.create() | ||
.append("Data {") | ||
.append(", write=").append(write) | ||
.append(", read=").append(read) | ||
.append("}") | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.