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