tvos: Shared core for the iPhone and Apple TV apps #24
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/tvos-shared-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 ofAppModel. It holds providers, the saved list then the network load, failover to the backup,pool_infofeatures, favorites, the guide, now/next, playing and zapping.AppModelkeeps 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.Shared/Player/PlayerInput.swift(remote key routing, including archive and paused-live modes)Shared/Guide/GuideTimeline.swift,CatchupGuide.swiftShared/Search/SearchIndex.swift,SearchGrouping.swift,RecentHistoryStore.swiftShared/Home/HomeRails.swift,PinnedCategoriesStore.swiftIntent / 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
LiveWireTVbuilds;LiveWireTests184/184 pass (68 before).main, launched with the same arguments, open the same Watch screen (Favorites, NBC 4 playing, same lists and guide).Screenshots: iPhone Watch on
mainand on this branch (to be attached).