Skip to content

Instantly share code, notes, and snippets.

@MaTriXy
Created April 18, 2017 05:33
Show Gist options
  • Select an option

  • Save MaTriXy/2c7bbf136d9c16797ec675dee8850e26 to your computer and use it in GitHub Desktop.

Select an option

Save MaTriXy/2c7bbf136d9c16797ec675dee8850e26 to your computer and use it in GitHub Desktop.
Show us your Gradle tasks
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