From b5e273deef75af1af0c7fd1bee1d15dc5f0cc9ef Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Sat, 6 Jul 2019 21:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0podspec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-native-update.podspec | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 react-native-update.podspec diff --git a/react-native-update.podspec b/react-native-update.podspec new file mode 100644 index 0000000..dba8c02 --- /dev/null +++ b/react-native-update.podspec @@ -0,0 +1,36 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = package['name'] + s.version = package['version'] + s.summary = package['description'] + s.license = package['license'] + + s.authors = package['author'] + s.homepage = package['homepage'] + + s.platform = :ios, "7.0" + s.source = { :git => 'https://github.com/reactnativecn/react-native-pushy.git', :tag => '#{s.version}' } + s.libraries = 'bz2', 'z' + s.vendored_libraries = 'RCTHotUpdate/libRCTHotUpdate.a' + s.pod_target_xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"$(SRCROOT)/../node_modules/react-native-update/ios"' } + + s.dependency 'React' + + s.subspec 'RCTHotUpdate' do |ss| + ss.source_files = 'ios/RCTHotUpdate/*.{h,m}' + ss.public_header_files = ['ios/RCTHotUpdate/RCTHotUpdate.h'] + end + + s.subspec 'SSZipArchive' do |ss| + ss.source_files = 'ios/RCTHotUpdate/SSZipArchive/**/*.{h,m,c}' + ss.private_header_files = 'ios/RCTHotUpdate/SSZipArchive/**/*.h' + end + + s.subspec 'BSDiff' do |ss| + ss.source_files = 'ios/RCTHotUpdate/BSDiff/**/*.{h,m,c}' + ss.private_header_files = 'ios/RCTHotUpdate/BSDiff/**/*.h' + end +end