Skip to content

Instantly share code, notes, and snippets.

@kyryloz
Created February 1, 2017 09:51
Show Gist options
  • Save kyryloz/5cd0d6fa41261a0e045733259972c9e3 to your computer and use it in GitHub Desktop.
Save kyryloz/5cd0d6fa41261a0e045733259972c9e3 to your computer and use it in GitHub Desktop.
filter unusable flavors or build types for gradle
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains("devBeta") && variant.buildType.name == "release") {
variant.ignore = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment