Enable desugaring of core library elements

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-08-27 15:37:26 +05:30
parent 5ce951d599
commit e16b4cb82d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -34,6 +34,7 @@ android {
} }
} }
compileOptions { compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
@ -76,4 +77,5 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.2-rc03' androidTestImplementation 'androidx.test.ext:junit:1.1.2-rc03'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc03' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc03'
androidTestImplementation "androidx.ui:ui-test:$compose_version" androidTestImplementation "androidx.ui:ui-test:$compose_version"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10"
} }