Skip to content

Instantly share code, notes, and snippets.

@egek92
Created July 10, 2019 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egek92/239e45746f91f143d7870f0d81058262 to your computer and use it in GitHub Desktop.
Save egek92/239e45746f91f143d7870f0d81058262 to your computer and use it in GitHub Desktop.
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