From dc7a2cd99d8c8595b6ba9c8b7e0c9228a98c7fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwa=C5=9Bniewski?= Date: Fri, 20 Oct 2023 16:26:14 +0200 Subject: [PATCH] chore: use `min_supported_versions` for third-party-podspecs (#18) --- .../react-native/third-party-podspecs/SocketRocket.podspec | 5 +---- packages/react-native/third-party-podspecs/YogaKit.podspec | 2 +- packages/react-native/third-party-podspecs/libevent.podspec | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/react-native/third-party-podspecs/SocketRocket.podspec b/packages/react-native/third-party-podspecs/SocketRocket.podspec index 46d4b8b2b7b8fe..7e65ab07b1710a 100644 --- a/packages/react-native/third-party-podspecs/SocketRocket.podspec +++ b/packages/react-native/third-party-podspecs/SocketRocket.podspec @@ -11,10 +11,7 @@ Pod::Spec.new do |s| s.source_files = 'SocketRocket/**/*.{h,m}' s.public_header_files = 'SocketRocket/*.h' - s.ios.deployment_target = '9.0' - s.osx.deployment_target = '10.9' - s.tvos.deployment_target = '9.0' - s.visionos.deployment_target = '1.0' + s.platforms = min_supported_versions s.ios.frameworks = 'CFNetwork', 'Security' s.osx.frameworks = 'CoreServices', 'Security' diff --git a/packages/react-native/third-party-podspecs/YogaKit.podspec b/packages/react-native/third-party-podspecs/YogaKit.podspec index ec2c5654a351b4..febbb126ee9302 100644 --- a/packages/react-native/third-party-podspecs/YogaKit.podspec +++ b/packages/react-native/third-party-podspecs/YogaKit.podspec @@ -19,7 +19,7 @@ podspec = Pod::Spec.new do |spec| :tag => "1.18.0", } - spec.platforms = { :ios => "9.0", :visionos => "1.0" } + spec.platforms = min_supported_versions spec.ios.deployment_target = '8.0' spec.ios.frameworks = 'UIKit' spec.module_name = 'YogaKit' diff --git a/packages/react-native/third-party-podspecs/libevent.podspec b/packages/react-native/third-party-podspecs/libevent.podspec index 7051785f86552a..c917f0227be3fd 100644 --- a/packages/react-native/third-party-podspecs/libevent.podspec +++ b/packages/react-native/third-party-podspecs/libevent.podspec @@ -544,7 +544,7 @@ Pod::Spec.new do |spec| spec.homepage = "https://libevent.org" spec.license = { :type => "BSD 3-Clause", :file => "LICENSE" } spec.author = "Niels Provos and Nick Mathewson" - spec.platforms = { :osx => "10.13", :ios => "10.0", :tvos => "10.0", :visionos => "1.0" } + spec.platforms = min_supported_versions spec.source = { :git => "https://github.com/libevent/libevent.git", :tag => "release-2.1.12-stable" } spec.prepare_command = "echo 'executing libevent prepare command'; touch evconfig-private.h; echo -e #{Shellwords.escape(CONFIG_WITHOUT_OPENSSL)} > include/event2/event-config.h; ls include/event2/" spec.source_files =