|
15 | 15 | require_relative './cocoapods/utils.rb' |
16 | 16 | require_relative './cocoapods/new_architecture.rb' |
17 | 17 | require_relative './cocoapods/local_podspec_patch.rb' |
| 18 | +require_relative './cocoapods/helpers.rb' |
18 | 19 |
|
19 | 20 | $CODEGEN_OUTPUT_DIR = 'build/generated/ios' |
20 | 21 | $CODEGEN_COMPONENT_DIR = 'react/renderer/components' |
21 | 22 | $CODEGEN_MODULE_DIR = '.' |
22 | 23 |
|
23 | 24 | $START_TIME = Time.now.to_i |
24 | 25 |
|
| 26 | +# This function returns the min supported OS versions supported by React Native |
| 27 | +# By using this function, you won't have to manually change your Podfile |
| 28 | +# when we change the minimum version supported by the framework. |
| 29 | +def min_ios_version_supported |
| 30 | + return Helpers::Constants.min_ios_version_supported |
| 31 | +end |
| 32 | + |
25 | 33 | # Function that setup all the react native dependencies |
26 | 34 | # |
27 | 35 | # Parameters |
@@ -163,11 +171,13 @@ def react_native_post_install(installer, react_native_path = "../node_modules/re |
163 | 171 | ReactNativePodsUtils.fix_react_bridging_header_search_paths(installer) |
164 | 172 | ReactNativePodsUtils.set_node_modules_user_settings(installer, react_native_path) |
165 | 173 | ReactNativePodsUtils.apply_xcode_15_patch(installer) |
| 174 | + ReactNativePodsUtils.updateIphoneOSDeploymentTarget(installer) |
166 | 175 |
|
167 | 176 | NewArchitectureHelper.set_clang_cxx_language_standard_if_needed(installer) |
168 | 177 | is_new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' |
169 | 178 | NewArchitectureHelper.modify_flags_for_new_architecture(installer, is_new_arch_enabled) |
170 | 179 |
|
| 180 | + |
171 | 181 | Pod::UI.puts "Pod install took #{Time.now.to_i - $START_TIME} [s] to run".green |
172 | 182 | end |
173 | 183 |
|
|
0 commit comments