titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

fix(android): bundle webp res files

Open m1ga opened this issue 1 month ago • 1 comments

looks like there is a file that collects all image types in the build process and webp was not an option in there :) Downside: if you use assets/android/images/res-xxxhdpi/ with a webp file it won't include that.

Using Android Studio you can see that it only includes res files for JPG images (or PNG): Screenshot_20240525_143556 the webp file doesn't have dpi folders.

With this PR: Screenshot_20240525_144917

Tests I've also added a visual test with /res files. Currently only for a xxhdpi emulator. I had to downgrade strip-ansi again as that version was an ESM version and the tests wouldn't open. 6.0.1 is the last non ESM version for now

m1ga avatar May 25 '24 12:05 m1ga