Last active
May 19, 2019 22:59
-
-
Save fevziomurtekin/a4d816140039d5095a4bc6b137e58e1b to your computer and use it in GitHub Desktop.
BaseApplication.kt
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 BaseApplication : Application(), HasActivityInjector { | |
@Inject | |
lateinit var dispatchingAndroidInjector: DispatchingAndroidInjector<Activity> | |
override fun activityInjector() = dispatchingAndroidInjector | |
fun initDagger() { | |
DaggerAppComponent | |
.builder() | |
.application(this) | |
.build() | |
.inject(this) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment