bytedance / AabResGuard

The tool of obfuscated aab resources.(Android app bundle资源混淆工具)
Apache License 2.0
1.3k stars 180 forks source link

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

Open ZimmerZhou opened 3 years ago

ZimmerZhou commented 3 years ago

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等语言,其余均删除 }