fixes
This commit is contained in:
parent
6a6a197041
commit
fffe99adaa
@ -20,6 +20,11 @@ import dev.inmo.micro_utils.fsm.common.managers.DefaultStatesManagerRepo
|
|||||||
import dev.inmo.micro_utils.ktor.client.UnifiedRequester
|
import dev.inmo.micro_utils.ktor.client.UnifiedRequester
|
||||||
import dev.inmo.micro_utils.ktor.common.standardKtorSerialFormat
|
import dev.inmo.micro_utils.ktor.common.standardKtorSerialFormat
|
||||||
import dev.inmo.micro_utils.repos.KeyValueRepo
|
import dev.inmo.micro_utils.repos.KeyValueRepo
|
||||||
|
import dev.inmo.postssystem.client.settings.DefaultSettings
|
||||||
|
import dev.inmo.postssystem.client.settings.Settings
|
||||||
|
import dev.inmo.postssystem.client.settings.auth.AuthSettings
|
||||||
|
import dev.inmo.postssystem.client.settings.auth.DefaultAuthSettings
|
||||||
|
import dev.inmo.postssystem.features.status.client.StatusFeatureClient
|
||||||
import io.ktor.client.HttpClient
|
import io.ktor.client.HttpClient
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
@ -58,7 +63,7 @@ fun baseKoin(
|
|||||||
module {
|
module {
|
||||||
single<StringFormat> { defaultSerialFormat }
|
single<StringFormat> { defaultSerialFormat }
|
||||||
single(SettingsQualifier) { settingsFactory() }
|
single(SettingsQualifier) { settingsFactory() }
|
||||||
single<DBDropper>(DBDropperQualifier) { DBDropper(get(SettingsQualifier)) }
|
single { DBDropper(get(SettingsQualifier)) }
|
||||||
single(FSMHandlersBuilderQualifier) { handlersSetter }
|
single(FSMHandlersBuilderQualifier) { handlersSetter }
|
||||||
single { repoFactory() }
|
single { repoFactory() }
|
||||||
single { defaultScope }
|
single { defaultScope }
|
||||||
@ -66,6 +71,8 @@ fun baseKoin(
|
|||||||
single<StatesMachine<UIFSMState>>(UIFSMQualifier) { UIFSM(get()) { (this@single to this@UIFSM).apply(get(
|
single<StatesMachine<UIFSMState>>(UIFSMQualifier) { UIFSM(get()) { (this@single to this@UIFSM).apply(get(
|
||||||
FSMHandlersBuilderQualifier
|
FSMHandlersBuilderQualifier
|
||||||
)) } }
|
)) } }
|
||||||
|
single<AuthSettings> { DefaultAuthSettings(get(SettingsQualifier), get(), koin, get()) }
|
||||||
|
single<Settings> { DefaultSettings(get()) }
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}.koin.apply {
|
}.koin.apply {
|
||||||
@ -98,6 +105,8 @@ fun getAuthorizedFeaturesDIModule(
|
|||||||
single<BinaryFormat> { standardKtorSerialFormat }
|
single<BinaryFormat> { standardKtorSerialFormat }
|
||||||
single { UnifiedRequester(get(), get()) }
|
single { UnifiedRequester(get(), get()) }
|
||||||
|
|
||||||
|
single { StatusFeatureClient(get(serverUrlQualifier), get()) }
|
||||||
|
|
||||||
single<FilesStorage> { ClientFilesStorage(get(serverUrlQualifier), get(), get()) }
|
single<FilesStorage> { ClientFilesStorage(get(serverUrlQualifier), get(), get()) }
|
||||||
single<ReadUsersStorage> { UsersStorageKtorClient(get(serverUrlQualifier), get()) }
|
single<ReadUsersStorage> { UsersStorageKtorClient(get(serverUrlQualifier), get()) }
|
||||||
single<UsersRolesStorage<UserRole>> { ClientUsersRolesStorage(get(serverUrlQualifier), get(), UserRole.serializer()) }
|
single<UsersRolesStorage<UserRole>> { ClientUsersRolesStorage(get(serverUrlQualifier), get(), UserRole.serializer()) }
|
||||||
|
Loading…
Reference in New Issue
Block a user