james
04/02/2020, 8:39 AMonCreate
, I've got the following:
startKoin {
androidContext(this@MyApplication)
modules(listOf(
newsModule
))
}
and then my newsModule
looks like this:
val newsModule = module {
listOf(
networkModule,
uiModule
)
}
unfortunately, this doesn't work.. it builds, but everything provided inside networkModule
and uiModule
isn't accessible. how can I achieve this?voben
04/02/2020, 2:25 PMjames
04/03/2020, 12:06 AMapp
Android-module, and multiple other Android-modules. one of those other Android-modules is called news
.
so what I would like to do is simply have the app
call startKoin
on the primary newsModule
, and then newsModule
might have a list of other modules inside of it, which app
doesn't need to refer toPaulius Ruminas
04/03/2020, 6:49 AMstartKoin {
androidContext(this@MyApplication)
modules(newsModule)
}
val newsModule = listOf(
networkModule,
uiModule
)