tvos: TV shell, Setup, Settings and Providers #25

Merged
namillis merged 1 commit from feat/tvos-shell into main 2026-11-18 05:22:42 +00:00
Owner

Phase 2 of LiveWire for Apple TV: the app's frame and the screens you need before watching. You can add a provider on the TV, check it works, manage several with a backup, and change the Apple TV settings, all with the Siri Remote.

What changed

Part What it does
TV design system (LiveWireTV/TVTheme.swift) B · Grid tokens at Apple TV size (Android ×1.5). Focus is the light fill only: no lift, glow or scale.
Top bar and Back (TVRootView.swift) Home, Guide, Sports, Search, Settings and the clock. Back from content goes to the bar, then Home, then leaves the app; Providers' Back returns to Settings (Android's LiveWireNavShell rules). Home, Guide, Sports and Search are placeholders until phases 3–5.
Setup (TVSetupView.swift, mockup 12) First run, Add and Edit. Xtream or M3U. Pasting a get.php / player_api.php link into Server URL fills all three fields. Connect signs in, loads channels and the guide before saving.
Settings (TVSettingsView.swift, mockup 11) Stream format, Match frame rate (off by default), Guide window, Channel preview, and About with the signature expiry read from embedded.mobileprovision. Home warns when fewer than 2 days are left.
Providers (TVProvidersView.swift, option B) List on the left, the focused provider's details and actions on the right. Disabled actions say why. Delete asks first with focus on Cancel; Back cancels.
Shared ProviderDraft moves to Shared/ so both apps use one connect flow. XtreamLink is ported from LiveWireTV's parseXtreamLink with its tests. Every channel load saves the provider's channel count and expiry.
LiveWireTVUITests Drives the screens with the Siri Remote in the tvOS Simulator. The login comes from TEST_RUNNER_LW_LOGIN, never the repo.

Not a goal

Home, Guide, Sports, Search and the player UI (phases 3–5). "Manage favorites" and "Subtitles" join Settings with the player in phase 3. The iPhone app's behavior doesn't change.

Checks

  • tvOS Simulator UI tests, 5/5: Settings values and Back rules; Providers panel and Back; backup provider and the delete confirm; first run opens Setup; connecting with the appletv login through to Home.
  • iPhone: builds, LiveWireTests 191/191 pass (7 new for XtreamLink), and the Simulator opens Watch and plays NBC 4 in 1.8 s.
  • Not yet tried on the real Apple TV.

Screenshots (tvOS Simulator, 1920×1080)

Settings, Setup empty and filled, the connect check, Providers (active), Providers with a backup, and the delete confirm (to be attached).

Phase 2 of LiveWire for Apple TV: the app's frame and the screens you need before watching. You can add a provider on the TV, check it works, manage several with a backup, and change the Apple TV settings, all with the Siri Remote. ## What changed | Part | What it does | |---|---| | TV design system (`LiveWireTV/TVTheme.swift`) | B · Grid tokens at Apple TV size (Android ×1.5). Focus is the light fill only: no lift, glow or scale. | | Top bar and Back (`TVRootView.swift`) | Home, Guide, Sports, Search, Settings and the clock. Back from content goes to the bar, then Home, then leaves the app; Providers' Back returns to Settings (Android's `LiveWireNavShell` rules). Home, Guide, Sports and Search are placeholders until phases 3–5. | | Setup (`TVSetupView.swift`, mockup 12) | First run, Add and Edit. Xtream or M3U. Pasting a `get.php` / `player_api.php` link into Server URL fills all three fields. Connect signs in, loads channels and the guide before saving. | | Settings (`TVSettingsView.swift`, mockup 11) | Stream format, Match frame rate (off by default), Guide window, Channel preview, and About with the signature expiry read from `embedded.mobileprovision`. Home warns when fewer than 2 days are left. | | Providers (`TVProvidersView.swift`, option B) | List on the left, the focused provider's details and actions on the right. Disabled actions say why. Delete asks first with focus on Cancel; Back cancels. | | Shared | `ProviderDraft` moves to `Shared/` so both apps use one connect flow. `XtreamLink` is ported from LiveWireTV's `parseXtreamLink` with its tests. Every channel load saves the provider's channel count and expiry. | | `LiveWireTVUITests` | Drives the screens with the Siri Remote in the tvOS Simulator. The login comes from `TEST_RUNNER_LW_LOGIN`, never the repo. | ## Not a goal Home, Guide, Sports, Search and the player UI (phases 3–5). "Manage favorites" and "Subtitles" join Settings with the player in phase 3. The iPhone app's behavior doesn't change. ## Checks - tvOS Simulator UI tests, 5/5: Settings values and Back rules; Providers panel and Back; backup provider and the delete confirm; first run opens Setup; connecting with the `appletv` login through to Home. - iPhone: builds, `LiveWireTests` 191/191 pass (7 new for `XtreamLink`), and the Simulator opens Watch and plays NBC 4 in 1.8 s. - Not yet tried on the real Apple TV. ## Screenshots (tvOS Simulator, 1920×1080) Settings, Setup empty and filled, the connect check, Providers (active), Providers with a backup, and the delete confirm (to be attached).
- TV design system: the B · Grid tokens at Apple TV size, focus as a light fill with
  no lift (TVFillButtonStyle), overlines, tags, keycap hints.
- Top bar with the Android TV Back rules: content -> bar -> Home -> exit; Providers
  pops to Settings.
- Setup (mockup 12): Xtream / M3U form, paste a get.php or player_api.php link to
  fill all three fields, then the connect check before saving. First run, Add, Edit.
- Settings (mockup 11): stream format, Match frame rate (off by default), guide
  window, channel preview, About with the signature expiry from
  embedded.mobileprovision (and a Home warning under 2 days).
- Providers (option B): list plus details panel with Make active, backup, Edit and
  Delete (asks first, focus on Cancel).
- Shared: ProviderDraft moves to Shared/, XtreamLink ported from LiveWireTV with its
  tests, and every load saves the provider's channel count and expiry.
- LiveWireTVUITests drives the screens with the Siri Remote; the login comes from
  TEST_RUNNER_LW_LOGIN, never the repo.
namillis deleted branch feat/tvos-shell 2026-11-18 05:22:42 +00: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
namillis/LiveWireiOS!25
No description provided.