Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class App : Application() {
- override fun onCreate() {
- super.onCreate()
- if (BuildConfig.DEBUG) run { Timber.plant(Timber.DebugTree()) }
- print(App.instance)
- }
- companion object {
- val instance: App by lazy {
- App()
- }
- val component: AppComponent by lazy { DaggerAppComponent
- .builder()
- .restModule(RestModule())
- .build()!! }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement