gmazzo
08/02/2021, 1:24 PMMETA-INF/services/xxx
(through ServiceLoader
) with a KSP processor is not present on the final APK.
I noted latest version has added this change:
https://github.com/google/ksp/blob/1.5.21-1.0.0-beta06/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/AndroidPluginIntegration.kt#L93
And seems to work on the test, but for some reason, it isn’t for us. It started working after I add this workaound:
android.applicationVariant.all {
processJavaResourcesProvider.configure {
from("$buildDir/generated/ksp/${this@all.name}/resources")
}
}
Any idea why registerPostJavacGeneratedBytecode
may not be enough?
I did played a bit with the ksp
’s AndroidIT
and it seems to work in theregmazzo
08/02/2021, 1:35 PMServiceLoader
. With KAPT this seems to work fine, but now with KSP it’s not finding any of them, but the META-INF/services/xxx
files are getting generted on each project 🤔Zac Sweers
08/02/2021, 1:35 PM