Skip to content

Instantly share code, notes, and snippets.

@marcinOz
Last active January 25, 2019 10:55
Show Gist options
  • Save marcinOz/fde39c717f4c35da3e287e8176be1fa9 to your computer and use it in GitHub Desktop.
Save marcinOz/fde39c717f4c35da3e287e8176be1fa9 to your computer and use it in GitHub Desktop.
val appModule = module {
// single instance of HelloRepository (which will be reused)
single { HelloRepositoryImpl() }
// Simple Presenter Factory (creates every time new)
factory { MySimplePresenter(get()) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment