diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-29 19:29:09 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-29 19:29:09 -0800 |
commit | c5d38e5122bcb452b1e61ea6526434cf62e9da8c (patch) | |
tree | 3b31b15cd40fc81738592b8cb8af15fe23450d65 /app/src/main/kotlin/com/pitchedapps/frost/db/Database.kt | |
parent | a93cdf52cc3b7eff1e2d4cf436b8f8dbc3cf14a2 (diff) | |
download | frost-c5d38e5122bcb452b1e61ea6526434cf62e9da8c.tar.gz frost-c5d38e5122bcb452b1e61ea6526434cf62e9da8c.tar.bz2 frost-c5d38e5122bcb452b1e61ea6526434cf62e9da8c.zip |
Update koin usage
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/db/Database.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/db/Database.kt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/db/Database.kt b/app/src/main/kotlin/com/pitchedapps/frost/db/Database.kt index e54daa69..9ceb05aa 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/db/Database.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/db/Database.kt @@ -22,6 +22,7 @@ import androidx.room.Room import androidx.room.RoomDatabase import com.pitchedapps.frost.BuildConfig import org.koin.core.context.GlobalContext +import org.koin.core.context.KoinContextHandler import org.koin.dsl.module interface FrostPrivateDao { @@ -100,11 +101,5 @@ class FrostDatabase( single { get<FrostDatabase>().notifDao() } single { get<FrostDatabase>().genericDao() } } - - /** - * Get from koin - * For the most part, you can retrieve directly from other koin components - */ - fun get(): FrostDatabase = GlobalContext.get().koin.get() } } |