Skip to content

Commit

Permalink
Merge pull request #141 from dhis2/hotbugfixing
Browse files Browse the repository at this point in the history
Adding syncTEI() to D2
  • Loading branch information
dhis2-android authored Feb 9, 2018
2 parents 3657ddb + a8882cc commit 723a314
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ ext {
buildToolsVersion: "25.0.2",
minSdkVersion : 15,
targetSdkVersion : 25,
versionCode : 42_2,
versionName : "0.4.2.2-SNAPSHOT"
versionCode : 42_3,
versionName : "0.4.2.3-SNAPSHOT"
]

libraries = [
Expand Down
11 changes: 11 additions & 0 deletions core/src/main/java/org/hisp/dhis/android/core/D2.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import org.hisp.dhis.android.core.common.GenericHandler;
import org.hisp.dhis.android.core.common.IdentifiableObjectStore;
import org.hisp.dhis.android.core.common.ObjectStore;
import org.hisp.dhis.android.core.common.Payload;
import org.hisp.dhis.android.core.configuration.ConfigurationModel;
import org.hisp.dhis.android.core.data.api.FieldsConverterFactory;
import org.hisp.dhis.android.core.data.api.FilterConverterFactory;
Expand Down Expand Up @@ -139,6 +140,8 @@
import org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueHandler;
import org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStore;
import org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStoreImpl;
import org.hisp.dhis.android.core.trackedentity.TrackedEntityInstance;
import org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceEndPointCall;
import org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceHandler;
import org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceService;
import org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStore;
Expand Down Expand Up @@ -166,6 +169,7 @@
import org.hisp.dhis.android.core.user.UserStoreImpl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Callable;

Expand Down Expand Up @@ -521,6 +525,13 @@ public Call<Response> syncTrackerData() {
trackedEntityInstanceHandler);
}

@NonNull
public Call<Response<Payload<TrackedEntityInstance>>> syncTEI(String trackedEntityInstanceUid) {
return new TrackedEntityInstanceEndPointCall(
trackedEntityInstanceService, databaseAdapter, trackedEntityInstanceHandler,
resourceHandler, new Date(), trackedEntityInstanceUid);
}

@NonNull
public Call<Response<WebResponse>> syncTrackedEntityInstances() {
return new TrackedEntityInstancePostCall(trackedEntityInstanceService,
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ org.gradle.jvmargs=-Xmx1536m
# Properties which are consumed by plugins/gradle-mvn-push.gradle plugin.
# They are used for publishing artifact to snapshot repository.

VERSION_NAME=0.4.2.2-SNAPSHOT
VERSION_CODE=42_2
VERSION_NAME=0.4.2.3-SNAPSHOT
VERSION_CODE=42_3
GROUP=org.hisp.dhis

POM_DESCRIPTION=Android SDK for DHIS 2.
Expand Down

0 comments on commit 723a314

Please sign in to comment.