Skip to content

Instantly share code, notes, and snippets.

@pdegand
Created October 27, 2014 19:41
Show Gist options
  • Save pdegand/6bddbea376f5c7effeb1 to your computer and use it in GitHub Desktop.
Save pdegand/6bddbea376f5c7effeb1 to your computer and use it in GitHub Desktop.
project.afterEvaluate {
android.applicationVariants.all { variant ->
if (variant.buildType.name == 'release') {
tasks["generate${variant.name.capitalize()}Assets"]
.dependsOn(":wear:assemble${variant.name.capitalize()}")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment