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 32ec6f9
Show file tree
Hide file tree
Showing 2 changed files with 4 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 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 32ec6f9

Please sign in to comment.