switching to lazy variant configuration
This commit is contained in:
parent
1efb1cf6c6
commit
aa813fe67a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue