-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathReactNativePdfRenderer.podspec
More file actions
28 lines (24 loc) · 870 Bytes
/
ReactNativePdfRenderer.podspec
File metadata and controls
28 lines (24 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'json'
packageJson = JSON.parse(File.read('package.json'))
version = packageJson["version"]
repository = packageJson["repository"]["url"]
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
Pod::Spec.new do |s|
s.name = "ReactNativePdfRenderer"
s.version = version
s.description = packageJson["description"]
s.homepage = packageJson["homepage"]
s.summary = packageJson["description"]
s.license = packageJson["license"]
s.authors = packageJson["author"]
s.source = { :git => repository, :tag => version }
s.platform = :ios, "11.0"
s.preserve_paths = 'README.md', 'package.json', '*.js'
s.source_files = 'ios/ReactNativePdfRendererLibrary/**/*.{h,m,mm,swift}'
s.frameworks = 'PDFKit'
if fabric_enabled
install_modules_dependencies(s)
else
s.dependency "React-Core"
end
end