Last active
March 31, 2019 13:50
-
-
Save CostaFot/eac563563d53b6e28db9c86686519856 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 ReviewApplication : DaggerApplication() { | |
override fun onCreate() { | |
super.onCreate() | |
// ignore this if you don't like the Timber logging library | |
if (BuildConfig.DEBUG) { | |
Timber.plant(Timber.DebugTree()) | |
Timber.d("Timber initialised") | |
} | |
} | |
override fun applicationInjector(): AndroidInjector<out DaggerApplication> { | |
return DaggerAppComponent.builder() | |
.application(this) | |
.build() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment