Commit Graph
4 Commits
Author SHA1 Message Date
mattandClaude Sonnet 5.5 fa4eab47b3 Queue scrobbles offline and flush with WorkManager
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>
2026-10-12 11:53:24 +01:00
mattandClaude Sonnet 5.5 36399be147 Add connect flow: login, API app provisioning and secure storage
CI / test (push) Successful in 2m17s
DefaultAuthRepository logs in for a bearer token, finds or creates the
"Scrobbled Android" API app (reused on reconnect), then obtains a Last.fm
session key via auth.getMobileSession. Credentials are encrypted with an
Android Keystore AES-GCM key. Adds ScrobblerApi (/api/v1), a Connect
screen + ViewModel, and gates the main shell on stored credentials.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:10:32 +01:00
mattandClaude Sonnet 5.5 5200ebdb2d Add Last.fm API request signer and /2.0/ client
CI / test (push) Successful in 2m11s
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>
2026-10-12 11:05:18 +01:00
mattandClaude Sonnet 5.5 4716396f64 Set up Compose app shell, theme and Gitea CI
CI / test (push) Failing after 9s
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>
2026-10-12 10:59:08 +01:00