Skip to content

Instantly share code, notes, and snippets.

@egek92 egek92/ModuleKoin.kt
Created Jul 10, 2019

Embed
What would you like to do?
val dataBaseModule = module {
single {
Room.databaseBuilder(androidContext(), AppDatabase::class.java, BuildConfig.APPLICATION_ID)
.fallbackToDestructiveMigration()
.build()
}
single { (get() as AppDatabase).hotelsDao() }
single { (get() as AppDatabase).visitors() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.