Marc
08/28/2025, 10:14 AM// In my feature module
val featureModule = module {
singleOf(::WhateverImplementation){ binds<WateverInterface>() }
// Main app module
...
install(Koin) {
modules(featureModule)
}
I’d like something like (pseudocode)
//feature module
fun Application.featurePlugin() {
-> inject here the featureModule to Koin
rest of the feature configuration
}
// main app module
fun Application.main() {
featurePlugin() <- this way I can keep all configs isolated into feature module and i just need to add it into a single entry point
}
Does it make sense? is there any solution/idea already implemented or that would make more sense than this?
ty!