Skip to content

Instantly share code, notes, and snippets.

@Rasalexman
Last active June 24, 2019 19:06
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 Rasalexman/2315b4ed25159b28fec42c7a6295e7a3 to your computer and use it in GitHub Desktop.
Save Rasalexman/2315b4ed25159b28fec42c7a6295e7a3 to your computer and use it in GitHub Desktop.
val databaseModule = Kodein.Module("database_module") {
bind<IGenresDao>() with provider { kodein.direct.instance<MoviesDatabase>().getGenresDao() }
bind<IMoviesDao>() with provider { kodein.direct.instance<MoviesDatabase>().getMoviesDao() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment