add variant-filters

This commit is contained in:
Felix 2019-05-04 12:23:06 +02:00
parent e05aacc2f2
commit 399a149bc9
3 changed files with 15 additions and 6 deletions

View file

@ -73,9 +73,11 @@ android {
dimension "libs"
}
}
variantFilter { variant ->
if (variant.buildType.name == "mockRelease") {
def names = variant.flavors*.name
if (name.contains("prod") && name.contains("Debug")
|| (( name.contains("dev") || name.contains("mock"))
&& !name.contains("NoFree") )){
setIgnore(true)
}
}

View file

@ -71,13 +71,16 @@ android {
dimension "libs"
}
}
variantFilter { variant ->
if (variant.buildType.name == "mockRelease") {
def names = variant.flavors*.name
if (name.contains("prod") && name.contains("Debug")
|| (( name.contains("dev") || name.contains("mock"))
&& !name.contains("NoFree") )){
setIgnore(true)
}
}
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'

View file

@ -75,12 +75,16 @@ android {
dimension "libs"
}
}
variantFilter { variant ->
if (variant.buildType.name == "mockRelease") {
def names = variant.flavors*.name
if (name.contains("prod") && name.contains("Debug")
|| (( name.contains("dev") || name.contains("mock"))
&& !name.contains("NoFree") )){
setIgnore(true)
}
}
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'