Skip to content

Commit

Permalink
Add com.android.tools:desugar_jdk_libs
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Sep 4, 2024
1 parent 3f35c07 commit f3ca14c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ android {
}

compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
Expand All @@ -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)
}
Expand Down
2 changes: 2 additions & 0 deletions dataproviderdemo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ android {
}

compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
Expand All @@ -59,4 +60,5 @@ dependencies {
implementation(project(":dataprovider-retrofit"))
implementation(libs.androidx.activity)
implementation(libs.androidx.lifecycle.runtime)
coreLibraryDesugaring(libs.android.desugar.jdk.libs)
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
Expand Down

0 comments on commit f3ca14c

Please sign in to comment.