修复宿主 app 应用 resguard 插件后导致分包的 ABI APK 包大小增加问题 & 7z 深度压缩导致资源找不到问题 #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
问题1: 宿主 app 使用 rearguard 插件,打出的 abi 包大小增大
需要等待 resguard 处理完成后再进行分包。
以我们的应用为例,修复前 v7a 的包大小为 127M,修复后包大小为 119M
问题2: 7z 深度压缩(-mx9) 导致 resources.arsc 出问题,运行时资源找不到
不使用 7z 压缩(即不侵入修改宿主 app 的打包压缩流程,只复制全包后进行 zip 操作文件