@@ -19,18 +19,23 @@ Pod::Spec.new do |s|
19
19
s . dependency "React-Core"
20
20
s . dependency "AmplifyUtilsNotifications"
21
21
22
- # Don't install the dependencies when we run `pod install` in the old architecture.
23
- if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
24
- s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
25
- s . pod_target_xcconfig = {
26
- "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
27
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
28
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
29
- }
30
- s . dependency "React-Codegen"
31
- s . dependency "RCT-Folly"
32
- s . dependency "RCTRequired"
33
- s . dependency "RCTTypeSafety"
34
- s . dependency "ReactCommon/turbomodule/core"
22
+ if respond_to? ( :install_modules_dependencies , true )
23
+ install_modules_dependencies ( s )
24
+ else
25
+ # Don't install the dependencies when we run `pod install` in the old architecture.
26
+ if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
27
+ s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
28
+ s . pod_target_xcconfig = {
29
+ "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
30
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
31
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
32
+ }
33
+ s . dependency "React-Codegen"
34
+ s . dependency "RCT-Folly"
35
+ s . dependency "RCTRequired"
36
+ s . dependency "RCTTypeSafety"
37
+ s . dependency "ReactCommon/turbomodule/core"
38
+ end
35
39
end
36
40
end
41
+
0 commit comments