Slackbot
09/26/2022, 9:12 AMephemient
09/26/2022, 10:42 AMandroid {
applicationVariants.all { // or as appropriate
registerJavaGeneratingTask(task, outputDir) // not Provider, unfortunately
Sergey Lapin
09/26/2022, 12:42 PMapplicationVariants
is only accessible from AppExtension
and not from BaseExtension
and, it only adds to the main source set of a variant, but I need to add my generated sources to all source setsephemient
09/26/2022, 1:41 PMandroid {
val variants = when (this) {
is AppExtension -> applicationVariants
is LibraryExtension -> libraryVariants
else -> throw GradleException("unsupported")
}
for the second, how much does it matter? if it's in the main source set, it's visible in the test source sets tooephemient
09/26/2022, 1:44 PMCarlos Flores
09/26/2022, 5:03 PMSergey Lapin
09/27/2022, 7:19 AM