switching to lazy variant configuration

This commit is contained in:
Adam Brown 2022-10-02 16:26:44 +01:00
parent 906ec486f8
commit 2bb2091234
1 changed files with 7 additions and 5 deletions

View File

@ -16,11 +16,6 @@ android {
if (isDebugBuild) {
resConfigs "en", "xxhdpi"
variantFilter { variant ->
if (variant.buildType.name == "release") {
setIgnore(true)
}
}
} else {
resConfigs "en"
}
@ -67,6 +62,13 @@ android {
}
}
if (isDebugBuild) {
androidComponents {
def release = selector().withBuildType("release")
beforeVariants(release) { it.enabled = false }
}
}
dependencies {
coreLibraryDesugaring Dependencies.google.jdkLibs