Skip to content

Commit 0619af5

Browse files
authored
[0.72] Backport changes to help set platform versions in podspecs (#2044)
* updateIphoneOSDeploymentTarget -> updateOSDeploymentTarget (facebook#39570) Summary: While merging new commits into React Native macOS, I noticed facebook#39478 I would like to also set `MACOS_DEPLOYMENT_TARGET` in our fork, and thought this slight rename would be something I can do upstream [Internal] - updateIphoneOSDeploymentTarget -> updateOSDeploymentTarget Pull Request resolved: facebook#39570 Test Plan: CI should pass Reviewed By: NickGerleman Differential Revision: D49514693 Pulled By: ryancat fbshipit-source-id: b4dafb1f9736d2977510712652cb8097263c489d * min_ios_version_supported -> min_supported_versions (facebook#39310) Summary: One of the most common diffs we have in React Native macOS is simply extending the `platforms` key Inside every pod spec to include macOS. React Native tvOS does the same to add tvOS. In the future, React Native may support visionOS, at which point we do the same thing again. Let's define a `min_supported_versions` hash that can be overridden at one place that is extensible to more platforms, instead of just specifying `min_ios_version_supported`. Note: In doing this change, I have set it that `React-Hermes.podspec` doesn't build for macOS anymore. I think this is safe, since anyone using Hermes on macOS was probably using React Native macOS where we already have a diff to add macOS back? [IOS] [CHANGED] - Add min_supported_versions helper to cocoa pods scripts Pull Request resolved: facebook#39310 Test Plan: CI should pass. Reviewed By: NickGerleman Differential Revision: D49014109 Pulled By: dmytrorykun fbshipit-source-id: d44fc7b750c70cc263a2c89502c022a0db9a4771 * Set macOS deployment target
1 parent 0a07004 commit 0619af5

File tree

53 files changed

+80
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+80
-59
lines changed

packages/react-native/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
2424
s.documentation_url = "https://reactnative.dev/docs/actionsheetios"
2525
s.license = package["license"]
2626
s.author = "Meta Platforms, Inc. and its affiliates"
27-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
27+
s.platforms = min_supported_versions
2828
s.source = source
2929
s.source_files = "*.{m}"
3030
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"

packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Pod::Spec.new do |s|
6060
s.documentation_url = "https://reactnative.dev/docs/actionsheetios"
6161
s.license = package["license"]
6262
s.author = "Meta Platforms, Inc. and its affiliates"
63-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
63+
s.platforms = min_supported_versions
6464
s.source = source
6565
s.source_files = "**/*.{c,h,m,mm,S,cpp}"
6666

packages/react-native/Libraries/Blob/React-RCTBlob.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Pod::Spec.new do |s|
3939
s.homepage = "https://reactnative.dev/"
4040
s.license = package["license"]
4141
s.author = "Meta Platforms, Inc. and its affiliates"
42-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
42+
s.platforms = min_supported_versions
4343
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4444
s.source = source
4545
s.source_files = "*.{h,m,mm}"

packages/react-native/Libraries/FBLazyVector/FBLazyVector.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
s.homepage = "https://reactnative.dev/"
2424
s.license = package["license"]
2525
s.author = "Meta Platforms, Inc. and its affiliates"
26-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26+
s.platforms = min_supported_versions
2727
s.source = source
2828
s.source_files = "**/*.{c,h,m,mm,cpp}"
2929
s.header_dir = "FBLazyVector"

packages/react-native/Libraries/Image/React-RCTImage.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Pod::Spec.new do |s|
4040
s.documentation_url = "https://reactnative.dev/docs/image"
4141
s.license = package["license"]
4242
s.author = "Meta Platforms, Inc. and its affiliates"
43-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
43+
s.platforms = min_supported_versions
4444
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4545
s.source = source
4646
s.source_files = "*.{m,mm}"

packages/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Pod::Spec.new do |s|
4343
s.documentation_url = "https://reactnative.dev/docs/linking"
4444
s.license = package["license"]
4545
s.author = "Meta Platforms, Inc. and its affiliates"
46-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
46+
s.platforms = min_supported_versions
4747
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4848
s.source = source
4949
s.source_files = "*.{m,mm}"

packages/react-native/Libraries/NativeAnimation/React-RCTAnimation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Pod::Spec.new do |s|
3939
s.homepage = "https://reactnative.dev/"
4040
s.license = package["license"]
4141
s.author = "Meta Platforms, Inc. and its affiliates"
42-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
42+
s.platforms = min_supported_versions
4343
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4444
s.source = source
4545
s.source_files = "**/*.{h,m,mm}"

packages/react-native/Libraries/Network/React-RCTNetwork.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Pod::Spec.new do |s|
4343
s.homepage = "https://reactnative.dev/"
4444
s.license = package["license"]
4545
s.author = "Meta Platforms, Inc. and its affiliates"
46-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
46+
s.platforms = min_supported_versions
4747
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4848
s.source = source
4949
s.source_files = "*.{m,mm}"

packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Pod::Spec.new do |s|
4040
s.documentation_url = "https://reactnative.dev/docs/pushnotificationios"
4141
s.license = package["license"]
4242
s.author = "Meta Platforms, Inc. and its affiliates"
43-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
43+
s.platforms = min_supported_versions
4444
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4545
s.source = source
4646
s.source_files = "*.{m,mm}"

packages/react-native/Libraries/RCTRequired/RCTRequired.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
s.homepage = "https://reactnative.dev/"
2424
s.license = package["license"]
2525
s.author = "Meta Platforms, Inc. and its affiliates"
26-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26+
s.platforms = min_supported_versions
2727
s.source = source
2828
s.source_files = "**/*.{c,h,m,mm,cpp}"
2929
s.header_dir = "RCTRequired"

packages/react-native/Libraries/Settings/React-RCTSettings.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Pod::Spec.new do |s|
4343
s.documentation_url = "https://reactnative.dev/docs/settings"
4444
s.license = package["license"]
4545
s.author = "Meta Platforms, Inc. and its affiliates"
46-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
46+
s.platforms = min_supported_versions
4747
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4848
s.source = source
4949
s.source_files = "*.{m,mm}"

packages/react-native/Libraries/Text/React-RCTText.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
2424
s.documentation_url = "https://reactnative.dev/docs/text"
2525
s.license = package["license"]
2626
s.author = "Meta Platforms, Inc. and its affiliates"
27-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
27+
s.platforms = min_supported_versions
2828
s.source = source
2929
s.source_files = "**/*.{h,m}"
3030
s.ios.exclude_files = "**/macOS/*" # [macOS]

packages/react-native/Libraries/TypeSafety/RCTTypeSafety.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
s.homepage = "https://reactnative.dev/"
2424
s.license = package["license"]
2525
s.author = "Meta Platforms, Inc. and its affiliates"
26-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26+
s.platforms = min_supported_versions
2727
s.source = source
2828
s.source_files = "**/*.{c,h,m,mm,cpp}"
2929
s.header_dir = "RCTTypeSafety"

packages/react-native/Libraries/Vibration/React-RCTVibration.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Pod::Spec.new do |s|
4242
s.documentation_url = "https://reactnative.dev/docs/vibration"
4343
s.license = package["license"]
4444
s.author = "Meta Platforms, Inc. and its affiliates"
45-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
45+
s.platforms = min_supported_versions
4646
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4747
s.source = source
4848
s.source_files = "*.{m,mm}"

packages/react-native/React-Core.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Pod::Spec.new do |s|
6767
s.homepage = "https://reactnative.dev/"
6868
s.license = package["license"]
6969
s.author = "Meta Platforms, Inc. and its affiliates"
70-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
70+
s.platforms = min_supported_versions
7171
s.source = source
7272
s.resource_bundle = { "AccessibilityResources" => ["React/AccessibilityResources/*.lproj"]}
7373
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags

packages/react-native/React.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Pod::Spec.new do |s|
3636
s.homepage = "https://reactnative.dev/"
3737
s.license = package["license"]
3838
s.author = "Meta Platforms, Inc. and its affiliates"
39-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
39+
s.platforms = min_supported_versions
4040
s.source = source
4141
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
4242
s.cocoapods_version = ">= 1.10.1"

packages/react-native/React/CoreModules/React-CoreModules.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Pod::Spec.new do |s|
3939
s.homepage = "https://reactnative.dev/"
4040
s.license = package["license"]
4141
s.author = "Meta Platforms, Inc. and its affiliates"
42-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
42+
s.platforms = min_supported_versions
4343
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
4444
s.source = source
4545
s.source_files = "**/*.{c,m,mm,cpp}"

packages/react-native/React/FBReactNativeSpec/FBReactNativeSpec.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
2929
s.homepage = "https://reactnative.dev/"
3030
s.license = package["license"]
3131
s.author = "Meta Platforms, Inc. and its affiliates"
32-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32+
s.platforms = min_supported_versions
3333
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
3434
s.source = source
3535
# This podspec is used to trigger the codegen, and built files are generated in a different location.

packages/react-native/React/React-RCTFabric.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Pod::Spec.new do |s|
5252
s.homepage = "https://reactnative.dev/"
5353
s.license = package["license"]
5454
s.author = "Meta Platforms, Inc. and its affiliates"
55-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
55+
s.platforms = min_supported_versions
5656
s.source = source
5757
s.source_files = "Fabric/**/*.{c,h,m,mm,S,cpp}"
5858
s.exclude_files = "**/tests/*",

packages/react-native/ReactCommon/React-Fabric.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
2929
s.homepage = "https://reactnative.dev/"
3030
s.license = package["license"]
3131
s.author = "Meta Platforms, Inc. and its affiliates"
32-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32+
s.platforms = min_supported_versions
3333
s.source = source
3434
s.source_files = "dummyFile.cpp"
3535
s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",

packages/react-native/ReactCommon/React-rncore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Pod::Spec.new do |s|
4444
s.homepage = "https://reactnative.dev/"
4545
s.license = package["license"]
4646
s.author = "Meta Platforms, Inc. and its affiliates"
47-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
47+
s.platforms = min_supported_versions
4848
s.source = source
4949
s.source_files = "dummyFile.cpp"
5050
s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",

packages/react-native/ReactCommon/ReactCommon.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Pod::Spec.new do |s|
2828
s.homepage = "https://reactnative.dev/"
2929
s.license = package["license"]
3030
s.author = "Meta Platforms, Inc. and its affiliates"
31-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
31+
s.platforms = min_supported_versions
3232
s.source = source
3333
s.header_dir = "ReactCommon" # Use global header_dir for all subspecs for use_frameworks! compatibility
3434
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags

packages/react-native/ReactCommon/callinvoker/React-callinvoker.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
2727
s.homepage = "https://reactnative.dev/"
2828
s.license = package["license"]
2929
s.author = "Meta Platforms, Inc. and its affiliates"
30-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30+
s.platforms = min_supported_versions
3131
s.source = source
3232
s.source_files = "**/*.{cpp,h}"
3333
s.header_dir = "ReactCommon"

packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Pod::Spec.new do |s|
2828
s.homepage = "https://reactnative.dev/"
2929
s.license = package["license"]
3030
s.author = "Meta Platforms, Inc. and its affiliates"
31-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
31+
s.platforms = min_supported_versions
3232
s.source = source
3333
s.source_files = "*.{cpp,h}"
3434
s.exclude_files = "SampleCxxModule.*"

packages/react-native/ReactCommon/hermes/React-hermes.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
3131
s.homepage = "https://reactnative.dev/"
3232
s.license = package['license']
3333
s.author = "Meta Platforms, Inc. and its affiliates"
34-
s.platforms = { :osx => "10.14", :ios => "12.4" }
34+
s.platforms = min_supported_versions
3535
s.source = source
3636
s.source_files = "executor/*.{cpp,h}",
3737
"inspector/*.{cpp,h}",

packages/react-native/ReactCommon/jsc/React-jsc.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
s.homepage = "https://reactnative.dev/"
2424
s.license = package["license"]
2525
s.author = "Meta Platforms, Inc. and its affiliates"
26-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26+
s.platforms = min_supported_versions
2727
s.source = source
2828
s.source_files = "JSCRuntime.{cpp,h}"
2929
s.exclude_files = "**/test/*"

packages/react-native/ReactCommon/jsi/React-jsi.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
3131
s.homepage = "https://reactnative.dev/"
3232
s.license = package["license"]
3333
s.author = "Meta Platforms, Inc. and its affiliates"
34-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
34+
s.platforms = min_supported_versions
3535
s.source = source
3636

3737
s.header_dir = "jsi"

packages/react-native/ReactCommon/jsiexecutor/React-jsiexecutor.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
2727
s.homepage = "https://reactnative.dev/"
2828
s.license = package["license"]
2929
s.author = "Meta Platforms, Inc. and its affiliates"
30-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30+
s.platforms = min_supported_versions
3131
s.source = source
3232
s.source_files = "jsireact/*.{cpp,h}"
3333
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags

packages/react-native/ReactCommon/jsinspector/React-jsinspector.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
s.homepage = "https://reactnative.dev/"
2424
s.license = package["license"]
2525
s.author = "Meta Platforms, Inc. and its affiliates"
26-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26+
s.platforms = min_supported_versions
2727
s.source = source
2828
s.source_files = "*.{cpp,h}"
2929
s.header_dir = 'jsinspector'

packages/react-native/ReactCommon/logger/React-logger.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Pod::Spec.new do |s|
2828
s.homepage = "https://reactnative.dev/"
2929
s.license = package["license"]
3030
s.author = "Meta Platforms, Inc. and its affiliates"
31-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
31+
s.platforms = min_supported_versions
3232
s.source = source
3333
s.source_files = "*.{cpp,h}"
3434
s.exclude_files = "SampleCxxModule.*"

packages/react-native/ReactCommon/react/debug/React-debug.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
s.homepage = "https://reactnative.dev/"
2424
s.license = package["license"]
2525
s.author = "Meta Platforms, Inc. and its affiliates"
26-
s.platforms = { :ios => min_ios_version_supported, :osx => '10.15' } # [macOS]
26+
s.platforms = min_supported_versions
2727
s.source = source
2828
s.source_files = "**/*.{cpp,h}"
2929
s.header_dir = "react/debug"

packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
2929
s.homepage = "https://reactnative.dev/"
3030
s.license = package["license"]
3131
s.author = "Meta Platforms, Inc. and its affiliates"
32-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32+
s.platforms = min_supported_versions
3333
s.source = source
3434
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
3535
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",

packages/react-native/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
2929
s.homepage = "https://reactnative.dev/"
3030
s.license = package["license"]
3131
s.author = "Meta Platforms, Inc. and its affiliates"
32-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32+
s.platforms = min_supported_versions
3333
s.source = source
3434
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
3535
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\"",

packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
3434
s.homepage = "https://reactnative.dev/"
3535
s.license = package["license"]
3636
s.author = "Meta Platforms, Inc. and its affiliates"
37-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
37+
s.platforms = min_supported_versions
3838
s.source = source
3939
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
4040
s.source_files = source_files

packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
3434
s.homepage = "https://reactnative.dev/"
3535
s.license = package["license"]
3636
s.author = "Meta Platforms, Inc. and its affiliates"
37-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
37+
s.platforms = min_supported_versions
3838
s.source = source
3939
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
4040
s.source_files = source_files

packages/react-native/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
3535
s.homepage = "https://reactnative.dev/"
3636
s.license = package["license"]
3737
s.author = "Meta Platforms, Inc. and its affiliates"
38-
s.platforms = { :ios => min_ios_version_supported, :osx => '10.15' } # [macOS]
38+
s.platforms = min_supported_versions
3939
s.source = source
4040
s.source_files = "**/*.{cpp,h}"
4141
s.compiler_flags = folly_compiler_flags

packages/react-native/ReactCommon/react/utils/React-utils.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Pod::Spec.new do |s|
3636
s.homepage = "https://reactnative.dev/"
3737
s.license = package["license"]
3838
s.author = "Meta Platforms, Inc. and its affiliates"
39-
s.platforms = { :ios => min_ios_version_supported, :osx => '10.15' } # [macOS]
39+
s.platforms = min_supported_versions
4040
s.source = source
4141
s.source_files = "**/*.{cpp,h,mm}"
4242
s.compiler_flags = folly_compiler_flags

packages/react-native/ReactCommon/reactperflogger/React-perflogger.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
2727
s.homepage = "https://reactnative.dev/"
2828
s.license = package["license"]
2929
s.author = "Meta Platforms, Inc. and its affiliates"
30-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30+
s.platforms = min_supported_versions
3131
s.source = source
3232
s.source_files = "**/*.{cpp,h}"
3333
s.header_dir = "reactperflogger"

packages/react-native/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
2727
s.homepage = "https://reactnative.dev/"
2828
s.license = package["license"]
2929
s.author = "Meta Platforms, Inc. and its affiliates"
30-
s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30+
s.platforms = min_supported_versions
3131
s.source = source
3232
s.source_files = "**/*.{cpp,h}"
3333
s.header_dir = "ReactCommon"

packages/react-native/ReactCommon/yoga/Yoga.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Pod::Spec.new do |spec|
4343
]
4444

4545
# Pinning to the same version as React.podspec.
46-
spec.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
46+
spec.platforms = min_supported_versions
4747

4848
# Set this environment variable when *not* using the `:path` option to install the pod.
4949
# E.g. when publishing this spec to a spec repo.

0 commit comments

Comments
 (0)