Created
March 8, 2018 02:09
-
-
Save cdmunoz/e2292847ac8a9df1e925ee9790e71493 to your computer and use it in GitHub Desktop.
This file contains hidden or 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)) | |
| .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