feat: add visionOS support (#3425)

* feat: add visionOS to target platforms

* disable unsupported API

* add temporary `promises` patches

* fix(visionOS): update promises patches

* apply code review suggestions

* format code
This commit is contained in:
Krzysztof Moch
2024-01-15 08:04:29 +01:00
committed by GitHub
parent 8f1bdb7c36
commit cf3ebb7f15
7 changed files with 108 additions and 42 deletions

View File

@@ -9,11 +9,10 @@ Pod::Spec.new do |s|
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = 'https://github.com/react-native-video/react-native-video'
s.source = { :git => "https://github.com/react-native-video/react-native-video.git", :tag => "v#{s.version}" }
s.ios.deployment_target = "9.0"
s.tvos.deployment_target = "10.0"
s.homepage = 'https://github.com/react-native-video/react-native-video'
s.source = { :git => "https://github.com/react-native-video/react-native-video.git", :tag => "v#{s.version}" }
s.platforms = { :ios => "9.0", :tvos => "10.0", :visionos => "1.0" }
s.subspec "Video" do |ss|
ss.source_files = "ios/Video/**/*.{h,m,swift}"