diff --git a/data/build.gradle.kts b/data/build.gradle.kts index 8981b5e..6a4a897 100644 --- a/data/build.gradle.kts +++ b/data/build.gradle.kts @@ -30,6 +30,7 @@ android { } compileOptions { + isCoreLibraryDesugaringEnabled = true sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } @@ -54,6 +55,7 @@ android { dependencies { api(libs.kotlinx.datetime) api(libs.kotlinx.serialization.json) + coreLibraryDesugaring(libs.android.desugar.jdk.libs) testImplementation(libs.kotlin.test) } diff --git a/dataproviderdemo/build.gradle.kts b/dataproviderdemo/build.gradle.kts index 78915a4..e47eeed 100644 --- a/dataproviderdemo/build.gradle.kts +++ b/dataproviderdemo/build.gradle.kts @@ -37,6 +37,7 @@ android { } compileOptions { + isCoreLibraryDesugaringEnabled = true sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } @@ -59,4 +60,5 @@ dependencies { implementation(project(":dataprovider-retrofit")) implementation(libs.androidx.activity) implementation(libs.androidx.lifecycle.runtime) + coreLibraryDesugaring(libs.android.desugar.jdk.libs) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5998b40..5a20ec3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,4 +1,5 @@ [versions] +android-desugar-jdk-libs = "2.1.2" android-gradle-plugin = "8.6.0" androidx-activity = "1.9.1" androidx-lifecycle = "2.8.4" @@ -14,6 +15,7 @@ retrofit = "2.11.0" robolectric = "4.13" [libraries] +android-desugar-jdk-libs = { module = "com.android.tools:desugar_jdk_libs", version.ref = "android-desugar-jdk-libs" } androidx-activity = { module = "androidx.activity:activity", version.ref = "androidx-activity" } androidx-lifecycle-runtime = { module = "androidx.lifecycle:lifecycle-runtime", version.ref = "androidx-lifecycle" } androidx-paging-common = { module = "androidx.paging:paging-common", version.ref = "androidx-paging" }