2019-07-06 21:53:08 +08:00
|
|
|
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']
|
|
|
|
|
2019-12-06 15:24:49 +08:00
|
|
|
s.cocoapods_version = '>= 1.6.0'
|
2019-11-16 00:31:30 +08:00
|
|
|
s.platform = :ios, "8.0"
|
2019-07-06 21:53:08 +08:00
|
|
|
s.source = { :git => 'https://github.com/reactnativecn/react-native-pushy.git', :tag => '#{s.version}' }
|
|
|
|
s.libraries = 'bz2', 'z'
|
2019-11-16 00:31:30 +08:00
|
|
|
s.vendored_libraries = 'RCTPushy/libRCTPushy.a'
|
2019-07-06 21:53:08 +08:00
|
|
|
s.pod_target_xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"$(SRCROOT)/../node_modules/react-native-update/ios"' }
|
2019-10-06 22:20:57 +08:00
|
|
|
s.resource = 'ios/pushy_build_time.txt'
|
2020-04-14 22:58:53 +08:00
|
|
|
s.script_phase = { :name => 'Generate build time', :script => 'set -x;date +%s > ${PODS_ROOT}/../../node_modules/react-native-update/ios/pushy_build_time.txt', :execution_position => :before_compile }
|
2019-10-06 21:56:58 +08:00
|
|
|
|
2019-07-06 21:53:08 +08:00
|
|
|
s.dependency 'React'
|
2019-09-01 20:55:59 +08:00
|
|
|
s.dependency 'SSZipArchive'
|
2019-07-06 21:53:08 +08:00
|
|
|
|
2019-11-16 00:31:30 +08:00
|
|
|
s.subspec 'RCTPushy' do |ss|
|
|
|
|
ss.source_files = 'ios/RCTPushy/*.{h,m}'
|
|
|
|
ss.public_header_files = ['ios/RCTPushy/RCTPushy.h']
|
2019-07-06 21:53:08 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'BSDiff' do |ss|
|
2019-11-16 00:31:30 +08:00
|
|
|
ss.source_files = 'ios/RCTPushy/BSDiff/**/*.{h,m,c}'
|
|
|
|
ss.private_header_files = 'ios/RCTPushy/BSDiff/**/*.h'
|
2019-07-06 21:53:08 +08:00
|
|
|
end
|
2021-04-09 19:37:56 +08:00
|
|
|
|
|
|
|
s.subspec 'HDiffPatch' do |ss|
|
|
|
|
ss.source_files = 'ios/RCTPushy/HDiffPatch/**/*.{h,m,c}'
|
|
|
|
ss.private_header_files = 'ios/RCTPushy/HDiffPatch/**/*.h'
|
|
|
|
end
|
2019-07-06 21:53:08 +08:00
|
|
|
end
|