I have an Android project using build flavors (`de...
# ksp
l
I have an Android project using build flavors (
devDebug
,
sprintRelease
,
playRelease
). So there is no ksp generated code in
main
, only in the respective flavor directories. How do I make Android Studio aware of the generated code to have it recognize generated symbols and provide autocompletion? This doesn't work, as there is no generated code in `main`: https://kotlinlang.org/docs/ksp-quickstart.html#make-ide-aware-of-generated-code
Also this comment in the respective GitHub issue warns against adding generated code from build variants to the
main
sourceSet: https://github.com/google/ksp/issues/37#issuecomment-1122247718
What should we do on Android when having flavors/build variants to still have access to the generated code in the IDE?
o
Unfortunately, I guess there is not much you can do currently, but I have put down some notes on how to progress towards (hopefully) achieving that goal: https://github.com/google/ksp/issues/1037
l
Thanks for the clarification and detailed explanations in the issue. This helps a lot at least to understand the current state! 🙏
👍 1