|
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'
|
|
23 | 24 |
|
24 | 25 | $START_TIME = Time.now.to_i
|
25 | 26 |
|
26 |
| -# This function returns the min iOS version supported by React Native |
27 |
| -# By using this function, you won't have to manualy change your Podfile |
| 27 | +# This function returns the min supported OS versions supported by React Native |
| 28 | +# By using this function, you won't have to manually change your Podfile |
28 | 29 | # when we change the minimum version supported by the framework.
|
29 | 30 | def min_ios_version_supported
|
30 |
| - return '12.4' |
| 31 | + return Helpers::Constants.min_ios_version_supported |
31 | 32 | end
|
32 | 33 |
|
33 | 34 | # This function prepares the project for React Native, before processing
|
@@ -224,11 +225,13 @@ def react_native_post_install(installer, react_native_path = "../node_modules/re
|
224 | 225 | ReactNativePodsUtils.fix_library_search_paths(installer)
|
225 | 226 | ReactNativePodsUtils.set_node_modules_user_settings(installer, react_native_path)
|
226 | 227 | ReactNativePodsUtils.apply_xcode_15_patch(installer)
|
| 228 | + ReactNativePodsUtils.updateIphoneOSDeploymentTarget(installer) |
227 | 229 |
|
228 | 230 | NewArchitectureHelper.set_clang_cxx_language_standard_if_needed(installer)
|
229 | 231 | is_new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == "1"
|
230 | 232 | NewArchitectureHelper.modify_flags_for_new_architecture(installer, is_new_arch_enabled)
|
231 | 233 |
|
| 234 | + |
232 | 235 | Pod::UI.puts "Pod install took #{Time.now.to_i - $START_TIME} [s] to run".green
|
233 | 236 | end
|
234 | 237 |
|
|
0 commit comments