Skip to content

Instantly share code, notes, and snippets.

@Manabu-GT
Created May 22, 2015 05:05
Show Gist options
  • Save Manabu-GT/62cbd9440ba9f10dcbaa to your computer and use it in GitHub Desktop.
Save Manabu-GT/62cbd9440ba9f10dcbaa to your computer and use it in GitHub Desktop.
android gradle - capture all variants
project.configure(project) {
if (it.hasProperty("android")) {
tasks.whenTaskAdded { task ->
project.("android").applicationVariants.all { variant ->
println "${variant.name.capitalize()}"
println "${variant.buildType.name}"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment