1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2015-12-09 18:09:55 -08:00
parent d8e893be9e
commit b543db406c

View file

@ -13,6 +13,10 @@ class TaskContributor : ITaskContributor {
/**
* Register dynamic tasks corresponding to the variants found in the project,e.g. assembleDevDebug,
* assembleDevRelease, etc...
*
* TODO: this should be done automatically so that users don't have to invoke it themselves.
* Certain tasks could have a boolean flag "hasVariants" and any task that depends on it automatically
* depends on variants of that task.
*/
fun addVariantTasks(plugin: IPlugin, project: Project, context: KobaltContext, taskName: String,
runBefore : List<String> = emptyList(),