|
1 | 1 | require "json" |
2 | 2 |
|
3 | 3 | package = JSON.parse(File.read(File.join(__dir__, "package.json"))) |
4 | | -folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' |
5 | 4 |
|
6 | 5 | Pod::Spec.new do |s| |
7 | 6 | s.name = "<%- project.name -%>" |
@@ -30,29 +29,11 @@ Pod::Spec.new do |s| |
30 | 29 | add_nitrogen_files(s) |
31 | 30 | <% } -%> |
32 | 31 |
|
33 | | - # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0. |
34 | | - # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79. |
35 | | - if respond_to?(:install_modules_dependencies, true) |
36 | | - install_modules_dependencies(s) |
37 | | - else |
38 | | - s.dependency "React-Core" |
39 | | -
|
40 | | - # Don't install the dependencies when we run `pod install` in the old architecture. |
41 | | - if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then |
42 | | - s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" |
43 | | - s.pod_target_xcconfig = { |
44 | | - "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", |
45 | | - "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", |
46 | | - "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" |
47 | | - } |
48 | | -<% if (project.viewConfig !== null) { -%> |
49 | | - s.dependency "React-RCTFabric" |
50 | | -<% } -%> |
51 | | - s.dependency "React-Codegen" |
52 | | - s.dependency "RCT-Folly" |
53 | | - s.dependency "RCTRequired" |
54 | | - s.dependency "RCTTypeSafety" |
55 | | - s.dependency "ReactCommon/turbomodule/core" |
56 | | - end |
57 | | - end |
| 32 | +# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0. |
| 33 | +# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79. |
| 34 | +if respond_to?(:install_modules_dependencies, true) |
| 35 | + install_modules_dependencies(s) |
| 36 | +else |
| 37 | + s.dependency "React-Core" |
| 38 | +end |
58 | 39 | end |
0 commit comments