Skip to content

Instantly share code, notes, and snippets.

@diousk
Last active May 26, 2020 01:17
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 diousk/050057251a7480df56b9e71e12ce72b4 to your computer and use it in GitHub Desktop.
Save diousk/050057251a7480df56b9e71e12ce72b4 to your computer and use it in GitHub Desktop.
@Module
abstract class ActivityBuilder {
 @PerActivity
 @ContributesAndroidInjector(modules = [SomeModule::class])
 abstract fun bindSomeActivity(): SomeActivity
}
@Module
abstract class SomeModule {
 @Provides
 @PerActivity
 fun provideSomeObject(): SomeObject
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment