Commit Graph
5 Commits
Author SHA1 Message Date
TapTap c7c1d59b70 feat: shuffle the whole library and add a sleep timer
CI / build (push) Failing after 20m30s
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.
2026-11-15 08:09:02 +00:00
TapTap b8bbf8d07c feat(android): play in a foreground MediaSessionService
CI / build (push) Failing after 2m28s
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.
2026-11-14 21:52:03 +00:00
TapTap 9cdbb3702e chore: add a nix shell for the multiplatform client
CI / build (push) Successful in 1m29s
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.
2026-11-14 21:33:45 +00:00
TapTap 7fb41b5ad4 ci: cut the pipeline from 13 minutes to a single fast build
CI / build (push) Successful in 1m53s
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.
2026-11-14 19:51:11 +00:00
TapTap 3281e46104 feat: add the Kotlin Multiplatform AudioManager client
CI / test (push) Successful in 2m0s
CI / build (push) Successful in 13m27s
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.
2026-11-14 18:24:06 +00:00