switching to lazy variant configuration

This commit is contained in:
Adam Brown 2022-10-02 16:26:44 +01:00 committed by Adam Brown
parent 1efb1cf6c6
commit aa813fe67a
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