Skip to content

Instantly share code, notes, and snippets.

@amanjeetsingh150
Created March 16, 2019 19:58
Show Gist options
  • Save amanjeetsingh150/46741122b0c9aa6f70f7ce9fd59e4fe6 to your computer and use it in GitHub Desktop.
Save amanjeetsingh150/46741122b0c9aa6f70f7ce9fd59e4fe6 to your computer and use it in GitHub Desktop.
ActivityComponent for MVVM Sample
@PerActivity
@Component(modules = arrayOf(NetModule::class, ActivityModule::class),
dependencies = arrayOf(AppComponent::class))
interface ActivityComponent {
fun inject(mainActivity: MainActivity)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment