Created
March 3, 2018 00:36
-
-
Save cdmunoz/76bf21e6ef1524fd3d054b087de7a3a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CryptocurrencyApplication: Application(), HasActivityInjector { | |
@Inject lateinit var activityInjector: DispatchingAndroidInjector<Activity> | |
override fun onCreate() { | |
super.onCreate() | |
DaggerAppComponent.builder().appModule(AppModule(this)).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