Created
April 18, 2017 05:33
-
-
Save MaTriXy/2c7bbf136d9c16797ec675dee8850e26 to your computer and use it in GitHub Desktop.
Show us your Gradle tasks
This file contains hidden or 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
| task('copyAll') { | |
| android.applicationVariants.all { variant -> | |
| variant.outputs.each { output -> | |
| if (!output.outputFile.name.contains('unsigned')) { | |
| task("copy${variant.name.capitalize()}", type: Copy) { | |
| from(output.outputFile) | |
| into("/path-to-your-prefered-folder/") | |
| } | |
| dependsOn("copy${variant.name.capitalize()}") | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment