mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-07-07 13:31:00 +02:00
refactor(connector): split Koin Modules
This commit is contained in:
parent
8739343969
commit
197bfc5966
@ -13,7 +13,9 @@ fun commonModule() = module {
|
||||
single<ProjectTransaction> {
|
||||
ProjectTransaction(driverFactory = get<DriverFactory>())
|
||||
}
|
||||
}
|
||||
|
||||
fun viewModelModule() = module {
|
||||
single<ProjectsScreenModel> {
|
||||
ProjectsScreenModel(db = get())
|
||||
}
|
||||
|
@ -9,7 +9,8 @@ class KoinInit {
|
||||
return startKoin {
|
||||
modules(
|
||||
listOf(
|
||||
commonModule()
|
||||
commonModule(),
|
||||
viewModelModule()
|
||||
),
|
||||
)
|
||||
appDeclaration()
|
||||
|
Loading…
x
Reference in New Issue
Block a user