riku
2022-01-20 5a0fff8095cd5356f57c181b7e7b820e0f7efacf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package cn.flightfeather.thirdappmodule.util
 
class GlobalConfig private constructor() {
    var versionCode = 0
 
    var versionName: String? = null
 
    var userId: String by MyPreference("userId", "default_customer")
 
    companion object {
        @JvmStatic
        val instance: GlobalConfig by lazy(LazyThreadSafetyMode.SYNCHRONIZED) { GlobalConfig()}
 
        const val DEFAULT_USER = "default_customer"
    }
}