react-native-code-push/CodePush.podspec

30 строки
1.0 KiB
Plaintext
Исходник Обычный вид История

2016-04-25 08:12:57 +03:00
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
2016-03-05 01:16:52 +03:00
s.name = 'CodePush'
2016-04-25 08:12:57 +03:00
s.version = package['version'].sub('-beta', '')
s.summary = 'React Native module for the CodePush service'
2016-03-05 01:16:52 +03:00
s.author = 'Microsoft Corporation'
s.license = 'MIT'
s.homepage = 'http://microsoft.github.io/code-push/'
2016-04-13 00:38:04 +03:00
s.source = { :git => 'https://github.com/Microsoft/react-native-code-push.git', :tag => "v#{s.version}-beta" }
2016-03-05 01:16:52 +03:00
s.platform = :ios, '7.0'
s.public_header_files = 'ios/CodePush/CodePush.h'
s.preserve_paths = '*.js'
s.library = 'z'
s.dependency 'React'
2016-05-24 03:58:25 +03:00
s.default_subspec = 'Full'
s.subspec 'Full' do |ss|
2016-06-05 22:21:35 +03:00
ss.source_files = 'ios/CodePush/*.{h,m}', 'ios/CodePush/SSZipArchive/*.{h,m}', 'ios/CodePush/SSZipArchive/aes/*.{h,c}', 'ios/CodePush/SSZipArchive/minizip/*.{h,c}'
2016-05-24 03:58:25 +03:00
end
s.subspec 'NoZip' do |ss|
2016-06-05 22:21:35 +03:00
ss.source_files = 'ios/CodePush/*.{h,m}'
2016-05-24 03:58:25 +03:00
end
2016-04-25 08:12:57 +03:00
end