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 theCharactertag to ensure alignment. -
Crops and resizes
PartImagenodes, 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:jarThe following command will run the optimizations in place:
java -jar wff_optimizer.jar --source PATH/TO/UNZIPPED/APKAdd --verbose to observe what the tool is doing.