@@ -2,8 +2,6 @@ require "json"
22
33package = 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-
75Pod ::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-
3925end
0 commit comments