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

assets 和 res/raw 也会进行处理 #2

Open
JuneLeo opened this issue Jun 28, 2020 · 1 comment
Open

assets 和 res/raw 也会进行处理 #2

JuneLeo opened this issue Jun 28, 2020 · 1 comment

Comments

@JuneLeo
Copy link

JuneLeo commented Jun 28, 2020

楼主可以拿一个线上的apk,使用aapt -l 的方式查看以下资源是不是会被压缩;Deflate/Stored (压缩模式和存储模式)
还有再补充一点哇,aapt2 开启之后可以配置对打包过程中图片的压缩
Archive: xxx.apk
Length Method Size Ratio Offset Date Time CRC-32 Name


339112 Deflate 49470 85% 0 06-24-20 18:31 6c8a0baf AndroidManifest.xml
49976 Deflate 25063 50% 49539 06-24-20 18:31 1292436e assets/37CF018B.dex
420 Deflate 215 49% 74667 06-24-20 18:31 ffffffffdcb230a1 assets/86_zh_carrier
792700 Deflate 388038 51% 74948 06-24-20 18:31 63f6556f assets/86_zh_geo
343 Stored 343 0% 463048 01-01-80 08:00 47320e2f assets/adsideicon_baidu.png
289 Stored 289 0% 463451 01-01-80 08:00 ffffffffff33caa7 assets/adsideicon_cmcm.png
2221 Stored 2221 0% 463797 01-01-80 08:00 fffffffffb08b88e assets/adsideicon_gdt.png
1379 Stored 1379 0% 466073 01-01-80 08:00 64af76f9 assets/adsideicon_ks.png
1107 Stored 1107 0% 467507 01-01-80 08:00 09f214dc assets/adsideicon_tt.png

@hi-dhl
Copy link
Owner

hi-dhl commented Dec 13, 2020

@JuneLeo 感谢补充, 已经将 Deflate/Stored (压缩模式和存储模式) 相关内容添加进对应的文章内了

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

No branches or pull requests

2 participants