调整 xxp 权限框架版本以及配置混淆规则

This commit is contained in:
Joker.X
2025-11-30 12:22:47 +08:00
parent 5e895c406c
commit cfaf15c1dc
3 changed files with 14 additions and 4 deletions

View File

@@ -96,7 +96,9 @@ android {
// signingConfig = signingConfigs.getByName("common")
// debug 模式下包名后缀
applicationIdSuffix = ".debug"
// debug 模式下的请求 url 地址
buildConfigField("String", "BASE_URL", "\"https://box.dusksnow.top/app/\"")
// 根据当前构建类型是否为 debug 模式来判断是否开启 debug 模式
buildConfigField("Boolean", "DEBUG", "true")
}
@@ -108,13 +110,15 @@ android {
isShrinkResources = true
// 正式发布模式下的签名配置(配置完 common 签名配置后,取消注释以下行)
// signingConfig = signingConfigs.getByName("common")
// 正式发布模式下的请求 url 地址
buildConfigField("String", "BASE_URL", "\"https://box.dusksnow.top/app/\"")
// 根据当前构建类型是否为 debug 模式来判断是否开启 debug 模式
buildConfigField("Boolean", "DEBUG", "false")
// 混淆规则文件
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
buildConfigField("String", "BASE_URL", "\"https://box.dusksnow.top/app/\"")
buildConfigField("Boolean", "DEBUG", "false")
}
}

View File

@@ -19,3 +19,9 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# toast 混淆规则
-keep class com.hjq.toast.** {*;}
# xxp权限混淆规则
-keep class com.hjq.permissions.** { *; }

View File

@@ -87,7 +87,7 @@ toaster = "13.2"
# 权限
# XXPermissions 权限框架: https://github.com/getActivity/XXPermissions
xxpermissions = "26.5"
xxpermissions = "28.0"
# 数据存储
# 腾讯 MMKV 高性能存储: https://github.com/Tencent/MMKV