docs(deploy): add a guide for Apple TV through NativeScript - #65
Merged
Merged
Conversation
tvOS gives third-party apps no browser and no WebView, so the hosted and bundled web app models the other deploy guides describe do not apply. SolidTV runs there through NativeScript and @solidtv/nativescript, and the demo app now does so from its own `src/`, unchanged. This writes that setup down: the project beside `src/`, each config file, the boot file, the Siri Remote key mapping, the Menu contract behind `Config.preventDefaultOnHandledKeys` and the one `onBack` rule an app needs for it, the lifecycle, simulator and device builds, console debugging and the limits (video, SVG, compressed textures). The page says which releases the setup waits on, after @solidtv/solid 1.6.3, @solidtv/renderer 1.9.3 and @solidtv/nativescript 0.1.1, and shows the sibling-checkout links the demo uses until then. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Deploying to Apple TV (tvOS) at
docs/deploy/appletv.md, linked under Build & Deploy in the sidebar next to Android TV.Why
tvOS gives third-party apps no browser and no WebView, so the hosted/bundled web app models in the Tizen, webOS and Android TV guides do not apply. SolidTV runs there through NativeScript and
@solidtv/nativescript, and the demo app now does so from its ownsrc/, unchanged (solid-demo-app#7). This writes that setup down, following the demo'snativescript/project.What the page covers
xcodeprojgem, theLC_ALLgotcha)src/, file by file:package.json,pnpm-workspace.yaml(hoisted linker, canvas overrides, thecanvas-svgstand-in),nativescript.config.ts,webpack.config.jswithchainSolidTV,tsconfig.json,App_Resourcesapp/app.tswithout its measurement codeConfig.preventDefaultOnHandledKeys:onBackmust returnfalseon the root screen so Menu can leave the app (the one change the demo'ssrc/needed)mirrorConsoleFor the reviewer
@solidtv/solid1.6.3 (Config.preventDefaultOnHandledKeys, merged in feat(focus): preventDefault for a consumed key, behind a config flag #64 but unreleased),@solidtv/renderer1.9.3 (setDefaultPlatform,Platform.resolveSettings) and@solidtv/nativescript0.1.1 (bindCanvas, the full shims,mirrorConsole). The page says so in a Version requirements note and shows thelink:sibling checkouts the demo uses. Once those ship, the note should go and thelink:entries become version pins.DEVELOPMENT_TEAMis a<YOUR_TEAM_ID>placeholder — the demo's xcconfig files carry a real team id, which is deliberately not copied here.MediaPlayPause(179), which is not in SolidTV's default key map; the page tells readers to map it.prettier --checkpasses on both files.🤖 Generated with Claude Code