All Downloads are FREE. Search and download functionalities are using the official Maven repository.

androidMain.tech.skot.di.modelFrameworkModule.kt Maven / Gradle / Ivy

package tech.skot.di

import android.content.Context
import tech.skot.core.di.BaseInjector
import tech.skot.core.di.module
import tech.skot.model.*

actual val modelFrameworkModule = module {

    single {
        androidApplication as Context
    }

    factory {
        object : PersistorFactory {
            override fun getPersistor(dbFileName: String, cache: Boolean): SKPersistor =
                AndroidSKPersistor(androidApplication, dbFileName, cache)

        } as PersistorFactory
    }

    factory {
        AndroidPrefs(androidApplication) as Prefs
    }

    factory {
        AndroidDevice() as Device
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy