Created
May 22, 2015 05:05
-
-
Save Manabu-GT/62cbd9440ba9f10dcbaa to your computer and use it in GitHub Desktop.
android gradle - capture all variants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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