Nikola Milovic
08/21/2020, 4:15 PMprivate val moduleList = arrayListOf(dataModule, viewmodelModule)
private val loadModules by lazy {
loadKoinModules(moduleList)
}
private fun injectFeatures() = loadModules
//and then just call inject on attach and deload on detach
And in my tests
@Before
fun setUp() {
loadKoinModules(listOf(testViewModelModule, testDataModule))
launchFragmentInContainer<MenuFragment>()
}
Any input would be really helpful!