Skip to content

Commit 8e22e3a

Browse files
authored
Support swift 6 (#267)
1 parent 0353bbb commit 8e22e3a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

GTMAppAuth/Sources/KeychainStore/GTMOAuth2Compatibility.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public final class GTMOAuth2Compatibility: NSObject {
108108
return originalString.addingPercentEncoding(withAllowedCharacters: urlQueryCharacters)
109109
}
110110

111-
private static var googleAuthorizationURL = URL(string: "https://accounts.google.com/o/oauth2/v2/auth")!
111+
private static let googleAuthorizationURL = URL(string: "https://accounts.google.com/o/oauth2/v2/auth")!
112112
static let googleTokenURL = URL(string: "https://www.googleapis.com/oauth2/v4/token")!
113-
static var googleRevocationURL = URL(string: "https://accounts.google.com/o/oauth2/revoke")!
114-
static var googleUserInfoURL = URL(string: "https://www.googleapis.com/oauth2/v3/userinfo")!
113+
static let googleRevocationURL = URL(string: "https://accounts.google.com/o/oauth2/revoke")!
114+
static let googleUserInfoURL = URL(string: "https://www.googleapis.com/oauth2/v3/userinfo")!
115115
static var nativeClientRedirectURI: String {
116116
return oobString
117117
}

GTMAppAuth/Sources/KeychainStore/KeychainAttribute.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import Foundation
1818

1919
/// The Keychain attribute used to configure the way the keychain stores your items.
2020
@objc(GTMKeychainAttribute)
21-
public final class KeychainAttribute: NSObject {
21+
public final class KeychainAttribute: NSObject, Sendable {
2222
/// An enumeratiion listing the various attributes used to configure the Keychain.
23-
public enum Attribute {
23+
public enum Attribute: Sendable {
2424
/// Indicates whether to use the legacy file-based keychain on macOS.
2525
///
2626
/// This attribute will set `kSecUseDataProtectionKeychain` as `false` in the Keychain query.

0 commit comments

Comments
 (0)