forked from jwplayer/jwplayer-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RNJWPlayer.podspec
44 lines (40 loc) · 1.69 KB
/
RNJWPlayer.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'RNJWPlayer'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.authors = package['author']
s.homepage = package['homepage']
s.platform = :ios, "14.0"
s.source = { :git => "https://github.com/jwplayer/jwplayer-react-native.git", :tag => "v#{s.version}" }
s.source_files = "ios/RNJWPlayer/*.{h,m,swift}"
s.dependency 'JWPlayerKit', '>= 4.19.0'
s.dependency 'React-Core'
s.static_framework = true
s.info_plist = {
'NSBluetoothAlwaysUsageDescription' => 'We will use your Bluetooth for media casting.',
'NSBluetoothPeripheralUsageDescription' => 'We will use your Bluetooth for media casting.',
'NSLocalNetworkUsageDescription' => 'We will use the local network to discover Cast-enabled devices on your WiFi network.',
'Privacy - Local Network Usage Description' => 'We will use the local network to discover Cast-enabled devices on your WiFi network.',
'NSMicrophoneUsageDescription' => 'We will use your Microphone for media casting.'
}
s.xcconfig = {
'OTHER_LDFLAGS': '-ObjC',
}
if defined?($RNJWPlayerUseGoogleCast)
Pod::UI.puts "RNJWPlayer: enable Google Cast"
s.dependency 'google-cast-sdk', '~> 4.8'
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '$(inherited) -D USE_GOOGLE_CAST'
}
end
if defined?($RNJWPlayerUseGoogleIMA)
Pod::UI.puts "RNJWPlayer: enable IMA SDK"
s.dependency 'GoogleAds-IMA-iOS-SDK', '~> 3.22'
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '$(inherited) -D USE_GOOGLE_IMA'
}
end
end