Skip to content

Commit a17076f

Browse files
authored
fix: use install_modules_dependencies for React iOS dependencies (#733)
1 parent ba9299e commit a17076f

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

react-native-document-picker.podspec

+4-18
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ require "json"
22

33
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
44

5-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
6-
75
Pod::Spec.new do |s|
86
s.name = "react-native-document-picker"
97
s.version = package["version"]
@@ -17,23 +15,11 @@ Pod::Spec.new do |s|
1715

1816
s.source_files = "ios/**/*.{h,m,mm}"
1917

20-
s.dependency "React-Core"
21-
2218
s.frameworks = 'MobileCoreServices'
2319

24-
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
25-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
26-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
27-
s.pod_target_xcconfig = {
28-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
29-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
30-
}
31-
32-
s.dependency "React-Codegen"
33-
s.dependency "RCT-Folly"
34-
s.dependency "RCTRequired"
35-
s.dependency "RCTTypeSafety"
36-
s.dependency "ReactCommon/turbomodule/core"
20+
if defined? install_modules_dependencies
21+
install_modules_dependencies(s)
22+
else
23+
s.dependency 'React-Core'
3724
end
38-
3925
end

0 commit comments

Comments
 (0)