When a submit fails for a transient reason (no connection, bad gateway,
server error, rate limit) the scrobble is saved to a Room table and a
network-constrained WorkManager job sends it later, in batches of 50,
oldest first. Plays too old for the server are dropped, and a rejected
session or unexpected error leaves the queue untouched. Safe to retry as
the server dedupes on (user, played_at, artist, track).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signer matches the server's md5 scheme (verified against vectors generated
by its Python implementation, including unicode). LastFmClient supports
auth.getMobileSession, track.scrobble (batched, indexed fields) and
track.updateNowPlaying, mapping server errors to LastFmException.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Kotlin + Compose via AGP built-in Kotlin, Material 3 theme mirroring the
web UI palette, bottom-nav shell with placeholder screens, cleartext
network config for self-hosted servers, and a CI workflow running unit
tests, lint and a debug build.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>