@@ -2,8 +2,6 @@ require "json"
2
2
3
3
package = JSON . parse ( File . read ( File . join ( __dir__ , "package.json" ) ) )
4
4
5
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
6
-
7
5
Pod ::Spec . new do |s |
8
6
s . name = "react-native-document-picker"
9
7
s . version = package [ "version" ]
@@ -17,23 +15,11 @@ Pod::Spec.new do |s|
17
15
18
16
s . source_files = "ios/**/*.{h,m,mm}"
19
17
20
- s . dependency "React-Core"
21
-
22
18
s . frameworks = 'MobileCoreServices'
23
19
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'
37
24
end
38
-
39
25
end
0 commit comments