feat: add AndroidTV and tvOS target support

Merged
TH
9mo ago
+752-119

Summary

Add AndroidTV/tvOS target support and enable tvOS runner-driven automation flows while reusing existing platform backends.

  • Add --target mobile|tv selection through device/session selectors and docs.
  • Add --platform apple alias that maps to the iOS/tvOS backend.
  • Remove tvOS capability hard block so tvOS follows the iOS command matrix by device kind.
  • Update iOS runner destination/build resolution to pick iOS vs tvOS based on selected target.
  • Update runner XCTest behavior for tvOS navigation semantics:
    • back -> menu remote action fallback
    • home -> home remote action
    • app-switcher -> double-home remote action
    • directional swipe -> remote directional presses
  • Make runner Xcode project multi-platform (iOS + tvOS) so tvOS destinations are valid.
  • Keep AndroidTV launch/listing behavior category-aware (LEANBACK_LAUNCHER).
  • Update README, website docs, and skills/agent-device with tvOS runner support details and the apple alias.

Validation

  • pnpm typecheck
  • pnpm test:unit
  • pnpm test:smoke
  • pnpm build:xcuitest
  • pnpm test:integration (fails in current environment on existing Android settings snapshot label assertion mismatch)
  • xcodebuild build-for-testing ... -destination "generic/platform=tvOS Simulator" (blocked in this environment: tvOS Simulator runtime not installed)