mirror of
https://github.com/Joker-x-dev/AndroidProject-Compose.git
synced 2025-12-27 15:47:11 +00:00
调整 xxp 权限框架版本以及配置混淆规则
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
8
app/proguard-rules.pro
vendored
8
app/proguard-rules.pro
vendored
@@ -18,4 +18,10 @@
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
# toast 混淆规则
|
||||
-keep class com.hjq.toast.** {*;}
|
||||
|
||||
# xxp权限混淆规则
|
||||
-keep class com.hjq.permissions.** { *; }
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user