AGP has two apis for registering generated code:
variant.sources.java?.addGeneratedSourceDirectory
and
variant.sources.kotlin?.addGeneratedSourceDirectory
If we use the latter KSP does not pick up sources generated.
I had a quick look and I think its relates to this line in particular
|
val sources = kotlinCompilation.androidVariant.getSourceFolders(SourceKind.JAVA) |
AGP has two apis for registering generated code:
and
If we use the latter KSP does not pick up sources generated.
I had a quick look and I think its relates to this line in particular
ksp/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/AndroidPluginIntegration.kt
Line 79 in ab9274e