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

View File

@ -137,7 +137,7 @@ object Ktor {
object Extras { object Extras {
//const val youtubeDownloader = "com.github.sealedtx:java-youtube-downloader:2.5.1" //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 fuzzyWuzzy = "me.xdrop:fuzzywuzzy:1.3.1"
const val mp3agic = "com.mpatric:mp3agic:0.9.1" const val mp3agic = "com.mpatric:mp3agic:0.9.1"
const val kermit = "co.touchlab:kermit:${Versions.kermit}" const val kermit = "co.touchlab:kermit:${Versions.kermit}"