diff --git a/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt b/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt index 135c77a61..ba6f6f6a6 100644 --- a/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt +++ b/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt @@ -72,6 +72,8 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo return combine( getTimeline(studyId), activityEventsRepo.getActivityEvents(studyId), + //Need to include call to get AdherenceRecords as part of the combine. + //This will trigger the flow to emit a new value anytime the AdherenceRecords change. adherenceRecordRepo.getAllCachedAdherenceRecords(studyId) ) { timeLineResource, eventsResource, _ -> extractSessionsForDay( diff --git a/build.gradle.kts b/build.gradle.kts index 541070545..7ceacad8c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,7 +20,7 @@ plugins { allprojects { group = "org.sagebionetworks.bridge.kmm" - version = "0.2.17" + version = "0.2.18" repositories { google() mavenCentral()