Update deprecated Android Gradle DSL calls

This commit is contained in:
arkon 2021-08-22 18:05:18 -04:00
parent 7094fef37f
commit a3917972b4

View File

@ -79,7 +79,7 @@ android {
getByName("debugFull").res.srcDirs("src/debug/res") getByName("debugFull").res.srcDirs("src/debug/res")
} }
flavorDimensions("default") flavorDimensions.add("default")
productFlavors { productFlavors {
create("standard") { create("standard") {
@ -87,18 +87,20 @@ android {
dimension = "default" dimension = "default"
} }
create("dev") { create("dev") {
resConfigs("en", "xxhdpi") resourceConfigurations.addAll(listOf("en", "xxhdpi"))
dimension = "default" dimension = "default"
} }
} }
packagingOptions { packagingOptions {
exclude("META-INF/DEPENDENCIES") resources.excludes.addAll(listOf(
exclude("LICENSE.txt") "META-INF/DEPENDENCIES",
exclude("META-INF/LICENSE") "LICENSE.txt",
exclude("META-INF/LICENSE.txt") "META-INF/LICENSE",
exclude("META-INF/NOTICE") "META-INF/LICENSE.txt",
exclude("META-INF/*.kotlin_module") "META-INF/NOTICE",
"META-INF/*.kotlin_module",
))
} }
dependenciesInfo { dependenciesInfo {
@ -126,7 +128,6 @@ android {
} }
dependencies { dependencies {
implementation(kotlin("reflect", version = BuildPluginsVersion.KOTLIN)) implementation(kotlin("reflect", version = BuildPluginsVersion.KOTLIN))
val coroutinesVersion = "1.5.1" val coroutinesVersion = "1.5.1"