build(servicing): 更新构建配置并升级版本号

-禁用 release 和 debug 构建类型的代码压缩
- 添加 publishNonDefault 配置项
-将版本号从 1.0.1.9.9.126 升级到 1.0.1.9.9.127
This commit is contained in:
songzhiling
2025-07-11 17:48:46 +08:00
parent 2cb2425e8f
commit c1c070dfac
81 changed files with 2272 additions and 673 deletions

View File

@ -7,6 +7,7 @@ import com.tencent.mmkv.MMKV
import com.za.base.AppConfig
import com.za.base.Const
import com.za.bean.db.order.OrderInfo
import com.za.common.log.LogUtil
import com.za.room.RoomHelper
import com.za.room.db.user.DriverInfoBean
import com.za.service.location.ZdLocationManager
@ -49,14 +50,26 @@ object GlobalData : GlobalLocalData() {
var driverInfoBean : DriverInfoBean? = null
get() {
if (field == null) {
field = localDriverInfoBean
return try {
val driverInfo = MMKV.defaultMMKV()
.decodeParcelable("driverInfoBean", DriverInfoBean::class.java)
field = driverInfo
field
} catch (e : Exception) {
LogUtil.print("local_driverInfoBean", "获取司机信息失败: ${e.message}")
null
}
return field
}
set(value) {
localDriverInfoBean = value
field = value
try {
MMKV.defaultMMKV().encode("driverInfoBean", value)
if (value != null) {
lastLoginBean = value
}
field = value
} catch (e : Exception) {
LogUtil.print("set local_driverInfoBean", "保存司机信息失败: ${e.message}")
}
}
@ -139,6 +152,45 @@ object GlobalData : GlobalLocalData() {
mmkv.encode("isShowKeepAlive", value)
}
var lastUploadLogTime : Long
get() {
return mmkv.decodeLong("lastUploadLogTime", 0)
}
set(value) {
mmkv.encode("lastUploadLogTime", value)
}
var vehicleId : Int? = null
get() {
field = mmkv.decodeInt("vehicleId")
return field
}
set(value) {
mmkv.encode("vehicleId", value ?: 0)
field = value
}
var driverId : Int? = null
get() {
field = mmkv.decodeInt("driverId")
return field
}
set(value) {
mmkv.encode("driverId", value ?: 0)
field = value
}
var deviceId : String? = null
get() {
field = mmkv.decodeString("deviceId")
return field
}
set(value) {
mmkv.encode("deviceId", value)
field = value
}
fun clearUserCache() {
token = null
aesKey = null
@ -147,6 +199,10 @@ object GlobalData : GlobalLocalData() {
loginTime = null
isLoginRecognition = null
isHasShowKeepAlive = false
lastUploadLogTime = 0
deviceId = null
vehicleId = null
driverId = null
if (AppConfig.isRelease) {
networkEnv = if (AppConfig.isRelease) {