refactor(connector): split Koin Modules

This commit is contained in:
Anthony 2024-04-04 19:37:02 +02:00
parent 8739343969
commit 197bfc5966
2 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,9 @@ fun commonModule() = module {
single<ProjectTransaction> {
ProjectTransaction(driverFactory = get<DriverFactory>())
}
}
fun viewModelModule() = module {
single<ProjectsScreenModel> {
ProjectsScreenModel(db = get())
}

View File

@ -9,7 +9,8 @@ class KoinInit {
return startKoin {
modules(
listOf(
commonModule()
commonModule(),
viewModelModule()
),
)
appDeclaration()