From 557c54da7520aa61806d73e45688539764f673f0 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Wed, 6 Sep 2023 04:43:28 -0700 Subject: [PATCH] [Cocoapods] min_ios_version_supported -> min_supported_versions --- .../ActionSheetIOS/React-RCTActionSheet.podspec | 2 +- .../AppDelegate/React-RCTAppDelegate.podspec | 2 +- .../react-native/Libraries/Blob/React-RCTBlob.podspec | 2 +- .../Libraries/FBLazyVector/FBLazyVector.podspec | 2 +- .../Libraries/Image/React-RCTImage.podspec | 2 +- .../Libraries/LinkingIOS/React-RCTLinking.podspec | 2 +- .../NativeAnimation/React-RCTAnimation.podspec | 2 +- .../Libraries/Network/React-RCTNetwork.podspec | 2 +- .../React-RCTPushNotification.podspec | 2 +- .../Libraries/RCTRequired/RCTRequired.podspec | 2 +- .../Libraries/Settings/React-RCTSettings.podspec | 2 +- .../react-native/Libraries/Text/React-RCTText.podspec | 2 +- .../Libraries/TypeSafety/RCTTypeSafety.podspec | 2 +- .../Libraries/Vibration/React-RCTVibration.podspec | 2 +- packages/react-native/React-Core.podspec | 2 +- packages/react-native/React.podspec | 2 +- .../React/CoreModules/React-CoreModules.podspec | 2 +- .../React/FBReactNativeSpec/FBReactNativeSpec.podspec | 2 +- packages/react-native/React/React-RCTFabric.podspec | 2 +- .../react-native/ReactCommon/React-Fabric.podspec | 2 +- .../ReactCommon/React-FabricImage.podspec | 2 +- .../react-native/ReactCommon/React-Mapbuffer.podspec | 2 +- .../ReactCommon/React-nativeconfig.podspec | 2 +- .../react-native/ReactCommon/React-rncore.podspec | 2 +- packages/react-native/ReactCommon/ReactCommon.podspec | 2 +- .../ReactCommon/callinvoker/React-callinvoker.podspec | 2 +- .../ReactCommon/cxxreact/React-cxxreact.podspec | 2 +- .../ReactCommon/hermes/React-hermes.podspec | 2 +- .../hermes/executor/React-jsitracing.podspec | 2 +- .../react-native/ReactCommon/jsc/React-jsc.podspec | 2 +- .../jserrorhandler/React-jserrorhandler.podspec | 2 +- .../react-native/ReactCommon/jsi/React-jsi.podspec | 2 +- .../ReactCommon/jsiexecutor/React-jsiexecutor.podspec | 2 +- .../jsinspector-modern/React-jsinspector.podspec | 2 +- .../ReactCommon/logger/React-logger.podspec | 2 +- .../ReactCommon/react/debug/React-debug.podspec | 2 +- .../platform/ios/React-NativeModulesApple.podspec | 2 +- .../nativemodule/samples/ReactCommon-Samples.podspec | 2 +- .../react/renderer/debug/React-rendererdebug.podspec | 2 +- .../react/renderer/graphics/React-graphics.podspec | 2 +- .../platform/ios/React-ImageManager.podspec | 2 +- .../runtimescheduler/React-runtimescheduler.podspec | 2 +- .../react/runtime/React-RuntimeCore.podspec | 2 +- .../react/runtime/React-RuntimeHermes.podspec | 2 +- .../runtime/platform/ios/React-RuntimeApple.podspec | 2 +- .../ReactCommon/react/utils/React-utils.podspec | 2 +- .../reactperflogger/React-perflogger.podspec | 2 +- .../runtimeexecutor/React-runtimeexecutor.podspec | 2 +- packages/react-native/ReactCommon/yoga/Yoga.podspec | 2 +- .../scripts/cocoapods/__tests__/codegen_utils-test.rb | 6 +++++- .../react-native/scripts/cocoapods/codegen_utils.rb | 4 +--- packages/react-native/scripts/react_native_pods.rb | 11 ++++++++--- .../third-party-podspecs/DoubleConversion.podspec | 2 +- .../third-party-podspecs/RCT-Folly.podspec | 2 +- .../react-native/third-party-podspecs/boost.podspec | 2 +- .../react-native/third-party-podspecs/glog.podspec | 2 +- .../NativeComponentExample/MyNativeView.podspec | 2 +- .../NativeCxxModuleExample.podspec | 2 +- .../NativeModuleExample/ScreenshotManager.podspec | 2 +- packages/rn-tester/Podfile.lock | 2 +- packages/rn-tester/RCTTest/React-RCTTest.podspec | 2 +- 61 files changed, 72 insertions(+), 65 deletions(-) diff --git a/packages/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec b/packages/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec index ab5194b12fdba8..1de8a15ed9f000 100644 --- a/packages/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +++ b/packages/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec @@ -24,7 +24,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/docs/actionsheetios" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "*.{m}" s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs" diff --git a/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec b/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec index 21d6bb35a3b263..90a39a1370c40c 100644 --- a/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +++ b/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec @@ -66,7 +66,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{c,h,m,mm,S,cpp}" diff --git a/packages/react-native/Libraries/Blob/React-RCTBlob.podspec b/packages/react-native/Libraries/Blob/React-RCTBlob.podspec index c2a74ae8d1bb4d..1c8fe558490dce 100644 --- a/packages/react-native/Libraries/Blob/React-RCTBlob.podspec +++ b/packages/react-native/Libraries/Blob/React-RCTBlob.podspec @@ -39,7 +39,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "*.{h,m,mm}" diff --git a/packages/react-native/Libraries/FBLazyVector/FBLazyVector.podspec b/packages/react-native/Libraries/FBLazyVector/FBLazyVector.podspec index a67c495bfb207b..009ae434d9ea06 100644 --- a/packages/react-native/Libraries/FBLazyVector/FBLazyVector.podspec +++ b/packages/react-native/Libraries/FBLazyVector/FBLazyVector.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{c,h,m,mm,cpp}" s.header_dir = "FBLazyVector" diff --git a/packages/react-native/Libraries/Image/React-RCTImage.podspec b/packages/react-native/Libraries/Image/React-RCTImage.podspec index e53162bee2e5b6..2d2850d17a959a 100644 --- a/packages/react-native/Libraries/Image/React-RCTImage.podspec +++ b/packages/react-native/Libraries/Image/React-RCTImage.podspec @@ -40,7 +40,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/docs/image" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "*.{m,mm}" diff --git a/packages/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec b/packages/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec index 360a3e296ae4bd..534962b6f10e00 100644 --- a/packages/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec +++ b/packages/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec @@ -43,7 +43,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/docs/linking" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "*.{m,mm}" diff --git a/packages/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec b/packages/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec index c2aefd247e0bbb..afd7715b0e97b2 100644 --- a/packages/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec +++ b/packages/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec @@ -39,7 +39,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "**/*.{h,m,mm}" diff --git a/packages/react-native/Libraries/Network/React-RCTNetwork.podspec b/packages/react-native/Libraries/Network/React-RCTNetwork.podspec index 865dc41299094d..9b0f8a9e85e3c8 100644 --- a/packages/react-native/Libraries/Network/React-RCTNetwork.podspec +++ b/packages/react-native/Libraries/Network/React-RCTNetwork.podspec @@ -43,7 +43,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "*.{m,mm}" diff --git a/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec b/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec index 60a698a0d38403..cdbdaa50ab8b60 100644 --- a/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +++ b/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec @@ -40,7 +40,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/docs/pushnotificationios" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "*.{m,mm}" diff --git a/packages/react-native/Libraries/RCTRequired/RCTRequired.podspec b/packages/react-native/Libraries/RCTRequired/RCTRequired.podspec index 16d9093cad6926..0d7cf299faf12a 100644 --- a/packages/react-native/Libraries/RCTRequired/RCTRequired.podspec +++ b/packages/react-native/Libraries/RCTRequired/RCTRequired.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{c,h,m,mm,cpp}" s.header_dir = "RCTRequired" diff --git a/packages/react-native/Libraries/Settings/React-RCTSettings.podspec b/packages/react-native/Libraries/Settings/React-RCTSettings.podspec index 9fa55fded754fc..482595894c33be 100644 --- a/packages/react-native/Libraries/Settings/React-RCTSettings.podspec +++ b/packages/react-native/Libraries/Settings/React-RCTSettings.podspec @@ -43,7 +43,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/docs/settings" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "*.{m,mm}" diff --git a/packages/react-native/Libraries/Text/React-RCTText.podspec b/packages/react-native/Libraries/Text/React-RCTText.podspec index 3777e5d9603f28..0ebd0378dbbd00 100644 --- a/packages/react-native/Libraries/Text/React-RCTText.podspec +++ b/packages/react-native/Libraries/Text/React-RCTText.podspec @@ -24,7 +24,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/docs/text" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{h,m,mm}" s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs" diff --git a/packages/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec b/packages/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec index 71829f0cb726d9..2e37af9e55a251 100644 --- a/packages/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec +++ b/packages/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{c,h,m,mm,cpp}" s.header_dir = "RCTTypeSafety" diff --git a/packages/react-native/Libraries/Vibration/React-RCTVibration.podspec b/packages/react-native/Libraries/Vibration/React-RCTVibration.podspec index 616611ea137591..d8eb8e49d3bb26 100644 --- a/packages/react-native/Libraries/Vibration/React-RCTVibration.podspec +++ b/packages/react-native/Libraries/Vibration/React-RCTVibration.podspec @@ -42,7 +42,7 @@ Pod::Spec.new do |s| s.documentation_url = "https://reactnative.dev/docs/vibration" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "*.{m,mm}" diff --git a/packages/react-native/React-Core.podspec b/packages/react-native/React-Core.podspec index 115aa4e9aab95e..69dd16f74108d7 100644 --- a/packages/react-native/React-Core.podspec +++ b/packages/react-native/React-Core.podspec @@ -67,7 +67,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.resource_bundle = { "RCTI18nStrings" => ["React/I18n/strings/*.lproj"]} s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags diff --git a/packages/react-native/React.podspec b/packages/react-native/React.podspec index c47a13517e0a26..59b9f8319ae306 100644 --- a/packages/react-native/React.podspec +++ b/packages/react-native/React.podspec @@ -36,7 +36,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs" s.cocoapods_version = ">= 1.10.1" diff --git a/packages/react-native/React/CoreModules/React-CoreModules.podspec b/packages/react-native/React/CoreModules/React-CoreModules.podspec index 313947f5c6598f..caea51b5fbf160 100644 --- a/packages/react-native/React/CoreModules/React-CoreModules.podspec +++ b/packages/react-native/React/CoreModules/React-CoreModules.podspec @@ -39,7 +39,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "**/*.{c,m,mm,cpp}" diff --git a/packages/react-native/React/FBReactNativeSpec/FBReactNativeSpec.podspec b/packages/react-native/React/FBReactNativeSpec/FBReactNativeSpec.podspec index bca80d92e0807a..0c65665cf5a685 100644 --- a/packages/react-native/React/FBReactNativeSpec/FBReactNativeSpec.podspec +++ b/packages/react-native/React/FBReactNativeSpec/FBReactNativeSpec.podspec @@ -29,7 +29,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source # This podspec is used to trigger the codegen, and built files are generated in a different location. diff --git a/packages/react-native/React/React-RCTFabric.podspec b/packages/react-native/React/React-RCTFabric.podspec index d8d1401001ad7e..62eb2cd801afa9 100644 --- a/packages/react-native/React/React-RCTFabric.podspec +++ b/packages/react-native/React/React-RCTFabric.podspec @@ -57,7 +57,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "Fabric/**/*.{c,h,m,mm,S,cpp}" s.exclude_files = "**/tests/*", diff --git a/packages/react-native/ReactCommon/React-Fabric.podspec b/packages/react-native/ReactCommon/React-Fabric.podspec index cda7185c90d659..c8413048921eb3 100644 --- a/packages/react-native/ReactCommon/React-Fabric.podspec +++ b/packages/react-native/ReactCommon/React-Fabric.podspec @@ -29,7 +29,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "dummyFile.cpp" s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES", diff --git a/packages/react-native/ReactCommon/React-FabricImage.podspec b/packages/react-native/ReactCommon/React-FabricImage.podspec index 853fea35aac22f..107c0dff95d1c4 100644 --- a/packages/react-native/ReactCommon/React-FabricImage.podspec +++ b/packages/react-native/ReactCommon/React-FabricImage.podspec @@ -51,7 +51,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "react/renderer/components/image/**/*.{m,mm,cpp,h}" s.exclude_files = "react/renderer/components/image/tests" diff --git a/packages/react-native/ReactCommon/React-Mapbuffer.podspec b/packages/react-native/ReactCommon/React-Mapbuffer.podspec index 2fdcd9ff7c3f7c..1b26f10a5315a5 100644 --- a/packages/react-native/ReactCommon/React-Mapbuffer.podspec +++ b/packages/react-native/ReactCommon/React-Mapbuffer.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "react/renderer/mapbuffer/*.{cpp,h}" s.exclude_files = "react/renderer/mapbuffer/tests" diff --git a/packages/react-native/ReactCommon/React-nativeconfig.podspec b/packages/react-native/ReactCommon/React-nativeconfig.podspec index d1dd415727bc28..7da462332642cd 100644 --- a/packages/react-native/ReactCommon/React-nativeconfig.podspec +++ b/packages/react-native/ReactCommon/React-nativeconfig.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "react/config/*.{m,mm,cpp,h}" s.header_dir = "react/config" diff --git a/packages/react-native/ReactCommon/React-rncore.podspec b/packages/react-native/ReactCommon/React-rncore.podspec index 5465ed61a953e7..c44a50ade669a5 100644 --- a/packages/react-native/ReactCommon/React-rncore.podspec +++ b/packages/react-native/ReactCommon/React-rncore.podspec @@ -44,7 +44,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "dummyFile.cpp" s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES", diff --git a/packages/react-native/ReactCommon/ReactCommon.podspec b/packages/react-native/ReactCommon/ReactCommon.podspec index 448907b3b8f26e..47699fd76ec110 100644 --- a/packages/react-native/ReactCommon/ReactCommon.podspec +++ b/packages/react-native/ReactCommon/ReactCommon.podspec @@ -28,7 +28,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.header_dir = "ReactCommon" # Use global header_dir for all subspecs for use_frameworks! compatibility s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags diff --git a/packages/react-native/ReactCommon/callinvoker/React-callinvoker.podspec b/packages/react-native/ReactCommon/callinvoker/React-callinvoker.podspec index 10ec16dbad37b9..347ab4cc4ac501 100644 --- a/packages/react-native/ReactCommon/callinvoker/React-callinvoker.podspec +++ b/packages/react-native/ReactCommon/callinvoker/React-callinvoker.podspec @@ -27,7 +27,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{cpp,h}" s.header_dir = "ReactCommon" diff --git a/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec b/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec index 3c4d71a89e6abf..ef4639586cd85a 100644 --- a/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +++ b/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec @@ -28,7 +28,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "*.{cpp,h}" s.exclude_files = "SampleCxxModule.*" diff --git a/packages/react-native/ReactCommon/hermes/React-hermes.podspec b/packages/react-native/ReactCommon/hermes/React-hermes.podspec index cc6e6c46743dec..2d400eaa0f766d 100644 --- a/packages/react-native/ReactCommon/hermes/React-hermes.podspec +++ b/packages/react-native/ReactCommon/hermes/React-hermes.podspec @@ -28,7 +28,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package['license'] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :osx => "10.14", :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "executor/*.{cpp,h}", "inspector-modern/*.{cpp,h}", diff --git a/packages/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec b/packages/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec index bdd89b17cf137c..0fa6b72212e7f2 100644 --- a/packages/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec +++ b/packages/react-native/ReactCommon/hermes/executor/React-jsitracing.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "JSITracing.{cpp,h}" s.header_dir = "." diff --git a/packages/react-native/ReactCommon/jsc/React-jsc.podspec b/packages/react-native/ReactCommon/jsc/React-jsc.podspec index dd6d3079f40669..ee9cf096e7a961 100644 --- a/packages/react-native/ReactCommon/jsc/React-jsc.podspec +++ b/packages/react-native/ReactCommon/jsc/React-jsc.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "JSCRuntime.{cpp,h}" s.exclude_files = "**/test/*" diff --git a/packages/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec b/packages/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec index 3ede4292bd2703..b8b6cb65914a31 100644 --- a/packages/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +++ b/packages/react-native/ReactCommon/jserrorhandler/React-jserrorhandler.podspec @@ -29,7 +29,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.header_dir = "jserrorhandler" s.source_files = "JsErrorHandler.{cpp,h}" diff --git a/packages/react-native/ReactCommon/jsi/React-jsi.podspec b/packages/react-native/ReactCommon/jsi/React-jsi.podspec index ebfadb34eef922..1d795926cd89fc 100644 --- a/packages/react-native/ReactCommon/jsi/React-jsi.podspec +++ b/packages/react-native/ReactCommon/jsi/React-jsi.podspec @@ -31,7 +31,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.header_dir = "jsi" diff --git a/packages/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec b/packages/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec index a8b2ae881cfb49..8b5e6e1fcc7e07 100644 --- a/packages/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +++ b/packages/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec @@ -27,7 +27,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "jsireact/*.{cpp,h}" s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags diff --git a/packages/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec b/packages/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec index e82b9e7c5c1699..98f717e8339e3c 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec +++ b/packages/react-native/ReactCommon/jsinspector-modern/React-jsinspector.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "*.{cpp,h}" s.header_dir = 'jsinspector' diff --git a/packages/react-native/ReactCommon/logger/React-logger.podspec b/packages/react-native/ReactCommon/logger/React-logger.podspec index a61e9272caba49..b5a51ca8921047 100644 --- a/packages/react-native/ReactCommon/logger/React-logger.podspec +++ b/packages/react-native/ReactCommon/logger/React-logger.podspec @@ -28,7 +28,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "*.{cpp,h}" s.exclude_files = "SampleCxxModule.*" diff --git a/packages/react-native/ReactCommon/react/debug/React-debug.podspec b/packages/react-native/ReactCommon/react/debug/React-debug.podspec index 7c2d0d65ae64f1..07970e5e283d8c 100644 --- a/packages/react-native/ReactCommon/react/debug/React-debug.podspec +++ b/packages/react-native/ReactCommon/react/debug/React-debug.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{cpp,h}" s.header_dir = "react/debug" diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec index 8824ba73561bf3..b2b92ec2305369 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec @@ -29,7 +29,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\"", diff --git a/packages/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec b/packages/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec index ddccfded01041d..b6123f91819dd3 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +++ b/packages/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec @@ -29,7 +29,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers\"", diff --git a/packages/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec b/packages/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec index 9a8ec0c50c8d39..b7593acac75f3e 100644 --- a/packages/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +++ b/packages/react-native/ReactCommon/react/renderer/debug/React-rendererdebug.podspec @@ -37,7 +37,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{cpp,h,mm}" s.compiler_flags = folly_compiler_flags diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec b/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec index c4428e0346705f..313684ac98793f 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +++ b/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec @@ -34,7 +34,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.source_files = source_files diff --git a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec index e89f300be4f78e..1116eb28e943c6 100644 --- a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +++ b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec @@ -34,7 +34,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.source_files = source_files diff --git a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec b/packages/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec index d4e9a70f9e9e85..ee12654b36b560 100644 --- a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +++ b/packages/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec @@ -36,7 +36,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{cpp,h}" s.compiler_flags = folly_compiler_flags diff --git a/packages/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec b/packages/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec index 3784a8930c9e13..a12514439e7d3e 100644 --- a/packages/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec +++ b/packages/react-native/ReactCommon/react/runtime/React-RuntimeCore.podspec @@ -28,7 +28,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "*.{cpp,h}", "nativeviewconfig/*.{cpp,h}" s.exclude_files = "iostests/*", "tests/**/*.{cpp,h}" diff --git a/packages/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec b/packages/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec index 4d8149ba7ecf73..98f943a64a7c69 100644 --- a/packages/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec +++ b/packages/react-native/ReactCommon/react/runtime/React-RuntimeHermes.podspec @@ -28,7 +28,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "hermes/*.{cpp,h}" s.header_dir = "react/runtime/hermes" diff --git a/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec b/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec index 00b139d7fe1b88..cd8a8f38fbc705 100644 --- a/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +++ b/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec @@ -35,7 +35,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "ReactCommon/*.{mm,h}" s.header_dir = "ReactCommon" diff --git a/packages/react-native/ReactCommon/react/utils/React-utils.podspec b/packages/react-native/ReactCommon/react/utils/React-utils.podspec index 795be868379d61..031f43406d85f6 100644 --- a/packages/react-native/ReactCommon/react/utils/React-utils.podspec +++ b/packages/react-native/ReactCommon/react/utils/React-utils.podspec @@ -36,7 +36,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{cpp,h,mm}" s.compiler_flags = folly_compiler_flags diff --git a/packages/react-native/ReactCommon/reactperflogger/React-perflogger.podspec b/packages/react-native/ReactCommon/reactperflogger/React-perflogger.podspec index 3c2980d9f10cd9..47013b99c38cf3 100644 --- a/packages/react-native/ReactCommon/reactperflogger/React-perflogger.podspec +++ b/packages/react-native/ReactCommon/reactperflogger/React-perflogger.podspec @@ -27,7 +27,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{cpp,h}" s.header_dir = "reactperflogger" diff --git a/packages/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec b/packages/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec index 499c39e56c9dcf..0a6e443579b399 100644 --- a/packages/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +++ b/packages/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec @@ -27,7 +27,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.source = source s.source_files = "**/*.{cpp,h}" s.header_dir = "ReactCommon" diff --git a/packages/react-native/ReactCommon/yoga/Yoga.podspec b/packages/react-native/ReactCommon/yoga/Yoga.podspec index 5442f0afc34e95..8a3d88bca902a5 100644 --- a/packages/react-native/ReactCommon/yoga/Yoga.podspec +++ b/packages/react-native/ReactCommon/yoga/Yoga.podspec @@ -43,7 +43,7 @@ Pod::Spec.new do |spec| ] # Pinning to the same version as React.podspec. - spec.platforms = { :ios => min_ios_version_supported } + spec.platforms = min_supported_versions # Set this environment variable when *not* using the `:path` option to install the pod. # E.g. when publishing this spec to a spec repo. diff --git a/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb b/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb index 297230dc5d2d1c..a6aaf78cbe6bee 100644 --- a/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb +++ b/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb @@ -15,7 +15,7 @@ require_relative "./test_utils/CodegenScriptPhaseExtractorMock.rb" require_relative "./test_utils/FileUtilsMock.rb" -# mocking the min_ios_version_supported function +# mocking the min_supported_versions function # as it is not possible to require the original react_native_pod # without incurring in circular deps # TODO: move `min_ios_version_supported` to utils.rb @@ -23,6 +23,10 @@ def min_ios_version_supported return '13.4' end +def min_supported_versions + return { :ios => min_ios_version_supported } +end + class CodegenUtilsTests < Test::Unit::TestCase :base_path diff --git a/packages/react-native/scripts/cocoapods/codegen_utils.rb b/packages/react-native/scripts/cocoapods/codegen_utils.rb index c3313468fbf7d4..d6dcf29c50291f 100644 --- a/packages/react-native/scripts/cocoapods/codegen_utils.rb +++ b/packages/react-native/scripts/cocoapods/codegen_utils.rb @@ -117,9 +117,7 @@ def get_react_codegen_spec(package_json_file, folly_version: '2021.07.22.00', fa 'compiler_flags' => "#{folly_compiler_flags} #{boost_compiler_flags} -Wno-nullability-completeness -std=c++17", 'source' => { :git => '' }, 'header_mappings_dir' => './', - 'platforms' => { - 'ios' => min_ios_version_supported, - }, + 'platforms' => min_supported_versions, 'source_files' => "**/*.{h,mm,cpp}", 'pod_target_xcconfig' => { "HEADER_SEARCH_PATHS" => header_search_paths.join(' '), diff --git a/packages/react-native/scripts/react_native_pods.rb b/packages/react-native/scripts/react_native_pods.rb index f2a1608068b9a9..fb625f8ea1360f 100644 --- a/packages/react-native/scripts/react_native_pods.rb +++ b/packages/react-native/scripts/react_native_pods.rb @@ -35,13 +35,18 @@ {paths: [process.argv[1]]}, )', __dir__]).strip -# This function returns the min iOS version supported by React Native -# By using this function, you won't have to manually change your Podfile -# when we change the minimum version supported by the framework. + def min_ios_version_supported return '13.4' end +# This function returns the min supported OS versions supported by React Native +# By using this function, you won't have to manually change your Podfile +# when we change the minimum version supported by the framework. +def min_supported_versions + return {:ios => min_ios_version_supported } +end + # This function prepares the project for React Native, before processing # all the target exposed by the framework. def prepare_react_native_project! diff --git a/packages/react-native/third-party-podspecs/DoubleConversion.podspec b/packages/react-native/third-party-podspecs/DoubleConversion.podspec index 74ae9f4bdf990b..6bef28610d4b65 100644 --- a/packages/react-native/third-party-podspecs/DoubleConversion.podspec +++ b/packages/react-native/third-party-podspecs/DoubleConversion.podspec @@ -21,6 +21,6 @@ Pod::Spec.new do |spec| spec.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/DoubleConversion\"" } # Pinning to the same version as React.podspec. - spec.platforms = { :ios => min_ios_version_supported } + spec.platforms = min_supported_versions end diff --git a/packages/react-native/third-party-podspecs/RCT-Folly.podspec b/packages/react-native/third-party-podspecs/RCT-Folly.podspec index 991284d64b862f..84e5b354d9b30c 100644 --- a/packages/react-native/third-party-podspecs/RCT-Folly.podspec +++ b/packages/react-native/third-party-podspecs/RCT-Folly.podspec @@ -152,5 +152,5 @@ Pod::Spec.new do |spec| # Folly has issues when compiled with iOS 10 set as deployment target # See https://github.com/facebook/folly/issues/1470 for details - spec.platforms = { :ios => min_ios_version_supported } + spec.platforms = min_supported_versions end diff --git a/packages/react-native/third-party-podspecs/boost.podspec b/packages/react-native/third-party-podspecs/boost.podspec index 19dd0a3fc71734..80f5d91916bffc 100644 --- a/packages/react-native/third-party-podspecs/boost.podspec +++ b/packages/react-native/third-party-podspecs/boost.podspec @@ -14,7 +14,7 @@ Pod::Spec.new do |spec| :sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' } # Pinning to the same version as React.podspec. - spec.platforms = { :ios => min_ios_version_supported } + spec.platforms = min_supported_versions spec.requires_arc = false spec.module_name = 'boost' diff --git a/packages/react-native/third-party-podspecs/glog.podspec b/packages/react-native/third-party-podspecs/glog.podspec index cc4a398f00dc5e..7fbf939939a5be 100644 --- a/packages/react-native/third-party-podspecs/glog.podspec +++ b/packages/react-native/third-party-podspecs/glog.podspec @@ -36,6 +36,6 @@ Pod::Spec.new do |spec| } # Pinning to the same version as React.podspec. - spec.platforms = { :ios => min_ios_version_supported } + spec.platforms = min_supported_versions end diff --git a/packages/rn-tester/NativeComponentExample/MyNativeView.podspec b/packages/rn-tester/NativeComponentExample/MyNativeView.podspec index 029ef1935d4db3..49d150495fe467 100644 --- a/packages/rn-tester/NativeComponentExample/MyNativeView.podspec +++ b/packages/rn-tester/NativeComponentExample/MyNativeView.podspec @@ -17,7 +17,7 @@ Pod::Spec.new do |s| s.description = "my-native-view" s.homepage = "https://github.com/sota000/my-native-view.git" s.license = "MIT" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = boost_compiler_flags + ' -Wno-nullability-completeness' s.author = "Meta Platforms, Inc. and its affiliates" s.source = { :git => "https://github.com/facebook/my-native-view.git", :tag => "#{s.version}" } diff --git a/packages/rn-tester/NativeCxxModuleExample/NativeCxxModuleExample.podspec b/packages/rn-tester/NativeCxxModuleExample/NativeCxxModuleExample.podspec index e4f38793ab28ed..81fb57362af56a 100644 --- a/packages/rn-tester/NativeCxxModuleExample/NativeCxxModuleExample.podspec +++ b/packages/rn-tester/NativeCxxModuleExample/NativeCxxModuleExample.podspec @@ -14,7 +14,7 @@ Pod::Spec.new do |s| s.description = "NativeCxxModuleExample" s.homepage = "https://github.com/facebook/react-native.git" s.license = "MIT" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = '-Wno-nullability-completeness' s.author = "Meta Platforms, Inc. and its affiliates" s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "#{s.version}" } diff --git a/packages/rn-tester/NativeModuleExample/ScreenshotManager.podspec b/packages/rn-tester/NativeModuleExample/ScreenshotManager.podspec index 787effe5163bf3..2082df5691ed09 100644 --- a/packages/rn-tester/NativeModuleExample/ScreenshotManager.podspec +++ b/packages/rn-tester/NativeModuleExample/ScreenshotManager.podspec @@ -14,7 +14,7 @@ Pod::Spec.new do |s| s.description = "ScreenshotManager" s.homepage = "https://github.com/facebook/react-native.git" s.license = "MIT" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = '-Wno-nullability-completeness' s.author = "Meta Platforms, Inc. and its affiliates" s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "#{s.version}" } diff --git a/packages/rn-tester/Podfile.lock b/packages/rn-tester/Podfile.lock index 6c496c29e3dbd2..a86edbccfd1914 100644 --- a/packages/rn-tester/Podfile.lock +++ b/packages/rn-tester/Podfile.lock @@ -1389,4 +1389,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 12e43012c487479221225e84fe13aa775cf90726 -COCOAPODS: 1.12.1 +COCOAPODS: 1.12.1 \ No newline at end of file diff --git a/packages/rn-tester/RCTTest/React-RCTTest.podspec b/packages/rn-tester/RCTTest/React-RCTTest.podspec index 76a3594f2bf260..77658d2f875ba5 100644 --- a/packages/rn-tester/RCTTest/React-RCTTest.podspec +++ b/packages/rn-tester/RCTTest/React-RCTTest.podspec @@ -26,7 +26,7 @@ Pod::Spec.new do |s| s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Meta Platforms, Inc. and its affiliates" - s.platforms = { :ios => min_ios_version_supported } + s.platforms = min_supported_versions s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness' s.source = source s.source_files = "**/*.{h,m,mm}"