Repository navigation
Expand file tree
/
Copy pathReactNativeInkSignPdf.podspec
More file actions
59 lines (54 loc) · 2.51 KB
/
Copy pathReactNativeInkSignPdf.podspec
File metadata and controls
59 lines (54 loc) · 2.51 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
require 'json'
require_relative 'tools/fetch-pdfium-apple'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
InkSignPdfAppleSdk.prepare(__dir__)
Pod::Spec.new do |s|
s.name = 'ReactNativeInkSignPdf'
s.version = package['version']
s.summary = package['description']
s.homepage = 'https://github.com/grego5/react-native-inksign-pdf'
s.license = { :type => 'MIT' }
s.author = { 'grego5' => 'maintainers@example.invalid' }
s.platforms = { :ios => '16.0' }
s.source = { :git => 'https://github.com/grego5/react-native-inksign-pdf.git', :tag => s.version.to_s }
s.source_files = [
'ios/*.{h,m,mm,swift}',
'core/pdfium-adapter/PdfiumDocumentSession.cpp',
'core/pdfium-adapter/PdfiumPageAssembler.cpp',
'core/pdfium-adapter/PdfiumPngImage.cpp',
'core/pdfium-adapter/PdfiumContentWriter.cpp',
'core/pdfium-adapter/PdfiumFontCoverage.cpp',
'core/pdfium-adapter/PdfiumFontFallback.cpp',
'core/pdfium-adapter/PdfiumFontProvider.cpp',
'core/pdfium-adapter/*.hpp'
]
s.vendored_frameworks = 'ios/build/pdfium/sdk/PDFium.xcframework'
s.preserve_paths = 'ios/build/pdfium/sdk/**/*'
s.private_header_files = 'core/pdfium-adapter/*.hpp'
# Nitrogen declares an explicit public-header list. Include the ObjC bridges
# there so CocoaPods' umbrella module exposes its value types to Swift.
s.public_header_files = ['ios/PdfiumBackend.h', 'ios/InkSignPdfAppLayout.h']
s.exclude_files = 'ios/tests/**/*'
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) "$(PODS_TARGET_SRCROOT)" "$(PODS_TARGET_SRCROOT)/core" "$(PODS_ROOT)/Headers/Private/Yoga"',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20',
'CLANG_CXX_LIBRARY' => 'libc++'
}
s.requires_arc = true
s.libraries = ['c++', 'z']
s.frameworks = ['UIKit', 'PencilKit', 'QuartzCore', 'CoreGraphics', 'CoreText', 'PDFKit', 'ImageIO', 'UniformTypeIdentifiers', 'PhotosUI']
s.dependency 'React-Core'
s.dependency 'React-Fabric/components/view'
s.dependency 'NitroModules'
load 'nitrogen/generated/ios/ReactNativeInkSignPdf+autolinking.rb'
add_nitrogen_files(s)
s.test_spec 'LifecycleTests' do |test_spec|
test_spec.source_files = 'ios/tests/**/*.{swift,mm,h}'
test_spec.frameworks = ['UIKit', 'PDFKit', 'PencilKit', 'XCTest', 'ImageIO']
# Tests import methods whose Nitro option types are backed by C++ enums.
test_spec.pod_target_xcconfig = {
'SWIFT_OBJC_INTEROP_MODE' => 'objcxx',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20'
}
end
end