Skip to content

Commit

Permalink
Enable core library desugaring
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLongstaff committed Sep 1, 2024
1 parent b883bc2 commit a560279
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ android {
compileOptions {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
isCoreLibraryDesugaringEnabled = true
}

kotlinOptions {
Expand Down Expand Up @@ -96,6 +97,8 @@ dependencies {
because("Needed to resolve static method registerDefaultInstance")
}
}

coreLibraryDesugaring(libs.desugaring)
}

detekt {
Expand Down
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ arcmutate-base = "1.3.1"
arcmutate-kotlin = "1.3.0"
barista = "4.3.0"
dependency-analysis = "2.0.1"
desugar = "2.1.1"
detekt = "1.23.6"
gradle = "8.6.0"
gradle-pitest = "1.15.0"
Expand Down Expand Up @@ -91,6 +92,8 @@ lifecycle-viewmodel = { module = "androidx.lifecycle:lifecycle-viewmodel", versi
multidex = { module = "androidx.multidex:multidex", version.ref = "androidx-multidex" }
recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "androidx-recyclerview" }

desugaring = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugar" }

app-review = { module = "com.google.android.play:review", version.ref = "app-review" }
play-services-tasks = { module = "com.google.android.gms:play-services-tasks", version.ref = "play-services-tasks" }

Expand Down

0 comments on commit a560279

Please sign in to comment.