chore: update versioning and launcher icons
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 46s

- Incremented versionCode to 2 and versionName to 1.0.1 in build.gradle.kts for the new release.
- Updated the ic_launcher_background color in ic_launcher_colors.xml to better match the app's branding.
- Replaced multiple launcher icon assets across various resolutions to ensure consistency in the app's appearance.
This commit is contained in:
Torsten Schulz (local)
2026-05-14 19:27:39 +02:00
parent 56ebffce69
commit 95a3e9438a
19 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Erzeugt Launcher-Icons aus dem Web-Header-Logo (frontend/src/assets/logo.png).
# Aufruf von überall: bash mobile-app/scripts/refresh-android-launcher-icons.sh
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
SRC="$ROOT/frontend/src/assets/logo.png"
RES="$ROOT/mobile-app/composeApp/src/androidMain/res"
if [[ ! -f "$SRC" ]]; then
echo "Fehlt: $SRC" >&2
exit 1
fi
mkdir -p "$RES/drawable-mdpi" "$RES/drawable-hdpi" "$RES/drawable-xhdpi" "$RES/drawable-xxhdpi" "$RES/drawable-xxxhdpi" \
"$RES/mipmap-mdpi" "$RES/mipmap-hdpi" "$RES/mipmap-xhdpi" "$RES/mipmap-xxhdpi" "$RES/mipmap-xxxhdpi"
magick "$SRC" -resize 108x108! -filter Lanczos "$RES/drawable-mdpi/ic_launcher_foreground.png"
magick "$SRC" -resize 162x162! -filter Lanczos "$RES/drawable-hdpi/ic_launcher_foreground.png"
magick "$SRC" -resize 216x216! -filter Lanczos "$RES/drawable-xhdpi/ic_launcher_foreground.png"
magick "$SRC" -resize 324x324! -filter Lanczos "$RES/drawable-xxhdpi/ic_launcher_foreground.png"
magick "$SRC" -resize 432x432! -filter Lanczos "$RES/drawable-xxxhdpi/ic_launcher_foreground.png"
magick "$SRC" -resize 48x48! -filter Lanczos "$RES/mipmap-mdpi/ic_launcher.png"
magick "$SRC" -resize 72x72! -filter Lanczos "$RES/mipmap-hdpi/ic_launcher.png"
magick "$SRC" -resize 96x96! -filter Lanczos "$RES/mipmap-xhdpi/ic_launcher.png"
magick "$SRC" -resize 144x144! -filter Lanczos "$RES/mipmap-xxhdpi/ic_launcher.png"
magick "$SRC" -resize 192x192! -filter Lanczos "$RES/mipmap-xxxhdpi/ic_launcher.png"
for d in mipmap-mdpi mipmap-hdpi mipmap-xhdpi mipmap-xxhdpi mipmap-xxxhdpi; do
cp "$RES/$d/ic_launcher.png" "$RES/$d/ic_launcher_round.png"
done
echo "OK: Icons aus $SRC nach $RES"