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

修改压缩逻辑 #29

Merged
merged 5 commits into from
Sep 3, 2023
Merged

修改压缩逻辑 #29

merged 5 commits into from
Sep 3, 2023

Conversation

hanliuxin5
Copy link
Contributor

解压后的文件恢复至原大小,需要重新设置压缩参数。

解决重新打包后压缩失效问题。
尝试改变压缩逻辑。
缺失包补充。
@luoyesiqiu
Copy link
Owner

这个改动是怎么保证apk大小的

@luoyesiqiu
Copy link
Owner

或者说解决了什么问题

@hanliuxin5
Copy link
Contributor Author

一旦读取到文件 resources.arsc 并设置过 CompressionMethod.STORE 后,之后的压缩逻辑会继续使用 CompressionMethod.STORE 参数 🤣

@luoyesiqiu
Copy link
Owner

这个确实是个问题。要不干脆改彻底:在解压的时候把原apk的各文件存储方式存下来,然后压缩的时候再还原回去?改完再一并merge

记录压缩方法,并且在重新组包时使用正确的压缩方法。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants