You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to accommodate Product variants in Android, something like this should also work:
tasks.whenTaskAdded {
if (name.contains("assemble") && name.contains("Release")) {
dependsOn("licenseReleaseReport")
}
}
tasks.whenTaskAdded {
if (name.contains("assemble") && name.contains("Debug")) {
dependsOn("licenseDebugReport")
}
}
This because the tasks are named: assembleProductVariantNameRelease.
Although your example would work too, in a very specific case where the exact task is run for generating all variants. The one suggested in this comment, could avoid extra processing of all variants to get the output.
The text was updated successfully, but these errors were encountered: