File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -41,26 +41,11 @@ Pod::Spec.new do |s|
4141 CMD
4242 }
4343
44- # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
44+ # Use install_modules_dependencies helper to install the dependencies (requires React Native version >=0.71.0) .
4545 # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
4646 if respond_to? ( :install_modules_dependencies , true )
4747 install_modules_dependencies ( s )
4848 else
49- s . dependency "React-Core"
50- # Don't install the dependencies when we run `pod install` in the old architecture.
51- if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
52- # TODO: Re-visit these dependencies and flags and remove them if not needed.
53- s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
54- s . pod_target_xcconfig = {
55- "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
56- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
57- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
58- }
59- s . dependency "React-Codegen"
60- s . dependency "RCT-Folly"
61- s . dependency "RCTRequired"
62- s . dependency "RCTTypeSafety"
63- s . dependency "ReactCommon/turbomodule/core"
64- end
49+ raise "This version of React Native is too old for React Native Node-API."
6550 end
6651end
You can’t perform that action at this time.
0 commit comments