jvmMain.com.paoapps.fifi.auth.di.KoinJvm.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fifi-auth-jvm Show documentation
Show all versions of fifi-auth-jvm Show documentation
Kotlin Multiplatform Mobile framework for optimal code sharing between iOS and Android.
The newest version!
package com.paoapps.fifi.auth.di
import com.russhwolf.settings.PreferencesSettings
import com.russhwolf.settings.Settings
import org.koin.core.module.Module
import org.koin.core.qualifier.named
internal actual fun platformInjections(serviceName: String, module: Module) {
module.single(named(PlatformModuleQualifier.ENCRYPTED_SETTINGS)) {
// we don't provide secure settings for JVM
PreferencesSettings.Factory().create(serviceName)
}
module.single(named(PlatformModuleQualifier.SETTINGS)) {
PreferencesSettings.Factory().create(serviceName)
}
}