Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. class App : Application() {
  2.  
  3.     override fun onCreate() {
  4.         super.onCreate()
  5.         if (BuildConfig.DEBUG) run { Timber.plant(Timber.DebugTree()) }
  6.         print(App.instance)
  7.     }
  8.  
  9.     companion object {
  10.         val instance: App by lazy {
  11.             App()
  12.         }
  13.  
  14.         val component: AppComponent by lazy { DaggerAppComponent
  15.                                                 .builder()
  16.                                                 .restModule(RestModule())
  17.                                                 .build()!! }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement