Skip to content

Instantly share code, notes, and snippets.

@rachitmishra
Last active November 7, 2017 19:09
Show Gist options
  • Save rachitmishra/1648e212e77441f8c76b7bbc17851cde to your computer and use it in GitHub Desktop.
Save rachitmishra/1648e212e77441f8c76b7bbc17851cde to your computer and use it in GitHub Desktop.
dagger-activity
/**
* Declaring a activity bindings using @ContributesAndroidInjector and @Activity scope (custom scope)
*/
@Module
abstract class ActivityBindings {
@ActivityScope
@ContributesAndroidInjector
abstract fun contributeHomeActivity(): HomeActivity
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment