You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened and how can we reproduce this issue?
I have correctly implemented dependency injection, and everything functions well on Android without issues. However, I am experiencing problems on iOS. I initialize Koin separately for both Android and iOS. When I remove Ktorfit from the modules, the application works fine, but it does not function correctly when Ktorfit is included.
SplashViewModel contains repository which are from ktorfit.
Ktorfit version
2.1.0
What happened and how can we reproduce this issue?
I have correctly implemented dependency injection, and everything functions well on Android without issues. However, I am experiencing problems on iOS. I initialize Koin separately for both Android and iOS. When I remove Ktorfit from the modules, the application works fine, but it does not function correctly when Ktorfit is included.
SplashViewModel contains repository which are from ktorfit.
What did you expect to happen?
It shouldn't make problems for injection.
Is there anything else we need to know about?
`val apiModule = module {
}
fun initializeKoin(
androidViewModelModule: Module? = null
) {
startKoin {
modules(getAppModules(androidViewModelModule))
}
}
private fun getAppModules(androidViewModelModule: Module?): List {
val commonModules = listOf(repositoryModule, apiModule, viewModelModule)
return if (androidViewModelModule != null) {
commonModules + androidViewModelModule
} else {
commonModules
}
}`
The text was updated successfully, but these errors were encountered: