Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to remove mapping.txt from .aab/bundle #20

Closed
trycatchx opened this issue Jan 10, 2020 · 7 comments
Closed

how to remove mapping.txt from .aab/bundle #20

trycatchx opened this issue Jan 10, 2020 · 7 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@trycatchx
Copy link

trycatchx commented Jan 10, 2020

如何移除 aab 中的 mapping.txt ,并不想把映射关系提供出去。是否可行?或者有所影响?如何实施。

@trycatchx trycatchx added the bug Something isn't working label Jan 10, 2020
@trycatchx trycatchx changed the title android how to remove mapping.txt from .aab/bundle how to remove mapping.txt from .aab/bundle Jan 10, 2020
@JingYeoh
Copy link
Member

@zhangchaojiong 你是指 BUNDLE_METADATA/{package}/proguard.map 文件?这个文件应该是用于 Google play crash stack traces 的。

具体可参考:Deobfuscate crash stack traces

@JingYeoh
Copy link
Member

JingYeoh commented Jan 13, 2020

@zhangchaojiong 如果仍需要过滤该文件的话,请使用aabresguard-plugin:0.1.4:及以上版本,并使用如下配置:

enableFilterFiles = true
filterList = [
        "BUNDLE-METADATA/**/proguard.map"
]

@JingYeoh JingYeoh added the help wanted Extra attention is needed label Jan 13, 2020
@trycatchx
Copy link
Author

trycatchx commented Jan 13, 2020

@JingYeoh 如果不把 proguard.map 加入白名单中(filterList ),这个文件(proguard.map)内容也会被混淆,也会被影响到 bug 的追踪吧。我的问题清楚了,谢谢@JingYeoh

@JingYeoh
Copy link
Member

@zhangchaojiong 资源混淆只影响资源目录下的文件,即 */res/* ,其他目录下的文件不会受到影响。

@trycatchx
Copy link
Author

@JingYeoh 那加入下面这个白名单的意义是?不打包到bundle 里面去?

filterList = [
        "BUNDLE-METADATA/**/proguard.map"
]

@JingYeoh
Copy link
Member

@zhangchaojiong 这不是白名单,这是需要过滤的文件,详情请参考 Wiki

enableFilterFiles =true时,在最终生成的混淆包中过滤掉符合filterList 规则的文件。

@trycatchx
Copy link
Author

嗯嗯,那我知道了。符合 whiteList 规则的文件是不参与混淆,符合 filterList 规则的文件不打包进 .aab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants