diff --git a/docs/architecture/platform-versions.md b/docs/architecture/platform-versions.md index 65aa8751b7b..a2ebdb86a22 100644 --- a/docs/architecture/platform-versions.md +++ b/docs/architecture/platform-versions.md @@ -91,11 +91,16 @@ History: * We dropped iOS 10 support in 2020-10. It was 0.3% of iOS users who tried Zulip, and we wanted to use a feature introduced in iOS 11, called "named colors". +* We [dropped iOS 11 support] in 2021-04. It was 0.1% of iOS users + who tried Zulip. We started iOS 12 support at 12.1 because Xcode's + dropdown for "Deployment Target" didn't have a 12.0. + [dropped-android-j]: https://chat.zulip.org/#narrow/stream/48-mobile/topic/platform.20versions/near/625585 [dropped iOS 8 support]: https://chat.zulip.org/#narrow/stream/48-mobile/topic/platform.20versions/near/628412 [dropped iOS 9 support]: https://chat.zulip.org/#narrow/stream/48-mobile/topic/platform.20versions/near/771761 [dropped-android-k]: https://chat.zulip.org/#narrow/stream/48-mobile/topic/platform.20versions/near/794551 +[dropped iOS 11 support]: https://chat.zulip.org/#narrow/stream/48-mobile/topic/platform.20versions/near/1165087 Related observations: diff --git a/docs/developer-guide.md b/docs/developer-guide.md index 98f633a1e7f..a479290436c 100644 --- a/docs/developer-guide.md +++ b/docs/developer-guide.md @@ -1,7 +1,7 @@ # Developer guide We target operating systems >= Android 5 Lollipop (API 21) -and >= iOS 11.0. (Details [here](architecture/platform-versions.md).) +and >= iOS 12.1. (Details [here](architecture/platform-versions.md).) ## Why React Native? diff --git a/ios/Podfile b/ios/Podfile index 2a81fe4902e..171e9cb7590 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,6 +1,6 @@ # This should match the iOS Deployment Target # (project > ZulipMobile > Info in Xcode) -platform :ios, '11.0' +platform :ios, '12.1' require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' diff --git a/ios/Podfile.lock b/ios/Podfile.lock index c271aa7fe7c..d8ebea7620f 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -721,6 +721,6 @@ SPEC CHECKSUMS: Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 0eb2bf1b0f7972fc7183f5eac73708f76355c614 +PODFILE CHECKSUM: 46ba24e5bbaf52d511ae0e860a6c332e11c21c0b COCOAPODS: 1.10.1 diff --git a/ios/ZulipMobile.xcodeproj/project.pbxproj b/ios/ZulipMobile.xcodeproj/project.pbxproj index 837d8bc8f87..34a2829d9c8 100644 --- a/ios/ZulipMobile.xcodeproj/project.pbxproj +++ b/ios/ZulipMobile.xcodeproj/project.pbxproj @@ -491,7 +491,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ""; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.1; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", @@ -546,7 +546,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ""; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.1; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", diff --git a/src/webview/js/js.js b/src/webview/js/js.js index 207c915e04f..7a2d7ddb0c7 100644 --- a/src/webview/js/js.js +++ b/src/webview/js/js.js @@ -21,8 +21,8 @@ import { toggleSpoiler } from './spoilers'; * * * (When updating these, be sure to update tools/generate-webview-js too.) * - * * We support iOS 11. So this code needs to work on Mobile Safari 11. - * Graceful degradation is acceptable below iOS 13 / Mobile Safari 13. + * * We support iOS 12. So this code needs to work on Mobile Safari 12. + * Graceful degradation is acceptable below iOS 14 / Mobile Safari 14. * * * For Android, core functionality needs to work on Chrome 44. * Graceful degradation is acceptable below Chrome 74. diff --git a/tools/generate-webview-js b/tools/generate-webview-js index 95a144dd148..6bfa36c56a3 100755 --- a/tools/generate-webview-js +++ b/tools/generate-webview-js @@ -43,7 +43,7 @@ const targetPlatforms = { // Babel does distinguish `safari` (meaning on macOS, I guess) from `ios`. // Some features arrive in e.g. "safari 11.1" but "ios 11.3", or in // 13.1 vs 13.4, so the distinction is still relevant. - ios: 11, + ios: 12, }; // Disable the default react-native transformations.