bytedance/AabResGuard

[CRASH]whiteList添加了"*.R.string.google_app_id"之后app启动就会crash

ZimmerZhou opened this issue · 0 comments

whiteList添加了".R.string.google_app_id"这一条之后,release版本启动就会crash,去掉就OK
配置如下:
aabResGuard {
whiteList = [ // 白名单规则
"
.R.string.google_app_id",
]
obfuscatedBundleFileName = "duplicated-app.aab" // 混淆后的文件名称,必须以 .aab 结尾
mergeDuplicatedRes = true // 是否允许去除重复资源
enableFilterFiles = false // 是否允许过滤文件
filterList = [ // 文件过滤规则
// "/arm64-v8a/",
// "META-INF/*"
]
enableFilterStrings = false // 过滤文案
unusedStringPath = file("unused.txt").toPath() // 过滤文案列表路径 默认在mapping同目录查找
// languageWhiteList = ["en", "zh"] // 保留en,en-xx,zh,zh-xx等语言,其余均删除
}