forked from microsoft/react-native-code-push
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CodePush.podspec
40 lines (32 loc) · 1.37 KB
/
CodePush.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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'CodePush'
s.version = package['version'].gsub(/v|-beta/, '')
s.summary = package['description']
s.author = package['author']
s.license = package['license']
s.homepage = package['homepage']
s.source = { :git => 'https://github.com/Microsoft/react-native-code-push.git', :tag => "v#{s.version}-beta"}
s.ios.deployment_target = '7.0'
s.tvos.deployment_target = '9.0'
s.preserve_paths = '*.js'
s.library = 'z'
s.dependency 'React'
s.subspec 'Core' do |ss|
ss.source_files = 'ios/CodePush/*.{h,m}'
ss.public_header_files = ['ios/CodePush/CodePush.h']
end
s.subspec 'SSZipArchive' do |ss|
ss.source_files = 'ios/CodePush/SSZipArchive/*.{h,m}', 'ios/CodePush/SSZipArchive/aes/*.{h,c}', 'ios/CodePush/SSZipArchive/minizip/*.{h,c}'
ss.private_header_files = 'ios/CodePush/SSZipArchive/*.h', 'ios/CodePush/SSZipArchive/aes/*.h', 'ios/CodePush/SSZipArchive/minizip/*.h'
end
s.subspec 'JWT' do |jwt|
jwt.source_files = 'ios/CodePush/JWT/**/*.{h,m}'
jwt.private_header_files = 'ios/CodePush/JWT/**/*.h'
end
s.subspec 'Base64' do |base64|
base64.source_files = 'ios/CodePush/Base64/**/*.{h,m}'
base64.private_header_files = 'ios/CodePush/Base64/**/*.h'
end
end