-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscandit-react-native-datacapture-parser.podspec
More file actions
46 lines (38 loc) · 1.66 KB
/
scandit-react-native-datacapture-parser.podspec
File metadata and controls
46 lines (38 loc) · 1.66 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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
version = package["version"]
Pod::Spec.new do |s|
s.name = package["name"]
s.version = version
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = { package["author"]["name"] => package["author"]["email"] }
s.platforms = { :ios => "15.0" }
s.source = { :git => package["homepage"] + ".git", :tag => "#{s.version}" }
s.swift_version = '5.0'
s.requires_arc = true
s.module_name = "ScanditDataCaptureParser"
s.header_dir = "ScanditDataCaptureParser"
s.dependency "scandit-react-native-datacapture-core", "= #{version}"
s.dependency "scandit-datacapture-frameworks-parser", '= 8.3.1'
is_new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
if is_new_arch_enabled
s.source_files = "ios/Sources/**/*.{h,m,mm,swift}", "ios/generated/**/*.{h,m,mm,cpp}"
s.private_header_files = "ios/generated/**/*.h"
s.exclude_files = "ios/Sources/OldArch/**/*"
s.dependency "React-RCTAppDelegate"
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-DRCT_NEW_ARCH_ENABLED',
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)/ios/generated"'
}
else
s.source_files = "ios/Sources/**/*.{h,m,mm,swift}"
s.exclude_files = "ios/Sources/NewArch/**/*"
end
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
end
end