Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump deployment target to iOS 15.0 #780

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.license = { type: 'GPLv2', file: 'LICENSE' }
s.author = { 'The WordPress Mobile Team' => '[email protected]' }

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',
Expand Down
8 changes: 4 additions & 4 deletions WordPressAuthenticator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
5 changes: 2 additions & 3 deletions WordPressAuthenticator/Extensions/UIPasteboard+Detect.swift
Original file line number Diff line number Diff line change
@@ -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<UIPasteboard.DetectionPattern>, completion: @escaping (Result<[UIPasteboard.DetectionPattern: Any], Error>) -> Void) {
UIPasteboard.general.detectPatterns(for: patterns) { result in
switch result {
Expand All @@ -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<String, Error>) -> Void) {
UIPasteboard.general.detect(patterns: [.number]) { result in
switch result {
Expand Down