Created
January 25, 2019 10:58
-
-
Save marcinOz/cfa2896a15b2a96acaa18815bee942a8 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
companion object { | |
fun getComponent(context: Context) = | |
(context.applicationContext as WTWApplication).appComponent | |
} | |
lateinit var appComponent: AppComponent | |
override fun onCreate() { | |
super.onCreate() | |
appComponent = DaggerAppComponent | |
.builder() | |
.application(this) | |
.build() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment