Newer
Older
DevelopRx / app / src / main / kotlin / org / ntlab / developrx / App.kt
  1. package org.ntlab.developrx
  2.  
  3. import android.app.Application
  4.  
  5. /**
  6. * Created by matsumoto_k on 2017/11/11.
  7. */
  8. class App : Application() {
  9. companion object {
  10. lateinit private var instance: App
  11. fun get() = instance
  12. }
  13.  
  14. override fun onCreate() {
  15. super.onCreate()
  16. instance = this
  17. }
  18. }