Enable Google's desugar plugin (enables stream/map etc.).

Fixes  #347.
This commit is contained in:
Dennis Guse
2020-08-20 18:31:47 +02:00
parent 75043325ff
commit af60e1fdfb
+4
View File
@@ -37,6 +37,8 @@ def getVersionName = { ->
android {
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
@@ -80,6 +82,8 @@ android {
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.documentfile:documentfile:1.0.1'