diff --git a/FirebaseAuth/Sources/Swift/Auth/AuthDataResult.swift b/FirebaseAuth/Sources/Swift/Auth/AuthDataResult.swift index bd09c1ddac2..9d6dacd2687 100644 --- a/FirebaseAuth/Sources/Swift/Auth/AuthDataResult.swift +++ b/FirebaseAuth/Sources/Swift/Auth/AuthDataResult.swift @@ -54,7 +54,7 @@ extension AuthDataResult: NSSecureCoding {} private let kUserCodingKey = "user" private let kCredentialCodingKey = "credential" - public static var supportsSecureCoding = true + public static let supportsSecureCoding = true public func encode(with coder: NSCoder) { coder.encode(user, forKey: kUserCodingKey) diff --git a/FirebaseAuth/Sources/Swift/Auth/AuthTokenResult.swift b/FirebaseAuth/Sources/Swift/Auth/AuthTokenResult.swift index 19019b9d8a2..90be2649ef6 100644 --- a/FirebaseAuth/Sources/Swift/Auth/AuthTokenResult.swift +++ b/FirebaseAuth/Sources/Swift/Auth/AuthTokenResult.swift @@ -129,9 +129,7 @@ extension AuthTokenResult: NSSecureCoding {} private static let kTokenKey = "token" - public static var supportsSecureCoding: Bool { - return true - } + public static let supportsSecureCoding = true public func encode(with coder: NSCoder) { coder.encode(token, forKey: AuthTokenResult.kTokenKey) diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/EmailAuthProvider.swift b/FirebaseAuth/Sources/Swift/AuthProvider/EmailAuthProvider.swift index 0675f02f737..050dce30974 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/EmailAuthProvider.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/EmailAuthProvider.swift @@ -62,7 +62,7 @@ import Foundation // MARK: Secure Coding - static var supportsSecureCoding = true + static let supportsSecureCoding = true func encode(with coder: NSCoder) { coder.encode(email, forKey: "email") diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/FacebookAuthProvider.swift b/FirebaseAuth/Sources/Swift/AuthProvider/FacebookAuthProvider.swift index 9ffbec55dba..cc89e7b3394 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/FacebookAuthProvider.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/FacebookAuthProvider.swift @@ -48,7 +48,7 @@ import Foundation // MARK: Secure Coding - static var supportsSecureCoding = true + static let supportsSecureCoding = true func encode(with coder: NSCoder) { coder.encode(accessToken, forKey: "accessToken") diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/GameCenterAuthProvider.swift b/FirebaseAuth/Sources/Swift/AuthProvider/GameCenterAuthProvider.swift index aecab7ca77d..4560bad9aaf 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/GameCenterAuthProvider.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/GameCenterAuthProvider.swift @@ -163,7 +163,7 @@ // MARK: Secure Coding - static var supportsSecureCoding = true + static let supportsSecureCoding = true func encode(with coder: NSCoder) { coder.encode(playerID, forKey: "playerID") diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/GitHubAuthProvider.swift b/FirebaseAuth/Sources/Swift/AuthProvider/GitHubAuthProvider.swift index 4704e4fe014..801e63fa8ee 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/GitHubAuthProvider.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/GitHubAuthProvider.swift @@ -48,7 +48,7 @@ import Foundation // MARK: Secure Coding - public static var supportsSecureCoding = true + public static let supportsSecureCoding = true func encode(with coder: NSCoder) { coder.encode(token, forKey: "token") diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/GoogleAuthProvider.swift b/FirebaseAuth/Sources/Swift/AuthProvider/GoogleAuthProvider.swift index b4f3b806837..41f223b25dc 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/GoogleAuthProvider.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/GoogleAuthProvider.swift @@ -53,7 +53,7 @@ import Foundation // MARK: Secure Coding - static var supportsSecureCoding = true + static let supportsSecureCoding = true func encode(with coder: NSCoder) { coder.encode(idToken, forKey: "idToken") diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/OAuthCredential.swift b/FirebaseAuth/Sources/Swift/AuthProvider/OAuthCredential.swift index a7fc244e16e..920fd138af4 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/OAuthCredential.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/OAuthCredential.swift @@ -96,7 +96,7 @@ import Foundation // MARK: Secure Coding - public static var supportsSecureCoding: Bool = true + public static let supportsSecureCoding: Bool = true public func encode(with coder: NSCoder) { coder.encode(idToken, forKey: "IDToken") diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthCredential.swift b/FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthCredential.swift index 2b42df11e7d..49f643a34d1 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthCredential.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthCredential.swift @@ -39,7 +39,7 @@ import Foundation // MARK: Secure Coding - public static var supportsSecureCoding = true + public static let supportsSecureCoding = true public func encode(with coder: NSCoder) { switch credentialKind { diff --git a/FirebaseAuth/Sources/Swift/AuthProvider/TwitterAuthProvider.swift b/FirebaseAuth/Sources/Swift/AuthProvider/TwitterAuthProvider.swift index 177b08ed894..6364241188f 100644 --- a/FirebaseAuth/Sources/Swift/AuthProvider/TwitterAuthProvider.swift +++ b/FirebaseAuth/Sources/Swift/AuthProvider/TwitterAuthProvider.swift @@ -52,7 +52,7 @@ import Foundation // MARK: Secure Coding - static var supportsSecureCoding = true + static let supportsSecureCoding = true func encode(with coder: NSCoder) { coder.encode(token, forKey: "token") diff --git a/FirebaseAuth/Sources/Swift/MultiFactor/MultiFactor.swift b/FirebaseAuth/Sources/Swift/MultiFactor/MultiFactor.swift index 744dbb2750f..8920da00ad1 100644 --- a/FirebaseAuth/Sources/Swift/MultiFactor/MultiFactor.swift +++ b/FirebaseAuth/Sources/Swift/MultiFactor/MultiFactor.swift @@ -282,9 +282,7 @@ import Foundation private let kEnrolledFactorsCodingKey = "enrolledFactors" - public static var supportsSecureCoding: Bool { - true - } + public static let supportsSecureCoding = true public func encode(with coder: NSCoder) { coder.encode(enrolledFactors, forKey: kEnrolledFactorsCodingKey) diff --git a/FirebaseAuth/Sources/Swift/SystemService/AuthAppCredential.swift b/FirebaseAuth/Sources/Swift/SystemService/AuthAppCredential.swift index 39abc59e12f..beb0d15a7b1 100644 --- a/FirebaseAuth/Sources/Swift/SystemService/AuthAppCredential.swift +++ b/FirebaseAuth/Sources/Swift/SystemService/AuthAppCredential.swift @@ -38,9 +38,7 @@ class AuthAppCredential: NSObject, NSSecureCoding { private static let kReceiptKey = "receipt" private static let kSecretKey = "secret" - static var supportsSecureCoding: Bool { - true - } + static let supportsSecureCoding = true required convenience init?(coder: NSCoder) { guard let receipt = coder.decodeObject(of: NSString.self, diff --git a/FirebaseAuth/Sources/Swift/SystemService/SecureTokenService.swift b/FirebaseAuth/Sources/Swift/SystemService/SecureTokenService.swift index e06ef8eaf0f..dd9e6dbde13 100644 --- a/FirebaseAuth/Sources/Swift/SystemService/SecureTokenService.swift +++ b/FirebaseAuth/Sources/Swift/SystemService/SecureTokenService.swift @@ -164,9 +164,7 @@ class SecureTokenService: NSObject, NSSecureCoding { private static let kAccessTokenKey = "accessToken" private static let kAccessTokenExpirationDateKey = "accessTokenExpirationDate" - static var supportsSecureCoding: Bool { - true - } + static let supportsSecureCoding = true required convenience init?(coder: NSCoder) { guard let refreshToken = coder.decodeObject(of: [NSString.self], diff --git a/FirebaseAuth/Sources/Swift/User/AdditionalUserInfo.swift b/FirebaseAuth/Sources/Swift/User/AdditionalUserInfo.swift index ed6d3fd3a53..a72e0baef02 100644 --- a/FirebaseAuth/Sources/Swift/User/AdditionalUserInfo.swift +++ b/FirebaseAuth/Sources/Swift/User/AdditionalUserInfo.swift @@ -49,9 +49,7 @@ extension AdditionalUserInfo: NSSecureCoding {} private static let usernameCodingKey = "username" private static let newUserKey = "newUser" - public static var supportsSecureCoding: Bool { - return true - } + public static let supportsSecureCoding = true public required init?(coder aDecoder: NSCoder) { guard let providerID = aDecoder.decodeObject( diff --git a/FirebaseAuth/Sources/Swift/User/User.swift b/FirebaseAuth/Sources/Swift/User/User.swift index 35f64e65320..02cdeb8f979 100644 --- a/FirebaseAuth/Sources/Swift/User/User.swift +++ b/FirebaseAuth/Sources/Swift/User/User.swift @@ -1680,9 +1680,7 @@ extension User: NSSecureCoding {} private let kMultiFactorCodingKey = "multiFactor" private let kTenantIDCodingKey = "tenantID" - public static var supportsSecureCoding: Bool { - return true - } + public static let supportsSecureCoding = true public func encode(with coder: NSCoder) { coder.encode(uid, forKey: kUserIDCodingKey) diff --git a/FirebaseAuth/Sources/Swift/User/UserInfoImpl.swift b/FirebaseAuth/Sources/Swift/User/UserInfoImpl.swift index 63cc46d4696..6f19622ddcb 100644 --- a/FirebaseAuth/Sources/Swift/User/UserInfoImpl.swift +++ b/FirebaseAuth/Sources/Swift/User/UserInfoImpl.swift @@ -72,9 +72,7 @@ extension UserInfoImpl: NSSecureCoding {} private static let kEmailCodingKey = "email" private static let kPhoneNumberCodingKey = "phoneNumber" - static var supportsSecureCoding: Bool { - return true - } + static let supportsSecureCoding = true func encode(with coder: NSCoder) { coder.encode(providerID, forKey: UserInfoImpl.kProviderIDCodingKey) diff --git a/FirebaseAuth/Sources/Swift/User/UserMetadata.swift b/FirebaseAuth/Sources/Swift/User/UserMetadata.swift index b126350c449..fa014ac6161 100644 --- a/FirebaseAuth/Sources/Swift/User/UserMetadata.swift +++ b/FirebaseAuth/Sources/Swift/User/UserMetadata.swift @@ -36,9 +36,7 @@ extension UserMetadata: NSSecureCoding {} private static let kCreationDateCodingKey = "creationDate" private static let kLastSignInDateCodingKey = "lastSignInDate" - public static var supportsSecureCoding: Bool { - return true - } + public static let supportsSecureCoding = true public func encode(with coder: NSCoder) { coder.encode(creationDate, forKey: UserMetadata.kCreationDateCodingKey)