Merge pull request #63 from kirmanak/enable-desugaring
Enable desugaring
This commit is contained in:
@@ -87,6 +87,10 @@ android {
|
|||||||
packagingOptions {
|
packagingOptions {
|
||||||
resources.excludes += "DebugProbesKt.bin"
|
resources.excludes += "DebugProbesKt.bin"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
coreLibraryDesugaringEnabled true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||||
@@ -96,6 +100,8 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$desugar_version"
|
||||||
|
|
||||||
implementation "com.google.android.material:material:$material_version"
|
implementation "com.google.android.material:material:$material_version"
|
||||||
|
|
||||||
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
|
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
|
||||||
|
|||||||
@@ -117,4 +117,7 @@ ext {
|
|||||||
|
|
||||||
// https://github.com/ChuckerTeam/chucker/releases
|
// https://github.com/ChuckerTeam/chucker/releases
|
||||||
chucker_version = "3.5.2"
|
chucker_version = "3.5.2"
|
||||||
|
|
||||||
|
// https://developer.android.com/studio/write/java8-support#library-desugaring
|
||||||
|
desugar_version = "1.1.5"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user