bundletool icon indicating copy to clipboard operation
bundletool copied to clipboard

Feature Request: Get size for specific module only

Open benjaminRomano opened this issue 6 years ago • 2 comments

Is your feature request related to a problem? Please describe. I'd like to track the module size over time. However using something like --modules=module1 with the get-size will give me size of base + module1. Is it possible to add a flag to grab size of exactly one module.

Describe the solution you'd like Possibly add a flag like --exact that would only include the APKs for the specified modules. For example: --modules=base,module1 --exact return size for base.apk + module1.apk (equivalent to --modules=base,module1 or --modules=module1) --modules=module1 --exact would return module1.apk

benjaminRomano avatar Oct 10 '19 20:10 benjaminRomano

@ymakhno bumping this old issue.

I worked around this by forking bundletool, but it would be nice to have this built-in instead. If this general approach makes sense I could work on putting a PR for this.

benjaminRomano avatar Nov 03 '20 20:11 benjaminRomano

Semantically get-size exact --modules=module1 is better than get-size total --modules=module1 --exact

chao2zhang avatar Apr 01 '21 00:04 chao2zhang