Enable core library desugaring

Fix #8343
This commit is contained in:
topjohnwu 2024-09-09 01:55:35 -07:00
parent b828e2d0b2
commit abaff72304
2 changed files with 6 additions and 0 deletions

View File

@ -42,10 +42,15 @@ android {
buildFeatures { buildFeatures {
dataBinding = true dataBinding = true
} }
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
} }
dependencies { dependencies {
implementation(project(":app:core")) implementation(project(":app:core"))
coreLibraryDesugaring(libs.jdk.libs)
implementation(libs.indeterminate.checkbox) implementation(libs.indeterminate.checkbox)
implementation(libs.rikka.layoutinflater) implementation(libs.rikka.layoutinflater)

View File

@ -44,6 +44,7 @@ transition = { module = "androidx.transition:transition", version = "1.5.1" }
collection-ktx = { module = "androidx.collection:collection-ktx", version = "1.4.3" } collection-ktx = { module = "androidx.collection:collection-ktx", version = "1.4.3" }
lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version = "2.8.5" } lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version = "2.8.5" }
material = { module = "com.google.android.material:material", version = "1.12.0" } material = { module = "com.google.android.material:material", version = "1.12.0" }
jdk-libs = { module = "com.android.tools:desugar_jdk_libs_nio", version = "2.1.2" }
# topjohnwu # topjohnwu
indeterminate-checkbox = { module = "com.github.topjohnwu:indeterminate-checkbox", version = "1.0.7" } indeterminate-checkbox = { module = "com.github.topjohnwu:indeterminate-checkbox", version = "1.0.7" }