@@ -18,20 +18,25 @@ Pod::Spec.new do |s|
1818 s . xcconfig = { 'OTHER_LDFLAGS' => '-framework TalsecRuntime' }
1919 s . ios . vendored_frameworks = "ios/TalsecRuntime.xcframework"
2020
21- s . dependency "React-Core"
22-
23- # Don't install the dependencies when we run `pod install` in the old architecture.
24- if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
25- s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
26- s . pod_target_xcconfig = {
27- "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
28- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
29- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
30- }
31- s . dependency "React-Codegen"
32- s . dependency "RCT-Folly"
33- s . dependency "RCTRequired"
34- s . dependency "RCTTypeSafety"
35- s . dependency "ReactCommon/turbomodule/core"
21+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
23+ if respond_to? ( :install_modules_dependencies , true )
24+ install_modules_dependencies ( s )
25+ else
26+ s . dependency "React-Core"
27+ # Don't install the dependencies when we run `pod install` in the old architecture.
28+ if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
29+ s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
30+ s . pod_target_xcconfig = {
31+ "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
32+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
33+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
34+ }
35+ s . dependency "React-Codegen"
36+ s . dependency "RCT-Folly"
37+ s . dependency "RCTRequired"
38+ s . dependency "RCTTypeSafety"
39+ s . dependency "ReactCommon/turbomodule/core"
40+ end
3641 end
3742end
0 commit comments