Skip to content

Commit

Permalink
Migrate FHIR SDK Artifacts to the latest version changes (#3640)
Browse files Browse the repository at this point in the history
* Migrate FHIR SDK Artifacts to the latest version changes

* Reduce the verbosity of logs on CI 🧱

* Refactor FhirCarePlanGeneratorTest unit test for Future Proofing 💚

---------

Co-authored-by: Benjamin Mwalimu <[email protected]>
  • Loading branch information
ndegwamartin and dubdabasoduba authored Dec 1, 2024
1 parent 6e177fd commit 6197f7d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1246,15 +1246,31 @@ class FhirCarePlanGeneratorTest : RobolectricTest() {
"\$this + 3 'month'",
)!!
.value

val expectedAssertionDates: MutableList<Date> =
mutableListOf(
fhirCarePlanGenerator
.evaluateToDate(
DateTimeType(ancStart),
"\$this + 1 'month'",
)!!
.value,
)

for (index in 1 until this.size) {
expectedAssertionDates.add(
fhirCarePlanGenerator
.evaluateToDate(
DateTimeType(expectedAssertionDates.last()),
"\$this + 1 'month'",
)!!
.value,
)
}

this.forEachIndexed { index, task ->
assertEquals(
(fhirCarePlanGenerator
.evaluateToDate(
DateTimeType(ancStart),
"\$this + ${index + 1} 'month'",
)!!
.value)
.asYyyyMmDd(),
expectedAssertionDates[index].asYyyyMmDd(),
task.executionPeriod.start.asYyyyMmDd(),
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"resourceType": "PlanDefinition",
"id": "132157",
"url": "https://my-opensrp-server.org/my/globally/unique/url/132157",
"meta": {
"versionId": "1",
"lastUpdated": "2022-06-20T22:30:39.217+00:00"
Expand Down
5 changes: 1 addition & 4 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.suppressUnsupportedCompileSdk=34
android.jetifier.ignorelist=jackson-core
org.gradle.warning.mode=all

org.gradle.logging.level=INFO

org.gradle.warning.mode=all
org.gradle.caching=false
org.gradle.parallel=true
org.gradle.configureondemand=true

android.enableR8.fullMode=true
android.enableR8.verbose=true
4 changes: 2 additions & 2 deletions android/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ espresso-core = "3.6.1"
fhir-sdk-common = "0.1.0-alpha05-preview3-SNAPSHOT"
fhir-sdk-contrib-barcode = "0.1.0-beta3-preview7-rc1-SNAPSHOT"
fhir-sdk-contrib-locationwidget = "0.1.0-alpha01-preview2-rc1-SNAPSHOT"
fhir-sdk-data-capture = "1.2.0-preview4-SNAPSHOT"
fhir-sdk-engine = "1.0.0-preview16-SNAPSHOT"
fhir-sdk-data-capture = "1.2.0-preview5-SNAPSHOT"
fhir-sdk-engine = "1.0.0-preview17-SNAPSHOT"
fhir-sdk-knowledge = "0.1.0-alpha03-preview5-rc1-SNAPSHOT"
fhir-sdk-workflow = "0.1.0-alpha04-preview10-rc1-SNAPSHOT"
fragment-ktx = "1.8.3"
Expand Down

0 comments on commit 6197f7d

Please sign in to comment.