startKoin

fun <T : Any> startKoin(appDeclaration: KoinAppDeclaration? = null): KoinApplication

Start Koin with modules discovered from @KoinApplication annotated class. The compiler plugin transforms this call to inject modules(Module1().module, ...) based on the @Configuration tags associated with the type parameter T.

Usage:

@KoinApplication
object MyApp

startKoin<MyApp>() {
printLogger()
}
// Plugin transforms to:
// startKoin {
// printLogger()
// modules(MyModule().module, ...)
// }