25 lines
905 B
Ruby
25 lines
905 B
Ruby
require 'json'
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = 'RNZipArchive'
|
|
s.version = package['version']
|
|
s.summary = package['description']
|
|
s.author = package['author']
|
|
s.license = package['license']
|
|
s.homepage = 'https://github.com/mockingbot/react-native-zip-archive'
|
|
s.source = { :git => 'https://github.com/mockingbot/react-native-zip-archive.git', :tag => "#{s.version}"}
|
|
s.platform = :ios, '9.0'
|
|
s.preserve_paths = '*.js'
|
|
|
|
s.dependency 'React-Core'
|
|
s.dependency 'SSZipArchive', '2.2.3'
|
|
s.compiler_flags = '-GCC_PREPROCESSOR_DEFINITIONS="HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB MZ_ZIP_NO_SIGNING $(inherited)"'
|
|
|
|
s.subspec 'Core' do |ss|
|
|
ss.source_files = 'ios/*.{h,m}'
|
|
ss.public_header_files = ['ios/RNZipArchive.h']
|
|
end
|
|
end
|