Files
dtourolleandClaude Opus 5 5f0fe7b403
🚴 Build and Test BikeControl / Workspace tests (push) Successful in 10m18s
Build & Release / Run tests (push) Successful in 6m47s
🚴 Build and Test BikeControl / Android compile check (push) Successful in 3m36s
Build & Release / Build Linux (deb + AppImage) (push) Successful in 15m30s
Build & Release / Build Arch package (push) Successful in 29m17s
Build & Release / Build Android APK (push) Successful in 19m41s
Build & Release / Create release (push) Successful in 16s
Give the app a real icon, adaptive on Android
Desktop icons regenerated from the new artwork with `cargo tauri icon`.
It also emits Windows, macOS and iOS variants; those are left untracked,
since bundle.icon lists only the four PNGs and this project ships deb,
AppImage, Arch and APK.

The Android set is the IconKitchen output rather than Tauri's, because
Tauri's `icon` command produces only ic_launcher and a foreground layer.
The full set adds the background and monochrome layers, which is what
makes mipmap-anydpi-v26/ic_launcher.xml a real adaptive icon: the
launcher masks it to whatever shape the device uses instead of pasting a
circle into a square, and the monochrome layer means themed icons work on
Android 13+.

These live in src-tauri/android/src/main/res/, not gen/. gen/ is rewritten
by `tauri android init`, so an icon dropped there is one git has never
seen and the next init deletes -- the same trap the Kotlin sources are
kept out of. sync-android-sources.sh already loops over res/*/ and needed
no change to pick them up. Note that check-android-sources.sh only walks
src/main/java, so res/ has no equivalent guard; the icons are tracked here
by construction rather than by a check.

AndroidManifest already pointed at @mipmap/ic_launcher and has no
roundIcon, so nothing there had to change.

Verified in the built release APK: aapt2 reports application-icon at every
density resolving to the adaptive XML, with all three layers bound, and
versionCode=1100.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-21 18:27:29 +02:00
..