Enable desugaring (#37)

This commit is contained in:
vfsfitvnm 2022-06-13 22:26:44 +02:00
parent 243b2e0244
commit 11f4621823
2 changed files with 6 additions and 1 deletions

View file

@ -50,6 +50,7 @@ android {
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
@ -91,7 +92,9 @@ dependencies {
implementation(libs.room)
kapt(libs.room.compiler)
implementation(projects.youtubeMusic)
implementation(libs.guava.coroutines)
implementation(projects.youtubeMusic)
coreLibraryDesugaring(libs.desugaring)
}

View file

@ -50,6 +50,8 @@ dependencyResolutionManagement {
alias("brotli").to("org.brotli", "dec").version("0.1.2")
alias("guava-coroutines").to("org.jetbrains.kotlinx", "kotlinx-coroutines-guava").version("1.6.2")
alias("desugaring").to("com.android.tools", "desugar_jdk_libs").version("1.1.5")
}
create("testLibs") {