mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-22 20:33:05 +00:00
add variant-filters
This commit is contained in:
parent
e05aacc2f2
commit
399a149bc9
3 changed files with 15 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue