Make database instance injectable
This commit is contained in:
@@ -49,6 +49,7 @@ dependencies {
|
||||
api(libs.androidx.roomruntime)
|
||||
kapt(libs.androidx.roomcompiler)
|
||||
implementation(libs.androidx.room)
|
||||
implementation(libs.koin.android)
|
||||
|
||||
implementation(project(":i18n"))
|
||||
implementation(project(":ktx"))
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package de.mm20.launcher2.database
|
||||
import org.koin.dsl.module
|
||||
|
||||
val databaseModule = module {
|
||||
single { AppDatabase.getInstance(get()) }
|
||||
}
|
||||
Reference in New Issue
Block a user