switching to lazy variant configuration
This commit is contained in:
parent
906ec486f8
commit
2bb2091234
|
@ -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