Desugaring Enabled for Lower Android Api support

This commit is contained in:
shabinder 2021-04-18 23:38:38 +05:30
parent 1f5a962ddb
commit 638fa31415
2 changed files with 7 additions and 11 deletions

View File

@ -41,6 +41,7 @@ android {
versionCode = Versions.versionCode
versionName = Versions.versionName
}
buildToolsVersion = "30.0.3"
buildTypes {
getByName("release") {
@ -49,10 +50,13 @@ android {
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
kotlinOptions.useIR = true
kotlinOptions {
useIR = true
jvmTarget = "1.8"
}
compileOptions {
// Flag to enable support for the new language APIs
//coreLibraryDesugaringEnabled = true
coreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
@ -68,14 +72,6 @@ android {
packagingOptions {
exclude("META-INF/*")
}
buildToolsVersion = "30.0.3"
/*buildFeatures {
compose = true
}
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}*/
}
dependencies {
implementation(compose.material)

View File

@ -137,7 +137,7 @@ object Ktor {
object Extras {
//const val youtubeDownloader = "com.github.sealedtx:java-youtube-downloader:2.5.1"
const val youtubeDownloader = "com.shabinder.downloader:youtube-api-dl:0.1-SNAPSHOT" //Local Maven
const val youtubeDownloader = "com.shabinder.downloader:youtube-api-dl:0.1" //Local Maven
const val fuzzyWuzzy = "me.xdrop:fuzzywuzzy:1.3.1"
const val mp3agic = "com.mpatric:mp3agic:0.9.1"
const val kermit = "co.touchlab:kermit:${Versions.kermit}"