Skip to content

Commit 2f7b5f6

Browse files
authored
chore: update iOS min supported version to 15.1 (#2799)
## Description This is not a breaking change, because we support `react-native` 0.76+ anyway, and it has iOS min deployment target [set to 15.1](react-native-community/discussions-and-proposals#812) This is needed because I work with @maciejstosio on an issue with `backButtonDisplayMode` & it has been introduced in iOS 14.0. The workaround I've found works only on iOS >= 14.0, therefore it would be nice to not have to add any ifdefs in source code. ## Changes Bumped the min. supported iOS version to 15.1 from 11.0. I've left the new-arch-condition in the podspec code, despite the fact that it is not needed, so that it is clear where do we change things when it becomes needed. tvOS version is left unchanged for now (most likely it should also be updated!). ## Test code and steps to reproduce The app should build and run on any device with 15.1 or newer iOS version. ## Checklist - [ ] Ensured that CI passes
1 parent 82f1124 commit 2f7b5f6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

FabricExample/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ PODS:
17331733
- ReactCommon/turbomodule/bridging
17341734
- ReactCommon/turbomodule/core
17351735
- Yoga
1736-
- RNScreens (4.10.0-beta.2):
1736+
- RNScreens (4.10.0-beta.3):
17371737
- DoubleConversion
17381738
- glog
17391739
- hermes-engine
@@ -1754,9 +1754,9 @@ PODS:
17541754
- ReactCodegen
17551755
- ReactCommon/turbomodule/bridging
17561756
- ReactCommon/turbomodule/core
1757-
- RNScreens/common (= 4.10.0-beta.2)
1757+
- RNScreens/common (= 4.10.0-beta.3)
17581758
- Yoga
1759-
- RNScreens/common (4.10.0-beta.2):
1759+
- RNScreens/common (4.10.0-beta.3):
17601760
- DoubleConversion
17611761
- glog
17621762
- hermes-engine
@@ -2075,7 +2075,7 @@ SPEC CHECKSUMS:
20752075
ReactCommon: 179964ffc47fa62ad0e1eebac704e88c59b46667
20762076
RNGestureHandler: 4e7defe5095e936424173fc75f0bf2af5bba8e23
20772077
RNReanimated: 183ca222293bd622678e387100e54d03d952c73b
2078-
RNScreens: 2aa993d221ba928ee75682f3c0940620a8d46865
2078+
RNScreens: b40d97d6ad4b6f1f55552bed30b845ae01ff3d2c
20792079
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
20802080
Yoga: 330be28eee1242da875db9e851b19a4df496b999
20812081

RNScreens.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require "json"
33
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
44

55
new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
6-
platform = new_arch_enabled ? "11.0" : "9.0"
6+
min_supported_ios_version = new_arch_enabled ? "15.1" : "15.1"
77
source_files = new_arch_enabled ? 'ios/**/*.{h,m,mm,cpp}' : ["ios/**/*.{h,m,mm}", "cpp/RNScreensTurboModule.cpp", "cpp/RNScreensTurboModule.h"]
88

99
Pod::Spec.new do |s|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.homepage = "https://github.com/software-mansion/react-native-screens"
1717
s.license = "MIT"
1818
s.author = { "author" => "[email protected]" }
19-
s.platforms = { :ios => platform, :tvos => "11.0", :visionos => "1.0" }
19+
s.platforms = { :ios => min_supported_ios_version, :tvos => "11.0", :visionos => "1.0" }
2020
s.source = { :git => "https://github.com/software-mansion/react-native-screens.git", :tag => "#{s.version}" }
2121
s.source_files = source_files
2222
s.project_header_files = "cpp/**/*.h" # Don't expose C++ headers publicly to allow importing framework into Swift files

0 commit comments

Comments
 (0)