:wave: Hi. While trying to update the project <Now...
# eap
s
👋 Hi. While trying to update the project NowInAndroid (with KSP
1.9.0-Beta-1.0.11
and Compose compiler
1.4.7-dev-k1.9.0-Beta-bb7dc8b44eb
), I had to manually register sourceSets for protobuf generated code otherwise Hilt would fail to compile the code because it could not find the generated classes on its classpath (logs). Could this be linked to KT-54468 ?
Copy code
androidComponents.beforeVariants {
    android.sourceSets.register(it.name) {
        java.srcDir(buildDir.resolve("generated/source/proto/${it.name}/java"))
        kotlin.srcDir(buildDir.resolve("generated/source/proto/${it.name}/kotlin"))
    }
}
t
hi, most probably
hm, wait. It could be unrelated as KT-54468 means you need to configure additionally
KaptGenerateStubs
tasks 🤔
we've checked and KT-54468 is related
protobuf plugin could update this part to use similar approach from your workaround - then it should work both for old and new Kotlin Gradle Plugin versions
FYI: opened an issue and will try to upload PR with a fix