Skip to content

Instantly share code, notes, and snippets.

@ch8n
Created September 22, 2020 05:02
Show Gist options
  • Save ch8n/ac1d27094518394397d7ac45ba6b1241 to your computer and use it in GitHub Desktop.
Save ch8n/ac1d27094518394397d7ac45ba6b1241 to your computer and use it in GitHub Desktop.
for medium article
@Singleton
@Component(
modules = arrayOf(
AndroidSupportInjectionModule::class,
//..add here
NetworkResolver::class,
AppResolver::class,
ViewModelResolver::class
)
)
interface AppComponent : AndroidInjector<AirtelApplication> {
@Component.Builder
interface Builder {
@BindsInstance
fun application(application: SampleApp): Builder
fun build(): AppComponent
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment