Add a phone app with Android Auto support

:mobile (it.panov.musyx) is a Material 3 phone app over the shared AppState: Home,
My Wave, search, collection, detail pages, Now Playing with queue and lyrics,
and sign-in through Yandex's page in the browser.

Its playback service is a MediaLibraryService, so Android Auto and Automotive
can browse My Wave and stations, Home picks and the collection, search, and
play by voice. Covers reach the car through a content provider limited to
Yandex hosts. Signed out, the car shows a Sign in button, and it reloads when
the session changes.

The session's playlist is now the current track and PlayerCore's next 50, so a
car's queue screen lists them and picking one jumps there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yuriy PanovandClaude Opus 5.5 committed 2026-10-23 12:19:27 +06:00
1 parent f004859395
commit 729b9b8aef
89 files changed
+5773 -15

No files matched your search

+14 -1
View File
@@ -51,7 +51,12 @@ runs the JVM tests (the queue and player rules, API parsing and request signing,
decryption and theme parity, mostly ported from the desktop tests), and `./gradlew lint` runs Android
Lint, with a report in each module's `build/reports/lint-results-debug.html`.
To run it, start an Android TV or Google TV emulator (Device Manager in Android Studio, TV
The phone app builds with `./gradlew :mobile:assembleDebug` and installs with
`./gradlew :mobile:installDebug`. To try it in Android Auto, run the Desktop Head Unit (SDK
Manager, SDK Tools, Android Auto Desktop Head Unit) against a phone with Android Auto, with
Auto's developer settings on and "Unknown sources" allowed, since the app isn't from Play.
To run the TV app, start an Android TV or Google TV emulator (Device Manager in Android Studio, TV
category) or connect a TV with ADB debugging on, then:
```bash
@@ -94,6 +99,14 @@ changing the sources:
- `player/PlaybackService.kt`: the media session.
- `ui/`: the shell (drawer, mini player, dialogs, toasts), `screens/` and `components/`.
The theme is `ui/theme/Theme.kt`, a 1:1 port of `DESIGN.md`.
- `mobile/`: the phone app (`it.panov.musyx`), under `mobile/src/main/java/it/panov/musyx/mobile`:
- `PlaybackService.kt`: a `MediaLibraryService`, so the notification, lock screen,
Bluetooth and Android Auto all reach the player.
- `Library.kt`: the browse tree Android Auto shows (My Wave and stations, Home picks, the
collection) and its search and voice requests.
- `ArtworkProvider.kt`: serves covers to Auto as `content://` URIs, Yandex hosts only.
- `ui/`: Material 3 screens over the shared `AppState`; `res/values/strings.xml` is
copied from the TV app by name, `strings_phone.xml` has the phone's own.
- `gradle/libs.versions.toml`: dependency versions.
- `DESIGN.md`: design tokens (colour, type, space, components), shared with the desktop app.
- `design/mockup.html`: the approved desktop mockup.