tvos: Shared core for the iPhone and Apple TV apps #24

Merged
namillis merged 8 commits from feat/tvos-shared-core into main 2026-11-18 04:10:53 +00:00
Owner

Phase 1 of LiveWire for Apple TV: the shared core. Stacked on #23, which is merged; the base is now main.

What changed

  • Shared/: the pool client, providers, guide, playback, captions model, Sports logic, theme and fonts move here. Both the iPhone and Apple TV targets compile it. The caption views stay with the iPhone app (LiveWire/CaptionViews.swift).
  • ChannelLibrary (Shared/ChannelLibrary.swift): the data half of AppModel. It holds providers, the saved list then the network load, failover to the backup, pool_info features, favorites, the guide, now/next, playing and zapping. AppModel keeps the iPhone's tabs, lists, sheets and lock screen, follows the library through three hooks, and passes its data through, so no view changed. The Apple TV model now loads through the same library.
  • Ports from LiveWireTV (pure Swift, Foundation only, with the Kotlin unit tests):
    • Shared/Player/PlayerInput.swift (remote key routing, including archive and paused-live modes)
    • Shared/Guide/GuideTimeline.swift, CatchupGuide.swift
    • Shared/Search/SearchIndex.swift, SearchGrouping.swift, RecentHistoryStore.swift
    • Shared/Home/HomeRails.swift, PinnedCategoriesStore.swift

Intent / not a goal

The iPhone app must behave the same. This PR adds no TV UI and doesn't change any iPhone screen. A difference the ports surfaced is left for its own PR: the iPhone Watch screen and programme sheet offer catch-up for a programme still on air, which LiveWireTV and the iPhone Guide don't.

Checks

  • LiveWireTV builds; LiveWireTests 184/184 pass (68 before).
  • iPhone Simulator: this branch and main, launched with the same arguments, open the same Watch screen (Favorites, NBC 4 playing, same lists and guide).
  • Apple TV: NBC 4 and BBC One played through the shared library.

Screenshots: iPhone Watch on main and on this branch (to be attached).

Phase 1 of LiveWire for Apple TV: the shared core. Stacked on #23, which is merged; the base is now `main`. ## What changed - **`Shared/`:** the pool client, providers, guide, playback, captions model, Sports logic, theme and fonts move here. Both the iPhone and Apple TV targets compile it. The caption views stay with the iPhone app (`LiveWire/CaptionViews.swift`). - **`ChannelLibrary`** (`Shared/ChannelLibrary.swift`): the data half of `AppModel`. It holds providers, the saved list then the network load, failover to the backup, `pool_info` features, favorites, the guide, now/next, playing and zapping. `AppModel` keeps the iPhone's tabs, lists, sheets and lock screen, follows the library through three hooks, and passes its data through, so no view changed. The Apple TV model now loads through the same library. - **Ports from LiveWireTV** (pure Swift, Foundation only, with the Kotlin unit tests): - `Shared/Player/PlayerInput.swift` (remote key routing, including archive and paused-live modes) - `Shared/Guide/GuideTimeline.swift`, `CatchupGuide.swift` - `Shared/Search/SearchIndex.swift`, `SearchGrouping.swift`, `RecentHistoryStore.swift` - `Shared/Home/HomeRails.swift`, `PinnedCategoriesStore.swift` ## Intent / not a goal The iPhone app must behave the same. This PR adds no TV UI and doesn't change any iPhone screen. A difference the ports surfaced is left for its own PR: the iPhone Watch screen and programme sheet offer catch-up for a programme still on air, which LiveWireTV and the iPhone Guide don't. ## Checks - `LiveWireTV` builds; `LiveWireTests` 184/184 pass (68 before). - iPhone Simulator: this branch and `main`, launched with the same arguments, open the same Watch screen (Favorites, NBC 4 playing, same lists and guide). - Apple TV: NBC 4 and BBC One played through the shared library. Screenshots: iPhone Watch on `main` and on this branch (to be attached).
The pool client, providers, guide, playback, captions model, Sports logic, theme
and fonts move to Shared/, which the iPhone and Apple TV targets both compile.
The caption views stay with the iPhone app (CaptionViews.swift). No behavior change.
ChannelLibrary (Shared/) owns the providers, channel load and failover, pool_info
features, favorites, the guide, now/next and starting playback. AppModel keeps the
iPhone's tabs, lists, sheets and lock screen, follows the library through three
hooks, and passes its data through so the views are unchanged. The Apple TV spike
model now loads through the same library. ConnectError moves to Shared/.
namillis changed target branch from spike/tvos to main 2026-11-18 04:07:48 +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!24
No description provided.