26 lines
570 B
Kotlin
26 lines
570 B
Kotlin
package com.sw.platecabinet
|
|
|
|
import com.sw.plate.App
|
|
import com.sw.plate.utils.AppUtil
|
|
import timber.log.Timber
|
|
|
|
class MyApp : App() {
|
|
companion object {
|
|
const val DEBUG: Boolean = true
|
|
}
|
|
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
Timber.plant(Timber.DebugTree())
|
|
Timber.d("初始化")
|
|
initGlobalData()
|
|
}
|
|
|
|
/**
|
|
* 初始化全局数据
|
|
*/
|
|
private fun initGlobalData() {
|
|
GlobalData.appVersion = AppUtil.getAppVersionName(this)
|
|
GlobalData.globalEquipmentCode = "202501171634"
|
|
}
|
|
} |