Add desugaring for Android < 7 compatibility

This commit is contained in:
Sage Pointer 2020-07-12 18:09:50 +02:00
parent 0eb9a25687
commit a25dbc5cdd
3 changed files with 6 additions and 3 deletions

View file

@ -75,6 +75,7 @@ android {
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
coreLibraryDesugaringEnabled true
}
}
@ -150,4 +151,6 @@ dependencies {
testImplementation "com.google.guava:guava:${guavaVersion}-jre"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9'
}