riku
2025-10-17 fbae5f3ea74727ccadc48314a864a1ea0099a945
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"
    }
}