Skip to content

Commit fac9f3f

Browse files
authored
Update AppAuth dependency to 2.0.0. (#262)
1 parent ed0c94d commit fac9f3f

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -244,7 +244,7 @@
244244
"../Source/**",
245245
../../../../../,
246246
);
247-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
247+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
248248
MTL_ENABLE_DEBUG_INFO = YES;
249249
ONLY_ACTIVE_ARCH = YES;
250250
SDKROOT = iphoneos;
@@ -287,7 +287,7 @@
287287
"../Source/**",
288288
../../../../../,
289289
);
290-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
290+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
291291
MTL_ENABLE_DEBUG_INFO = NO;
292292
SDKROOT = iphoneos;
293293
TARGETED_DEVICE_FAMILY = "1,2";
@@ -300,7 +300,7 @@
300300
buildSettings = {
301301
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
302302
INFOPLIST_FILE = Source/Info.plist;
303-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
303+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
304304
LD_RUNPATH_SEARCH_PATHS = (
305305
"$(inherited)",
306306
"@executable_path/Frameworks",
@@ -319,7 +319,7 @@
319319
buildSettings = {
320320
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
321321
INFOPLIST_FILE = Source/Info.plist;
322-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
322+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
323323
LD_RUNPATH_SEARCH_PATHS = (
324324
"$(inherited)",
325325
"@executable_path/Frameworks",
@@ -362,7 +362,7 @@
362362
repositoryURL = "https://github.com/openid/AppAuth-iOS.git";
363363
requirement = {
364364
kind = upToNextMajorVersion;
365-
minimumVersion = 1.0.0;
365+
minimumVersion = 2.0.0;
366366
};
367367
};
368368
C1B5D3602825A4900068D12B /* XCRemoteSwiftPackageReference "gtm-session-fetcher" */ = {

Examples/Example-iOS/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :ios, '10.0'
1+
platform :ios, '12.0'
22

33
target 'Example-iOSForPod' do
44
use_frameworks!
@@ -10,6 +10,6 @@ target 'Example-iOSForPod' do
1010
# In production, you would use:
1111
# pod 'GTMAppAuth'
1212

13-
pod 'AppAuth', '~> 1.7'
13+
pod 'AppAuth', '~> 2.0'
1414
pod 'GTMSessionFetcher/Core', '>= 3.3', '< 4.0'
1515
end

Examples/Example-macOS/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ target 'Example-macOSForPod' do
1010
# In production, you would use:
1111
# pod 'GTMAppAuth'
1212

13-
pod 'AppAuth', '~> 1.7'
13+
pod 'AppAuth', '~> 2.0'
1414
pod 'GTMSessionFetcher/Core', '>= 3.3', '< 4.0'
1515
end

GTMAppAuth.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ requests with AppAuth.
2525
"GTMAppAuth_Privacy" => "GTMAppAuth/Sources/Resources/PrivacyInfo.xcprivacy"
2626
}
2727

28-
ios_deployment_target = '10.0'
28+
ios_deployment_target = '12.0'
2929
osx_deployment_target = '10.12'
3030
tvos_deployment_target = '10.0'
3131
watchos_deployment_target = '6.0'
@@ -36,7 +36,7 @@ requests with AppAuth.
3636

3737
s.framework = 'Security'
3838
s.dependency 'GTMSessionFetcher/Core', '>= 3.3', '< 4.0'
39-
s.dependency 'AppAuth/Core', '~> 1.7'
39+
s.dependency 'AppAuth/Core', '~> 2.0'
4040

4141
s.test_spec 'unit' do |unit_tests|
4242
unit_tests.platforms = {

GTMAppAuth/Sources/KeychainStore/KeychainStore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public final class KeychainStore: NSObject, AuthSessionStore {
137137
fromAuthSession authSession: AuthSession
138138
) throws -> Data {
139139
let keyedArchiver: NSKeyedArchiver
140-
if #available(iOS 11, macOS 10.13, tvOS 11.0, watchOS 4.0, *) {
140+
if #available(iOS 12, macOS 10.13, tvOS 11.0, watchOS 4.0, *) {
141141
keyedArchiver = NSKeyedArchiver(requiringSecureCoding: true)
142142
} else {
143143
keyedArchiver = NSKeyedArchiver()
@@ -170,7 +170,7 @@ public final class KeychainStore: NSObject, AuthSessionStore {
170170

171171
private func keyedUnarchiver(forData data: Data) throws -> NSKeyedUnarchiver {
172172
let keyedUnarchiver: NSKeyedUnarchiver
173-
if #available(iOS 11.0, macOS 10.13, watchOS 4.0, tvOS 11.0, *) {
173+
if #available(iOS 12.0, macOS 10.13, watchOS 4.0, tvOS 11.0, *) {
174174
keyedUnarchiver = try NSKeyedUnarchiver(forReadingFrom: data)
175175
keyedUnarchiver.requiresSecureCoding = true
176176
} else {

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let package = Package(
2121
name: "GTMAppAuth",
2222
platforms: [
2323
.macOS(.v10_12),
24-
.iOS(.v10),
24+
.iOS(.v12),
2525
.tvOS(.v10),
2626
.watchOS(.v6)
2727
],
@@ -33,7 +33,7 @@ let package = Package(
3333
],
3434
dependencies: [
3535
.package(url: "https://github.com/google/gtm-session-fetcher.git", "3.3.0" ..< "4.0.0"),
36-
.package(url: "https://github.com/openid/AppAuth-iOS.git", "1.7.0" ..< "2.0.0")
36+
.package(url: "https://github.com/openid/AppAuth-iOS.git", "2.0.0" ..< "3.0.0")
3737
],
3838
targets: [
3939
.target(

0 commit comments

Comments
 (0)