Skip to content

Commit

Permalink
Adapt to changes in androsdk-1682
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz authored and andresmr committed Dec 18, 2023
1 parent 806208f commit 75fc8fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SettingsRepository(
null
}
private val smsConfig: ConfigCase.SmsConfig
get() = d2.smsModule().configCase().smsModuleConfig.blockingGet()
get() = d2.smsModule().configCase().getSmsModuleConfig().blockingGet()

fun dataSync(): Single<DataSettingsViewModel> {
return Single.just(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ interface SMSSyncProvider {
}

fun expectsResponseSMS(): Boolean {
return d2.smsModule().configCase().smsModuleConfig.blockingGet().isWaitingForResult
return d2.smsModule().configCase().getSmsModuleConfig().blockingGet().isWaitingForResult
}

fun getGatewayNumber(): String {
return d2.smsModule().configCase().smsModuleConfig.blockingGet().gateway
return d2.smsModule().configCase().getSmsModuleConfig().blockingGet().gateway
}

fun isSMSEnabled(isTrackerSync: Boolean): Boolean {
Expand All @@ -51,7 +51,7 @@ interface SMSSyncProvider {
}

val smsModuleIsEnabled =
d2.smsModule().configCase().smsModuleConfig.blockingGet().isModuleEnabled
d2.smsModule().configCase().getSmsModuleConfig().blockingGet().isModuleEnabled

return hasCorrectSmsVersion && smsModuleIsEnabled
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SMSSyncProviderImpl(
reportState(SmsSendingService.State.SENT, 0, 0),
)
}
.andThen(d2.smsModule().configCase().smsModuleConfig)
.andThen(d2.smsModule().configCase().getSmsModuleConfig())
.flatMapCompletable { config ->
if (config.isWaitingForResult) {
doOnNewState(
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ hiltCompiler = '1.0.0'
jacoco = '0.8.10'

designSystem = "1.0-20231116.084101-124"
dhis2sdk = "1.9.0"
dhis2sdk = "1.9.1-20231215.100321-10"
ruleEngine = "2.1.9"
appcompat = "1.6.1"
annotation = "1.6.0"
Expand Down

0 comments on commit 75fc8fe

Please sign in to comment.