Created
March 25, 2019 23:52
-
-
Save tfcporciuncula/2b3bc267cef41188b4f1ccd048490690 to your computer and use it in GitHub Desktop.
SimpleAssistedInjectApplication
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 SimpleAssistedInjectApplication : Application() { | |
val component: ApplicationComponent by lazy { | |
DaggerApplicationComponent.builder() | |
.applicationContext(applicationContext) | |
.build() | |
} | |
} | |
val Activity.component get() = (application as SimpleAssistedInjectApplication).component |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment