modules
Compiler Plugin Stub - Load modules generated from multiple @Module annotated classes into this KoinApplication. The compiler plugin transforms this call to inject the modules generated from the provided KClass references via IR.
Replaces the previous T().module pattern with a type-safe call accepting multiple module classes.
Usage:
startKoin {
modules(ModuleA::class, ModuleB::class)
}
// Plugin transforms to:
// startKoin {
// modules(ModuleA().module(), ModuleB().module())
// }Content copied to clipboard
Parameters
modules
KClass references of types annotated with @Module