UNPKG

1.05 kBPlain TextView Raw
1require "json"
2
3package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
5Pod::Spec.new do |s|
6 s.name = 'react-native-video'
7 s.version = package['version']
8 s.summary = package['description']
9 s.description = package['description']
10 s.license = package['license']
11 s.author = package['author']
12 s.homepage = 'https://github.com/brentvatne/react-native-video'
13 s.source = { :git => "https://github.com/brentvatne/react-native-video.git", :tag => "#{s.version}" }
14
15 s.ios.deployment_target = "8.0"
16 s.tvos.deployment_target = "9.0"
17
18 s.subspec "Video" do |ss|
19 ss.source_files = "ios/Video/*.{h,m}"
20 s.static_framework = true
21 end
22
23 s.subspec "VideoCaching" do |ss|
24 ss.dependency "react-native-video/Video"
25 ss.dependency "SPTPersistentCache", "~> 1.1.0"
26 ss.dependency "DVAssetLoaderDelegate", "~> 0.3.1"
27
28 ss.source_files = "ios/VideoCaching/**/*.{h,m}"
29 s.static_framework = true
30 end
31
32 s.dependency "React"
33
34 s.default_subspec = "Video"
35end