m7c: brand splash instead of the white startup screen
- LaunchTheme/NormalTheme on #05070A (was the stock light theme + white windowBackground) and the Android 12 splash API in values-v31 - splash icon is a padded 512x512 canvas: Android masks everything outside the inner 192dp of the 288dp icon area, which clipped the wordmark at the top; the icon plate is set to the icon navy - Flutter splash (lib/src/ui/splash_screen.dart): logo pulses (scale 0.96-1.04, opacity 0.72-1.0, 1100 ms) plus a thin progress line, min 700 ms measured from the first Flutter frame - boot work (session, FFI library, ad SDK) now runs after the first frame and the game fades in over the splash: no blocking work before the first frame - numbers (Redmi Note 10, API 31): debug 3053 ms, profile/AOT 2040 ms on the first start, 850-960 ms on later cold starts, ready log ~1030 ms - fixed: top-level Stopwatch only started on first access (Dart lazily initialises top-level finals), so the boot log always showed 0 ms - tools/device/startup.sh measures cold start + boot log; testing.md documents the splash chain and the MIUI release-install trap
This commit is contained in:
@@ -138,6 +138,34 @@ Startspieler hatte Spieler 0 einen 59/40-Vorteil.
|
||||
| Reihenfolge | `consent=ConsentStatus.obtained` **vor** `SDK initialised` → keine Ad-Anfrage ohne Einwilligung |
|
||||
| Einstiegspunkt | Zahnrad → Datenschutz-Optionen öffnet das Formular erneut |
|
||||
|
||||
## M7c — Startzeit & Splash (erledigt 2026-10-25)
|
||||
|
||||
**Problem:** 5 s weisser Bildschirm vor dem ersten Frame (Stock-`launch_background` mit
|
||||
`@android:color/white`, dazu die gesamte Bootarbeit vor dem ersten Frame).
|
||||
|
||||
| Massnahme | Datei |
|
||||
|---|---|
|
||||
| Launch- und Normal-Theme dunkel (`#05070A`), Status-/Nav-Bar gleich | `res/values/styles.xml`, `values-night`, `values/colors.xml` |
|
||||
| Androids Splash-API ab 31: Markenfarbe, beschnitt-sicheres Icon, Icon-Platte in Icon-Navy | `res/values-v31/styles.xml`, `res/drawable-xxxhdpi/launch_logo{,_splash}.png` |
|
||||
| Pulsierendes Logo + Fortschrittslinie waehrend der Bootarbeit | `lib/src/ui/splash_screen.dart` |
|
||||
| Boot (Session, native Lib, Ad-SDK) erst **nach** dem ersten Frame, Splash mit Mindeststandzeit | `lib/main.dart` (`_bootstrap`) |
|
||||
| Logo-Mark aus dem Store-Icon freigestellt (Alpha-Ramp + Un-Premultiply, kein Navy-Saum) | `store/assets/logo_mark.png` → `app/assets/logo_mark.png` |
|
||||
|
||||
**Messung** (Redmi Note 10, API 31, Consent erteilt): Debug 3053 ms, Profile/AOT **2040 ms**,
|
||||
`iron_arc: ready after` 1740 / **1037 ms**. Neues Skript `tools/device/startup.sh`.
|
||||
|
||||
**Erkenntnisse**
|
||||
- Android 12 maskiert beim Splash-Icon alles ausserhalb der inneren 192 dp eines 288-dp-Bereichs →
|
||||
ein breites Wortmarken-Logo wird oben/unten abgeschnitten; Loesung ist eine 512×512-Vorlage mit
|
||||
Motiv auf 59 % Breite.
|
||||
- Die Icon-Platte ist ueber `windowSplashScreenIconBackgroundColor` steuerbar (mit Testfarbe Rot
|
||||
verifiziert), Groesse ~153 dp.
|
||||
- `am start -W` zaehlt den UMP-Dialog mit (7863 ms statt 3076 ms) → nur nach erteiltem Consent messen.
|
||||
- Dart initialisiert Top-Level-`final`s **lazy**: `final Stopwatch _bootWatch = Stopwatch()..start();`
|
||||
startete erst beim ersten Zugriff (Bootlog 0 ms). Jetzt Start in `main()`.
|
||||
- MIUI verweigert `adb install` von release-signierten APKs (`INSTALL_FAILED_USER_RESTRICTED`) →
|
||||
fuer Messungen `--profile` (AOT, debug-signiert).
|
||||
|
||||
## Nächste Schritte (aktualisiert)
|
||||
|
||||
1. `bundletool build-apks --connected-device` aus `~/exports/iron-arc-0.7.0.aab` → Install → Smoke.
|
||||
|
||||
Reference in New Issue
Block a user