|
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 | | -new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' |
6 | 4 |
|
7 | 5 | Pod::Spec.new do |s| |
8 | 6 | s.name = "react-native-bottom-tabs" |
@@ -30,27 +28,5 @@ Pod::Spec.new do |s| |
30 | 28 | 'DEFINES_MODULE' => 'YES' |
31 | 29 | } |
32 | 30 |
|
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 new_arch_enabled 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 | | - s.dependency "React-RCTFabric" |
49 | | - s.dependency "React-Codegen" |
50 | | - s.dependency "RCT-Folly" |
51 | | - s.dependency "RCTRequired" |
52 | | - s.dependency "RCTTypeSafety" |
53 | | - s.dependency "ReactCommon/turbomodule/core" |
54 | | - end |
55 | | - end |
| 31 | + install_modules_dependencies(s) |
56 | 32 | end |
0 commit comments