diff --git a/CHANGELOG.md b/CHANGELOG.md index aaecd092a..dc2b3afa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ _None._ - Made `LoginFieldsMeta` `internal`, forwarding the few properties read by clients to `LoginFields` [#778] - Restructured `SocialService` into `SocialUser`, removing the `SocialServiceName` `SocialService` `enum` cases duplicity [#778] - Made `presentSignupEpilogue` in `WordPressAuthenticatorDelegateProtocol` use `SocialUser` instead of `SocialService` [#778] +- Bumped minimum iOS deployment target to iOS 15.0 [#780] ## 6.3.0 diff --git a/Podfile b/Podfile index 533b9ebf9..811fa4e06 100644 --- a/Podfile +++ b/Podfile @@ -5,7 +5,7 @@ source 'https://cdn.cocoapods.org/' inhibit_all_warnings! use_frameworks! -ios_deployment_target = Gem::Version.new('13.0') +ios_deployment_target = Gem::Version.new('15.0') platform :ios, ios_deployment_target diff --git a/Podfile.lock b/Podfile.lock index 5e1d57911..6a3d295e8 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -71,12 +71,12 @@ SPEC CHECKSUMS: SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6 SwiftLint: 32ee33ded0636d0905ef6911b2b67bbaeeedafa5 UIDeviceIdentifier: f33af270ba9045ea18b31d9aab88e42a0082ea67 - WordPressAuthenticator: 31b2b358ec1b5c724998f3944b20c29be9be1c95 + WordPressAuthenticator: 3ad9a6f4d8c0fafaf8eed36e02d71519e6e5a211 WordPressKit: 8e1c5a64645a59493a7316f38468ac036de9c79b WordPressShared: 0aa459e5257a77184db87805a998f447443c9706 WordPressUI: 1cf47a3b78154faf69caa18569ee7ece1e510fa0 wpxmlrpc: 68db063041e85d186db21f674adf08d9c70627fd -PODFILE CHECKSUM: 39d49f77667f2645b9a7575b7288487421a70c5d +PODFILE CHECKSUM: eede8e188c39082e7084b92a2aa630faeb6619a4 COCOAPODS: 1.11.3 diff --git a/WordPressAuthenticator.podspec b/WordPressAuthenticator.podspec index d9b9cf888..b604a5153 100644 --- a/WordPressAuthenticator.podspec +++ b/WordPressAuthenticator.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| s.license = { type: 'GPLv2', file: 'LICENSE' } s.author = { 'The WordPress Mobile Team' => 'mobile@wordpress.org' } - s.platform = :ios, '13.0' + s.platform = :ios, '15.0' s.swift_version = '5.0' s.source = { git: 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', diff --git a/WordPressAuthenticator.xcodeproj/project.pbxproj b/WordPressAuthenticator.xcodeproj/project.pbxproj index 06335e4bf..0bf9ce8eb 100644 --- a/WordPressAuthenticator.xcodeproj/project.pbxproj +++ b/WordPressAuthenticator.xcodeproj/project.pbxproj @@ -1663,7 +1663,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -1721,7 +1721,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -1879,7 +1879,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; @@ -1987,7 +1987,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/WordPressAuthenticator/Extensions/UIPasteboard+Detect.swift b/WordPressAuthenticator/Extensions/UIPasteboard+Detect.swift index b8cb4b5ec..7317b3a50 100644 --- a/WordPressAuthenticator/Extensions/UIPasteboard+Detect.swift +++ b/WordPressAuthenticator/Extensions/UIPasteboard+Detect.swift @@ -1,10 +1,10 @@ extension UIPasteboard { - /// Detects patterns and values from the UIPasteboard. This will not trigger the pasteboard alert in iOS 14. + /// Detects patterns and values from the `UIPasteboard`. + /// /// - Parameters: /// - patterns: The patterns to detect. /// - completion: Called with the patterns and values if any were detected, otherwise contains the errors from UIPasteboard. - @available(iOS 14.0, *) func detect(patterns: Set, completion: @escaping (Result<[UIPasteboard.DetectionPattern: Any], Error>) -> Void) { UIPasteboard.general.detectPatterns(for: patterns) { result in switch result { @@ -30,7 +30,6 @@ extension UIPasteboard { /// Expects to run on main thread. /// - Parameters: /// - completion: Called with a length digit authentication code on success - @available(iOS 14.0, *) public func detectAuthenticatorCode(length: Int = 6, completion: @escaping (Result) -> Void) { UIPasteboard.general.detect(patterns: [.number]) { result in switch result {