kotlin-compose #2

Merged
joeri merged 17 commits from kotlin-compose into main 2026-11-11 17:37:40 +01:00
Owner
No description provided.
The plain-SDK build.sh becomes a thin wrapper around the Gradle release
build (still signed with the debug key, applicationId and targetSdk
unchanged, so adb install -r keeps pairings). The Android-free core moves
to a JVM module so the host tests keep running the shipped code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The host test programs build with Gradle against :core; the scripts run
them from installDist instead of compiling core sources with javac.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Byte-exact encoder and parser outputs, pairing and remote sessions over
loopback sockets, the keystore, the WebSocket layer, JSON, the time
filter and FLAC framing, with expected values taken from the Java core.
SendspinUnitTest's checks move into the same suite (with a committed
tone.flac fixture), so run_sendspin_tests.sh no longer needs flac/ffmpeg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run_remote_tests.sh now prints the server log when a check fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The core module is now all Kotlin (JVM 1.8 bytecode and APIs, as before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same output line for line (the Python scripts and run_sendspin_tests.sh
parse it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prefs, SendspinState (a StateFlow of the player status) and PairingState
replace the static fields and listener lists. The pairing notification
and dialog state now end with the pairing connection. The Java activities
keep compiling through temporary shims in SendspinService until the
Compose UI replaces them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three screens are Compose activities on androidx.tv.material3: a
settings list with live status, a now-playing screen and a pairing
dialog that follows the pairing connection and closes when it ends.
A dark M3 scheme, D-pad initial focus, and test tags exposed as resource
ids (device_e2e_test.py reads the pairing code that way). The accessibility
status now also recognises the short pkg/.Class form adb writes. A
checkTvImports task keeps compose.material3 widgets out of the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Stopping the remote service closes the open pairing connection, and no
  pairing code is shown after it stopped (the dialog could come back before).
- Now playing: the position never steps back to the last tick when a newer
  status arrives; only the progress recomposes, and only while playing;
  Play/Pause takes focus again after a disconnect and reconnect.
- The pairing dialog observes PairingState once; drop the unused intent extras.
- One byte concat in :core (was Pb, Der and Noise), one MAC lookup helper
  (each service keeps its own filter), SendspinAudio uses SendspinSession.nowUs.
- MainActivity reads settings through a booleanState helper.
- checkTvImports also catches fully qualified uses and wildcard imports, and
  ignores comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joeri merged commit 4254a6bd44 into main 2026-11-11 17:37:40 +01:00
joeri deleted branch kotlin-compose 2026-11-11 17:37:40 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hydrogen/tv-bridge!2
No description provided.