Dear people! I am trying to introduce Koin Annotat...
# koin
j
Dear people! I am trying to introduce Koin Annotations in a project with Dagger2 (no hilt). I want to build from the bottom up at first (lots of legacy here, can't 1-shot it) to transform the project to KMP. I am trying to start the koin application. However, it is finding all my good old javax.inject.Inject @Inject constructors that we use with Dagger, and I guess the @Modules and whatnot, and it is not playing nicely together 😄 . Is it possibly to make the Koin Annotations KSP stuff ignore these, at least for now? It would be good if it only finds the Koin annotations and not the java inject ones.
1
breaking news: Apparently it doesn't like the dagger.Lazy<> stuff. I could get rid of it (including some hacky circular dependencies 😄 )
so then this request is no longer an issue
a
It's not 100% Compatible with all dagger thing. Lazy is Kotlin type one. And Modules are to be different. You can use @ComponentScan to scan target package
j
Yeah thanks! I applied the koin annotations to my existing project and it will absolutely go to town on every existing annotated stuff. So even with or without a componentscan it will still collect everything and generate code. But luckily I could simply get rid of all the lazy stuff and then all the other "old" annotations are picked up without causing issues.
👍 1
a
cool