Closed
Bug 1266156
Opened 8 years ago
Closed 2 years ago
Investigate cruncherEnabled for AAPT PNG optimization
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Firefox Build System
Android Studio and Gradle Integration
All
Android
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mcomella, Unassigned, Mentored)
References
Details
Sebastian pointed out an article: https://medium.com/@duhroach/smaller-pngs-and-android-s-aapt-tool-4ce38a24019d#.ukj81d97r It mentions that AAPT's optimization tool can actually increase the size of PNGs if you've already optimized your PNGs beforehand (which we do). You can disable the functionality with the "cruncherEnabled" flag. We should: * See what's currently running * Investigate twiddling the flag * See how it affects the produced APK Note: who knows what moz.build is doing but let's focus on gradle because we'll drop moz.build (hopefully) soon.
Comment 2•8 years ago
|
||
Hey Krish. This is not directly related to downloadable content but APK size. Can you build with gradle (front-end build) and compare the APK size with cruncherEnabled on/off (See blog posting in comment 0). Almost all our PNGs are optimized (see bug 1266057), so we are wondering if aapt will actually increase the size of the APK.
Assignee: nobody → k.krish
Hey Sebastian, Sure I will perform the necessary investigations and come back.
Comment 4•8 years ago
|
||
We were just talking about this on IRC and with a fx-team gradle build we see a ~100KB difference: * Default build: 39240639 bytes * With cruncher disabled: 39128721 bytes (-111918 bytes / ~109KB)
I built the code in my local machine and observed the following. * Default Build - 3,93,53,420 bytes. * With Cruncher disabled - 3,92,41,478 bytes. *Difference = 1,11,942 bytes which is - ~111KB.
Comment 6•8 years ago
|
||
Great. This matches my observations. It would be interesting to know if we can disable this when running aapt manually (I think that's what our mach based build does) or if this is only available to gradle based builds.
Updated•5 years ago
|
Product: Firefox for Android → Firefox Build System
Comment 7•2 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:nalexander, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: k.krish → nobody
Flags: needinfo?(nalexander)
Comment 8•2 years ago
|
||
Anything here would be relevant to Fenix, which I'm quite sure will be optimizing image assets using modern toolchain techniques.
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(nalexander)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•