Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
val dataBaseModule = module {
single {
Room.databaseBuilder(androidContext(),, BuildConfig.APPLICATION_ID)
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.