-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathreact-native-multiple-modals.podspec
More file actions
38 lines (29 loc) · 1.24 KB
/
react-native-multiple-modals.podspec
File metadata and controls
38 lines (29 loc) · 1.24 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
require "json"
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-multiple-modals"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => min_ios_version_supported }
s.source = { :git => ".git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm}"
s.exclude_files = "ios/Fabric"
s.dependency "React-Core"
if fabric_enabled
install_modules_dependencies(s)
s.subspec "common" do |ss|
ss.source_files = "common/cpp/react/renderer/components/multiplemodals/*.{cpp,h,mm}"
ss.header_dir = "react/renderer/components/multiplemodals"
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/common/cpp\"" }
end
s.subspec "fabric" do |ss|
ss.dependency "react-native-multiple-modals/common"
ss.source_files = "ios/Fabric/**/*.{h,m,mm}"
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/common/cpp\"" }
end
end
end