Crashlytics.kt 700 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.dolin.crashlytics
  2. import android.app.Application
  3. import com.dolin.crashlytics.entity.Config
  4. /**
  5. * @author #Suyghur.
  6. * Created on 4/14/21
  7. */
  8. class Crashlytics {
  9. fun initialize(application: Application, config: Config) {
  10. }
  11. companion object {
  12. @JvmStatic
  13. fun getVersion(): String {
  14. return Version.VERSION
  15. }
  16. @JvmStatic
  17. fun getFullVersion(): String {
  18. return Version.FULL_VERSION
  19. }
  20. @JvmStatic
  21. fun getInstance(): Crashlytics {
  22. return CrashlyticsHolder.INSTANCE
  23. }
  24. private object CrashlyticsHolder {
  25. val INSTANCE = Crashlytics()
  26. }
  27. }
  28. }