koinApplicationWith

fun koinApplicationWith(modules: List<Module>, appDeclaration: KoinAppDeclaration? = null): KoinApplication

Compiler Plugin Support Function - Create KoinApplication with the provided list of modules. This function is called by the compiler plugin after transforming koinApplication().

Return

The configured KoinApplication instance (not registered globally)

Parameters

modules

List of modules discovered from @KoinApplication annotated class

appDeclaration

Optional Koin application configuration block