Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Created March 21, 2019 21:23
Show Gist options
  • Save tfcporciuncula/c24338975caf20b1db3f3250a80de792 to your computer and use it in GitHub Desktop.
Save tfcporciuncula/c24338975caf20b1db3f3250a80de792 to your computer and use it in GitHub Desktop.
ApplicationComponent.kt
@Singleton
@Component(modules = [RetrofitModule::class, AssistedInjectModule::class])
interface ApplicationComponent {
...
val bestPostViewModelFactory: BestPostViewModel.Factory
}
@AssistedModule
@Module(includes = [AssistedInject_AssistedInjectModule::class])
interface AssistedInjectModule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment