From fd2e396262a1ce662c4e33229dcc97dd40591a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Spa=CC=88th?= Date: Sat, 12 Aug 2023 12:18:47 +0200 Subject: [PATCH] fix: fix tvos available compile errors --- ios/Video/Features/RCTVideoUtils.swift | 1 + ios/Video/RCTVideoPlayerViewController.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/ios/Video/Features/RCTVideoUtils.swift b/ios/Video/Features/RCTVideoUtils.swift index 9916db37..c3c37647 100644 --- a/ios/Video/Features/RCTVideoUtils.swift +++ b/ios/Video/Features/RCTVideoUtils.swift @@ -5,6 +5,7 @@ import Photos /*! * Collection of pure functions */ +@available(tvOS 10.0, *) enum RCTVideoUtils { /*! diff --git a/ios/Video/RCTVideoPlayerViewController.swift b/ios/Video/RCTVideoPlayerViewController.swift index ee246500..8d4324b7 100644 --- a/ios/Video/RCTVideoPlayerViewController.swift +++ b/ios/Video/RCTVideoPlayerViewController.swift @@ -41,5 +41,6 @@ class RCTVideoPlayerViewController: AVPlayerViewController { return orientation } } + #endif }