mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-10-19 05:14:32 +02:00
17 lines
561 B
Kotlin
17 lines
561 B
Kotlin
|
package com.shabinder.common.di
|
||
|
|
||
|
import com.shabinder.common.models.DownloadStatus
|
||
|
import kotlinx.coroutines.flow.MutableSharedFlow
|
||
|
import org.koin.core.component.KoinComponent
|
||
|
import org.koin.core.component.inject
|
||
|
|
||
|
/*
|
||
|
* Dependency Provider for IOS
|
||
|
* */
|
||
|
object IOSDeps: KoinComponent {
|
||
|
val dir: Dir by inject() // = get()
|
||
|
val fetchPlatformQueryResult: FetchPlatformQueryResult by inject() // get()
|
||
|
val database get() = dir.db
|
||
|
val sharedFlow = MutableSharedFlow<HashMap<String, DownloadStatus>>(1)
|
||
|
val defaultDispatcher = dispatcherDefault
|
||
|
}
|