Skip to content

Instantly share code, notes, and snippets.

@cdmunoz
Created March 8, 2018 02:09
Show Gist options
  • Select an option

  • Save cdmunoz/e2292847ac8a9df1e925ee9790e71493 to your computer and use it in GitHub Desktop.

Select an option

Save cdmunoz/e2292847ac8a9df1e925ee9790e71493 to your computer and use it in GitHub Desktop.
class CryptocurrencyApplication: Application(), HasActivityInjector {
@Inject lateinit var activityInjector: DispatchingAndroidInjector<Activity>
override fun onCreate() {
super.onCreate()
DaggerAppComponent.builder()
.appModule(AppModule(this))
.netModule(NetModule(BuildConfig.URL))
.build().inject(this)
}
override fun activityInjector(): AndroidInjector<Activity> = activityInjector
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment