Light/dark schemes from the logo palette (contrast checked), lime panel glow,
wordmark vector drawables on Home and Connect, brand typeface for headings.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adaptive, round, legacy and themed (monochrome) icons from ScrobbledDesign,
plus the Play Store icon and artwork licence under design/.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Roles we hadn't set fell back to Material's purple baseline, giving dark
purple text on pale-blue buttons, near-invisible field borders and a
now-playing panel that blended into the background. Both themes now define
every role from the web UI palette, checked at >= 4.5:1 for text and >= 3:1
for field borders. The amber panel is theme-aware with an edge, and the
"waiting to send" line no longer uses amber on the light page background.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Settings shows the account, signs out (confirming first when unsent
scrobbles would be discarded) and stores ACRCloud keys encrypted. Listen
uses ACRCloud once keys are saved and a clearly labelled demo recognizer
until then. When the server rejects the stored token the app returns to
sign-in with the server and username prefilled, then resends anything
queued. Unselected tab labels are now muted.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AcrCloudRecognizer calls the HTTP identify API (HMAC-SHA1 signed multipart
with a WAV-wrapped clip) and maps results, including MusicBrainz ids when
present and actionable errors for bad keys, limits and no match. Config is
stored encrypted via a shared KeystoreBox extracted from the credential
store (existing installs stay signed in).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Tap to listen (permission prompt on first use), progress while recording,
then an editable confirmation with Scrobble / Set as now playing / Listen
again. Shares the artist/track/album form with the Add screen and bundles
screen dependencies into AppServices. Recognition currently uses
FakeRecognizer until ACRCloud keys are available.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Records ~10s, hands the clip to the Recognizer and lands on an editable
confirmation. Scrobble uses the time listening started; "Set as now
playing" announces instead. Editing artist/track drops the recognised
MBID and duration. Cancel stops the microphone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AudioRecorder records 8 kHz mono PCM via AudioRecord; Recognizer is the
seam for a real service (ACRCloud) and FakeRecognizer stands in until
keys exist. ScrobbleRepository gains setNowPlaying (not queued, since it
is only meaningful briefly).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Home shows "N scrobbles waiting to send" from the live queue count.
Network failures reading history now say "Can't reach the server"
instead of surfacing raw exception text.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Search results pre-fill the manual form (artist, track, album, MBID and
duration) so they can be corrected before scrobbling. Editing the artist
or track drops the MBID/duration since they describe a specific recording.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Free-text queries become escaped Lucene (every word must match title,
artist or release), requests are spaced at 1/s with an app-identifying
User-Agent, and results are mapped to artist/track/album/duration/mbid
with same-song duplicates collapsed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Artist/track/album form with a "played" time chip (now to yesterday) that
submits through ScrobbleRepository. On success the form clears but keeps
the time choice, and History reloads when revisited so the new play shows.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
TrackDraft is the editable track shared by all add paths, validated
against the server's 14-day / 5-minute window. ScrobbleRepository submits
via track.scrobble with the stored session key, treating an "ignored"
result or an invalid session as errors.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Home shows a now-playing panel (polled every 15s while visible), summary
stats and the latest scrobbles. History is an infinite-scrolling,
pull-to-refresh list that dedupes rows when pages shift. Adds edge-to-edge
system bars, themed nav bar and a Sign out button.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ScrobblerApi gains /me/now-playing, /me/recent and /me/summary with
null-safe parsing; HistoryRepository reads with the stored bearer token
and maps a 401 to SessionExpiredException.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>