Skip to content

Commit bc401d9

Browse files
committed
Changes per PR feedback
Added Android Desugaring library for lower Android compatibility Band-it solution for now - will be removed when minimal version requirements bumped to Android 8
1 parent e02df5c commit bc401d9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ android {
9494
}
9595

9696
compileOptions {
97+
// Flag to enable support for the new language APIs
98+
coreLibraryDesugaringEnabled true
9799
sourceCompatibility JavaVersion.VERSION_17
98100
targetCompatibility JavaVersion.VERSION_17
99101
}
@@ -154,6 +156,7 @@ dependencies {
154156

155157
ksp libs.room.compiler
156158
ksp libs.androidX.annotation
159+
coreLibraryDesugaring libs.android.desugaring
157160

158161
//For tests
159162
testImplementation libs.junit//tests the app logic

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ androidXTestRunner = "1.6.2"
3535
androidXTestExt = "1.2.1"
3636
androidXArchCoreTest = "2.2.0"
3737
androidXMultidex = "2.0.1"
38+
androidDesugaring = "2.1.5"
3839
autoService = "1.1.1"
3940
kotlinxCoroutines = "1.7.3"
4041
kotlinStdlibJdk8 = "1.9.20"
@@ -99,6 +100,7 @@ androidX-vectordrawable-animated = { module = "androidx.vectordrawable:vectordra
99100
androidX-biometric = { module = "androidx.biometric:biometric", version.ref = "androidXBiometric" }
100101
androidX-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidXLifecycle" }
101102
androidX-lifecycle-livedata-ktx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "androidXLifecycle" }
103+
android-desugaring = { module = "com.android.tools:desugar_jdk_libs", version.ref = "androidDesugaring" }
102104

103105
androidX-test-core = { module = "androidx.test:core", version.ref = "androidXTest" }
104106
androidX-test-runner = { module = "androidx.test:runner", version.ref = "androidXTestRunner" }

0 commit comments

Comments
 (0)