Releases: dhis2/dhis2-android-sdk
Releases · dhis2/dhis2-android-sdk
Release 0.15.0
New features:
- Persist constants (ANDROSDK-599)
- Add "count()" accessor in CollectionRepositories (ANDROSDK-750)
- Add "not equals" filter in repositories (ANDROSDK-693)
- Add "inPeriods" method in Date filters (ANDROSDK-743)
- Repository paging (ANDROSDK-749)
- Public method to get PeriodId from date and PeriodType (ANDROSDK-680)
- Children selection: Programs (ANDROSDK-711)
- Filter programs by orgunit (ANDROSDK-744)
Changes in D2:
- Repositories: use
.withAllChildren().get()
instead ofgetWithAllChildren()
. - (Optional) D2 Initialization: OkHttpClient and DatabaseAdapter initialized in D2. Details in D2Manager test (ANDROSDK-712, ANDROSDK-713)
Bugfix:
- Wipe data resources on data wipe (ANDROSDK-751)
Release 0.14.5
Bugfix:
- Relationships by TEI not being returned (ANDROSDK-700)
Release 0.14.4
Bugfix:
- Do not delete enrollment notes (ANDROSDK-678)
Release 0.14.3
New features:
- Persist OptionGroups (ANDROSDK-652)
- Persist HierarchyLevels (ANDROSDK-639)
- Support for option and optionGroup in ProgramRuleActions (ANDROSDK-643)
- Rendering type for ProgramStageDataElements and ProgramTrackedEntityAttributes (ANDROSDK-626)
- Persist all authorities (ANDROSDK-661)
- Add FormName in TEI Attributes (ANDROSDK-662)
- Program indicator engine: return string results (ANDROSDK-608).
- Program indicator engine: support for "event_count", "due_date", "enrollment_status" variables.
Compatibility 2.31:
- Add featureType (captureCoordinates) in programs (ANDROSDK-665)
Bugfixing:
- Bad link enrollment <-> event on post (ANDROSDK-654)
Release 0.14.0
Compatibility with 2.31.0 and 2.31.1
New features:
- TrackedEntityTypeAttribute entity: TrackedEntityType - Attribute link (ANDROSDK-492)
- UserRoles: they are persisted in database. Required for programRules (d2:hasUserRole function)(ANDROSDK-170)
- Identifiable and nameable filters: byUid, byName, byCreated, etc.
- Custom filters: category, dataElementm, dataSet.
- Method one() in CollectionRepositories.
- Dataset module: repo allows access to datasets with nested fields (ANDROSDK-526).
- Program module: repo allows access to programs without nested fields (ANDROSDK-531)
- User module: new repos (user, userCredentials and authenticatedUser)
Changes in D2:
- "login", "logout" and "isLoggedIn" methods moved to userModule. Use d2.userModule instead of d2.
- "syncDataValues" method. Use "d2.dataValueModule().dataValues.upload()" instead of "d2.syncDataValues()".
- "syncAggregatedData" method. Use "d2.aggregatedModule().data.download()" instead of "d2.syncAggregatedData()".
- Events: move "downloadSingleEvents()" to "d2.eventModule().downloadSingleEvents()" and "syncSingleEvents()" to "d2.eventModule().events.upload()".
- TrackedEntityInstances: move "downloadTrackedEntityInstances()", "downloadTrackedEntityInstancesByUid()" and "queryTrackedEntityInstances()" to "d2.trackedEntityModule(). Rename "syncTrackedEntityInstances()" to "upload()".
- "syncDataSetCompleteRegistrations" method. Use "d2.dataSetModule().dataSetCompleteRegistrations.upload()" instead.
- ReservedValues: move methods "popTrackedEntityAttributeReservedValue()" and "syncTrackedEntityAttributeReservedValues" to "d2.trackedEntityModule().reservedValueManager".
- Move method "evaluateProgramIndicator()" to "d2.programModule().programIndicatorEngine".
Bug fixes:
- Manage updates in userOrgunits (ANDROSDK-398)
Release 0.13.1
New features:
- Icons R2 release (ANDROSDK-485)
Release 0.13.0
New features:
- Authorities: new table called "authority". It only stores relevant user authorities (ANDROSDK-465)
- Add created in D2Error (ANDROSDK-469)
- TEIs and single events are persisted page by page. If one page fails, the others are persisted (ANDROSDK-464, ANDROSDK-471)
- LastUpdated in download TrackedEntityInstances (ANDROSDK-466) and events (ANDROSDK-486)
- Post only modified elements in sync TEI up (ANDROSDK-473)
Changes in D2:
- Move performance service to maintenance module (ANDROSDK-460)
- Method d2.downloadTrackedEntityInstances returns a Unit instead of a list of TEIs
Bug fixes:
- Download teis / events use orgunits in both capture and search scope.
- Event download fails depending on number of events and server status (ANDROSDK-480)
Release 0.12.0
New features:
- Data Access in category options (ANDROSDK-418)
- Categories module with children (nested fields) (ANDROSDK-368, ANDROSDK-420, ANDROSDK-409)
- Maintenance module: performance evaluation (ANDROSDK-446), foreign key violations (ANDROSDK-444), sync errors (ANDROSDK-445)
- Add AUTOCOMPLETE render type (ANDROSDK-467)
- New fields in TrackedEntityInstanceQuery: programStartDate and programEndDate (ANDROSDK-463)
- TrackedEntityAttributeReservedValue optimization (ANDROSDK-452)
Changes in d2:
- Remove attributeCategoryOptions from EventModel (ANDROSDK-406)
- Enrollment notes: two new fields "uid" and "state". Same behaviour than other type of data
- New error code at login: NOT_FOUND (at login, it means there is not a valid dhis2 instance)
- D2CallException renamed to D2Error and moved to "maintenance" package.
- core-rules and core-rules-android modules have been deleted.
- Changes in d2 functions related to trackedEntityAttributeReservedValues.
Bug fixes:
- Strong behavior in Note due to date format (ANDROSDK-404)
- Enrollment note duplication (ANDROSDK-417)
Internal:
- Remove unused CategoryCategoryComboLink (ANDROSDK-412)
- Download only necessary category / categoryCombos (ANDROSDK-379)
Release 0.10.0
New features:
- Support login offline (ANDROSDK-274)
Bug fixes:
- TrackedEntityInstanceQuery: send an error when orgunit list is too long (ANDROSDK-247)
- Map event and enrollment coordinate as double on post (ANDROSDK-272)
- Tei last page download (ANDROSDK-270)
Changes in D2:
- In EventModel: rename enrollment_uid to enrollment (method name only).
- In ProgramTrackedEntityAttributeModel: rename allowFutureDates to allowFutureDate (method name only).
- In Enrollment: rename dateOfEnrollment to enrollmentDate, and dateOfIncident to incidentDate (method name only).
- New error codes for login offline (see D2ErrorCode): NO_AUTHENTICATED_USER_OFFLINE, DIFFERENT_AUTHENTICATED_USER_OFFLINE, DIFFERENT_SERVER_OFFLINE
Internal:
- Pojo-model prototype: User (ANDROSDK-253)
Release 0.9.7
New features:
- Add section forms support (ANDROSDK-88)
- Catch socket timeout exception (ANDROSDK-261)
- Manage TEI downloaded as relationship (ANDROSDK-156)
- Support for SENDMESSAGE program rule action (ANDROSDK-267)
- Support for SCHEDULEMESSAGE program rule action (ANDROSDK-268)
Bug fixes:
- Consider data element access in programs (ANDROSDK-251)
- Consider tracked entity attribute access in programs (ANDROSDK-252)
- Program rules: catch exception in evaluator (ANDROSDK-265)
Changes in D2:
- New D2 Exception: SOCKET_TIMEOUT
- New TEI state: RELATIONSHIP
- D2 Exception: INVALID_DHIS_VERSION (already there)
Internal:
- Add Stetho (possible library conflicts with App)