1 min readApr 24, 2017
Nice article Robert!
A point I’d like to add, is that you can also automate this for every build, by adding something like this in your defaultConfig:
applicationVariants.all { variant ->
variant.outputs.each { output ->
variant.assemble.doLast {
//your task here
}
}
}
You can even add checks using the variant and output objects, so you do this only for specific variants or build types