This tool applies the following optimizations, designed to reduce the runtime memory footprint of a WatchFace Format watch face:
-
Crops and resizes
BitmapFonts
, adding margins to theCharacter
tag to ensure alignment. -
Crops and resizes
PartImage
nodes, adjusting the pivot if needed. -
Attempts to quantize images to RGB565 where there will be no noticeable loss of fidelity.
-
De-duplicates image resources after cropping, etc...
./gradlew :wff-optimizer:jar
The following command will run the optimizations in place:
java -jar wff_optimizer.jar --source PATH/TO/UNZIPPED/APK
Add --verbose
to observe what the tool is doing.