26 lines
714 B
Ruby
26 lines
714 B
Ruby
require "json"
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = "react-native-document-picker"
|
|
s.version = package["version"]
|
|
s.summary = package["description"]
|
|
s.homepage = package["homepage"]
|
|
s.license = package["license"]
|
|
s.authors = package["author"]
|
|
|
|
s.platforms = { :ios => "11.0" }
|
|
s.source = { :git => "https://github.com/rnmods/react-native-document-picker.git", :tag => "v#{s.version}" }
|
|
|
|
s.source_files = "ios/**/*.{h,m,mm}"
|
|
|
|
s.frameworks = 'MobileCoreServices'
|
|
|
|
if defined? install_modules_dependencies
|
|
install_modules_dependencies(s)
|
|
else
|
|
s.dependency 'React-Core'
|
|
end
|
|
end
|