Magisk/app/src/main/java/com/topjohnwu/magisk/di/DatabaseModule.kt

13 lines
332 B
Kotlin
Raw Normal View History

package com.topjohnwu.magisk.di
import com.topjohnwu.magisk.App
import com.topjohnwu.magisk.data.database.MagiskDB
2019-04-22 14:00:48 +00:00
import com.topjohnwu.magisk.data.database.RepoDatabaseHelper
import org.koin.dsl.module
val databaseModule = module {
single { MagiskDB(get<App>().protectedContext) }
2019-04-22 14:00:48 +00:00
single { RepoDatabaseHelper(get()) }
}