mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Explicitly bind app to Application class
Also bound app to Context class
This commit is contained in:
parent
3cd29696d4
commit
a8b3d97b14
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package yokai.core.di
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import androidx.sqlite.db.SupportSQLiteOpenHelper
|
||||
import app.cash.sqldelight.db.SqlDriver
|
||||
import app.cash.sqldelight.driver.android.AndroidSqliteDriver
|
||||
|
@ -36,7 +37,8 @@ import yokai.domain.SplashState
|
|||
import yokai.domain.storage.StorageManager
|
||||
|
||||
fun appModule(app: Application) = module {
|
||||
single { app }
|
||||
single<Application> { app }
|
||||
single<Context> { app }
|
||||
|
||||
single<SupportSQLiteOpenHelper> {
|
||||
val configuration = SupportSQLiteOpenHelper.Configuration.builder(app)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue