From 6db0c6526af1759761c092a6f273f9994ed1b923 Mon Sep 17 00:00:00 2001 From: qimiko <25387744+qimiko@users.noreply.github.com> Date: Mon, 15 Jan 2024 23:54:11 -0700 Subject: [PATCH] add desugaring for old devices --- app/build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e6973721..6df37350 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,6 +33,9 @@ android { } } compileOptions { + // enables a polyfill for java Instant on api levels < 26 (used for updater) + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } @@ -64,8 +67,8 @@ dependencies { implementation "androidx.compose.ui:ui:$compose_version" implementation 'androidx.compose.material3:material3:1.1.2' implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2' - implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2" + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0' + implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0" implementation 'androidx.activity:activity-compose:1.8.2' implementation 'androidx.activity:activity-ktx:1.8.2' implementation 'androidx.appcompat:appcompat:1.6.1' @@ -77,4 +80,5 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-serialization-json-okio:1.6.0" debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" + coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.0.4" } \ No newline at end of file