Set applicationId to win.tap_tap.audiomanager.client so the first upload
matches the existing Play Console app. The Kotlin namespace is unchanged;
relative manifest components are expanded against it, so no code moves.
- compileSdk/targetSdk 36: Google Play rejects new apps below API 36 since
31 August 2026.
- Release signing from ANDROID_KEYSTORE_* environment variables or
local.properties; unsigned when no upload key is configured.
- versionCode/versionName overridable via VERSION_CODE/VERSION_NAME.
- scripts/build-release-aab.sh builds and verifies a signed AAB.
- CI installs platform 36 until the CI image is rebuilt.
- Document the internal-testing upload flow.
Playback:
- Persist the playhead in the playback snapshot and resume from it; restored
longform progress is no longer overwritten with 0 on first play.
- Previous compares elapsed playtime since the track start, so resuming at
1:00:00 and pressing previous goes back instead of restarting the book.
- Auto-advance no longer overwrites completed=true with false, longform PUTs
are serialized, and playing rows/search results resume saved positions.
- Pause cancels the 400 ms poll; seek errors are reported instead of crashing.
Sync and state:
- First-sync snapshots keep the first page revision; cached revisions are only
trusted for the same server/user.
- Refresh re-reads /me, merges local and server longform progress by timestamp,
replays newer local positions, and keeps cached longform after deltas.
- Logout cancels refresh jobs, suppresses late progress writes, clears after
playback teardown, and closes the HTTP client on release.
- Failed/racing mood opens clear the previous mood; stale responses cannot
replace a newer selection. Mood drafts survive background refreshes.
Downloads and storage:
- Stream downloads to a .part file and atomically rename on Android/desktop,
with a download-specific timeout and no whole-file buffering.
- Cache writes are best-effort and atomic; blocked/full web storage no longer
leaves the app on the splash screen or blocks playback.
- Artwork failures do not fail audio downloads; failed downloads refresh the
download index.
- Android queues sleep-timer commands before the controller connects.
UI:
- Music search is wired, debounced and kept separate from mood search.
- Player bar respects navigation-bar insets and hides music-only mood actions
for longform. Mood gradient handles Int.MIN_VALUE.
Playback:
- Previous button: after two seconds it restarts the current track, otherwise
it restores the last played track and puts the outgoing one back in front of
the queue. History is persisted in the playback snapshot.
- The progress slider is draggable on every platform. Desktop previously
refused to seek; it now restarts the decoder at the requested position,
asking the server for a timeOffset on remote streams and skipping PCM frames
for local files.
Artwork:
- Client downloads store the 320px cover next to the MP3 and Android sets it as
MediaMetadata artwork data, so the notification and offline playback keep the
cover. Deleting a download removes the image too.
Moods:
- New mood setting and editor slider choose the seed share of each radio batch;
the server generates the rest from recommendations.
Library:
- Delta refresh now seeds its song map from both cached music and cached
longform. Longform used to disappear after the first delta, which is why the
artist list and artist playlists were empty while search still worked.
The player gains a queue sheet showing the current track and every upcoming
track, with move up/down and remove; changes are persisted in the playback
snapshot.
Music and longform are now separate: library sync splits songs by the user's
folder assignments, so longform no longer leaks into search, Shuffle all or
moods. The new Longform tab groups audiobooks and podcasts by artist, offers a
generated read-only playlist per artist, "Shuffle artist" for random tracks,
separate longform search, and a Continue listening list with progress bars and
resume. Positions are saved locally and to the server while playing, on pause
and on track changes.
Recommendation cards now show download progress (queued, downloading, failed
with error and retry) and the mood refreshes while downloads are running.
The mood screen now shows recommendation cards with thumbnails, a refresh
action, and accept/reject buttons. Accepting a library match adds it as a seed
immediately; other accepted tracks are marked as queued for download.
The player persists the session, queue and current track, restores them paused
on the next launch and starts the track on the next tap. While offline the
store retries the library sync with exponential backoff, downloads retry three
times before failing, and covers plus YT thumbnails are cached for the app's
lifetime.
Library screen: an "All music" card with Shuffle all, which builds a local
queue from every cached song so playback does not need a mood session.
Player bar: a sleep timer with 15/30/45/60/90 minute presets. The shared store
shows the countdown and pauses playback; on Android the pause is also scheduled
inside the media service through a custom session command, so it still fires
when the app is backgrounded or the task is swiped away.
Playback errors from the platform player now surface in the UI instead of
failing silently (for example when no audio device is available).
Tests cover shuffle-all, the empty library, timer expiry and cancelling it.
Move ExoPlayer out of the activity into a MediaSessionService so audio keeps
playing when the app is backgrounded, the screen is off, or the task is
swiped away. Media3 provides the media notification, lock-screen and headset
controls, audio focus and noisy-headphone handling.
The UI talks to the service through a MediaController-backed AudioPlayer and
sends title, artist, album and artwork metadata for the notification. Add the
Android 13 notification permission request, the media playback foreground
service permissions, and wake mode for network streaming.
The shell provides JDK 21, Gradle 8, Node 22, Android SDK 35 with
build-tools 35.0.0, and the libraries Compose Desktop and Java Sound need.
The Android license is accepted in the shell config; documented in the
README.
The production Wasm optimizer dominated the old run (about 10 of 13
minutes). Main/PR builds now produce the development Wasm bundle, while
the optimized bundle and desktop fat jar are built only for release tags.
Merge test and build into one job so a checkout and a Gradle run are not
repeated, and bake the Gradle dependency cache plus the Android SDK into
the CI image. Raise the version of the image to 2.
A shared Compose Multiplatform client for Android, desktop and web on the
native mood-first API.
- Bearer login with persisted, restorable sessions.
- Mood grid and full editor (create, settings, seeds, delete).
- Server-driven radio sessions with automatic started/completed/skipped
events and prefetching.
- Add to current mood or choose another mood from the player.
- Library search, original MP3 downloads, offline playback of downloads.
- Offline cache of moods, songs and the last sync revision.
- Platform audio: Media3 on Android, MP3SPI on desktop, HTML audio on web.
- Platform storage: filesystem on Android/desktop, localStorage on web.
- Desktop tests for API parsing, errors and cache persistence.
- Gitea CI image with Android SDK 35, build pipeline and tagged releases.