I suspect the dynamic structure of
startKoin{ }
has to be changed, but theoretically having something like
@KoinStarter(includes = myModules)
fun initKoin()
could work? Where the compiler just checks that the
myModules
graph is complete? (all dependencies have bean definitions)
Though probably having arguments/lambdas complicates maintaining the nice modular structure of Koin, possible solutions:
⢠Keep verification at the end consumer (
base/app
module, like Dagger đ )
⢠Have something like
@Transient
where these dependencies could be ignored?
Maybe having a thread for a possible API design would be nice