add coreLibraryDesugaring so we can use some cool java apis

https://developer.android.com/studio/write/java8-support#library-desugaring
This commit is contained in:
aliveoutside
2022-09-16 13:03:40 +03:00
parent 24c41e5a6d
commit a7a5a3cd4c
+3 -1
View File
@@ -77,10 +77,11 @@ android {
targetSdkVersion 32
versionCode 1
versionName "1.0"
multiDexEnabled false
multiDexEnabled true
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
@@ -88,6 +89,7 @@ android {
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
implementation 'net.sourceforge.streamsupport:streamsupport-minifuture:1.7.4'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.preference:preference:1.2.0'