diff --git a/composeApp/src/commonMain/kotlin/ch/parano/myice/cache/ScheduleCache.kt b/composeApp/src/commonMain/kotlin/ch/parano/myice/cache/ScheduleCache.kt index 9cbb09c..f839dba 100644 --- a/composeApp/src/commonMain/kotlin/ch/parano/myice/cache/ScheduleCache.kt +++ b/composeApp/src/commonMain/kotlin/ch/parano/myice/cache/ScheduleCache.kt @@ -7,7 +7,6 @@ import kotlin.time.ExperimentalTime import kotlinx.serialization.builtins.ListSerializer import kotlinx.serialization.json.Json -@OptIn(ExperimentalTime::class) class ScheduleCache(private val settings: Settings) { private val json = Json { ignoreUnknownKeys = true } @@ -19,6 +18,7 @@ class ScheduleCache(private val settings: Settings) { private fun typeFilterKey(account: String) = "filters_typefilter_$account" private fun timestampKey(account: String) = "cached_events_timestamp_$account" + @OptIn(ExperimentalTime::class) fun saveEvents(account: String, events: List) { settings.putString(eventsKey(account), json.encodeToString(eventListSerializer, events)) settings.putLong(timestampKey(account), Clock.System.now().toEpochMilliseconds()) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 63b10ec..d031aa2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,7 +5,7 @@ agp = "8.13.2" ktor = "3.5.1" kotlinx-serialization-json = "1.11.0" kotlinx-coroutines = "1.11.0" -kotlinx-datetime = "0.7.0" +kotlinx-datetime = "0.7.1" multiplatform-settings = "1.3.0" lifecycle-viewmodel-compose = "2.10.0" androidx-activity-compose = "1.13.0"