wear: tile Galaxy Watch per aprire i cancelli (relay dal telefono) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/wear-tile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cosa fa
Nuovo APK Wear OS (
:wear) con una sola tile, Cancelli: un bottone per ogni cancelloshow_on_car(max 3), stato Aperto/Chiuso, tasto Aggiorna.L'orologio non ha token: ogni tap è una
LoadAction, la tile manda una richiesta Data Layer al telefono e il nuovoWearRelayServicein:appesegue la chiamata con il JWT dell'app. Serve il telefono in portata e loggato.Scelte non ovvie
:wear-protocol), così i due APK non divergonoTileStore.consumeClick): un cancello non si riapre se una tile request successiva ripete l'ultimo id cliccato:wearha lo stessoapplicationIde la stessa firma di:app(anche.debug): il Data Layer consegna solo tra APK gemelliandroid_wear_capabilitiescontools:keep: senza, lo shrinker della release lo toglieva (verificato con aapt2 sull'APK release)versionCodewatch da 1001: Play vuole codici unici su tutti gli APK del listing?car=trueC'è anche un commit separato con le impostazioni Gradle scritte da Android Studio (daemon JVM su JBR 21, foojay resolver, sync parallelo).
Verifiche
:appe:wearcompilano in debug e release (R8):wearsenza errori; lint:appcon i soli 3 errori preesistentiapplicationIdidentico tra telefono e orologio in entrambi i variantNon ancora provato su un orologio vero. Procedura e scenari di test in
android/WEAR.md.🤖 Generated with Claude Code
With a dead refresh token (expired, or a new jwt_secret on the bridge) the /auth/refresh call went through the same refreshInterceptor, got a 401 and tried to refresh again. Each level blocked an OkHttp thread in runBlocking on the next one; after five requests to the same host the dispatcher queued the sixth forever and the app hung on the splash ("Pronto.") instead of falling back to the login screen. Return a 401 from /auth/refresh untouched: the caller clears the tokens and the splash routes to login. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>