diff --git a/FirebaseAuth/CHANGELOG.md b/FirebaseAuth/CHANGELOG.md index 4263cf06d7e..ff5e4e717f7 100644 --- a/FirebaseAuth/CHANGELOG.md +++ b/FirebaseAuth/CHANGELOG.md @@ -1,6 +1,9 @@ # Unreleased -- [removed] **Breaking Change**: Removed - `ActionCodeSettings.dynamicLinkDomain`. +- [removed] **Breaking Change**: Removed the following Dynamic Links related + APIs: + - `ActionCodeSettings.dynamicLinkDomain` + - `AuthErrorCode.dynamicLinkNotActivated` + - `AuthErrorCode.invalidDynamicLinkDomain` - [removed] **Breaking Change**: Remove deprecated Swift APIs using `String`-typed `productID`s that were in favor of API that leverages the `AuthProviderID` enum. Note, this only affects Swift clients. diff --git a/FirebaseAuth/Sources/Swift/Utilities/AuthErrorUtils.swift b/FirebaseAuth/Sources/Swift/Utilities/AuthErrorUtils.swift index 01ff6449b7f..5c78b223ab4 100644 --- a/FirebaseAuth/Sources/Swift/Utilities/AuthErrorUtils.swift +++ b/FirebaseAuth/Sources/Swift/Utilities/AuthErrorUtils.swift @@ -366,10 +366,6 @@ class AuthErrorUtils { error(code: .invalidProviderID, message: message) } - static func invalidDynamicLinkDomainError(message: String?) -> Error { - error(code: .invalidDynamicLinkDomain, message: message) - } - static func invalidHostingLinkDomainError(message: String?) -> Error { error(code: .invalidHostingLinkDomain, message: message) } diff --git a/FirebaseAuth/Sources/Swift/Utilities/AuthErrors.swift b/FirebaseAuth/Sources/Swift/Utilities/AuthErrors.swift index 4e97f492866..dde29c11ab3 100644 --- a/FirebaseAuth/Sources/Swift/Utilities/AuthErrors.swift +++ b/FirebaseAuth/Sources/Swift/Utilities/AuthErrors.swift @@ -240,9 +240,6 @@ import Foundation /// user was provided. case nullUser = 17067 - /// Indicates that a Firebase Dynamic Link is not activated. - case dynamicLinkNotActivated = 17068 - /// Represents the error code for when the given provider id for a web operation is invalid. case invalidProviderID = 17071 @@ -254,10 +251,6 @@ import Foundation /// ID for an operation that does not support multi-tenancy. case unsupportedTenantOperation = 17073 - /// Indicates that the Firebase Dynamic Link domain used is either not configured or is - /// unauthorized for the current project. - case invalidDynamicLinkDomain = 17074 - /// Indicates that the provided Firebase Hosting Link domain is not owned by the current project. case invalidHostingLinkDomain = 17214 @@ -469,8 +462,6 @@ import Foundation return kErrorNullUser case .invalidProviderID: return kErrorInvalidProviderID - case .invalidDynamicLinkDomain: - return kErrorInvalidDynamicLinkDomain case .invalidHostingLinkDomain: return kErrorInvalidHostingLinkDomain case .webInternalError: @@ -505,8 +496,6 @@ import Foundation return FIRAuthErrorMessageUnsupportedFirstFactor case .emailChangeNeedsVerification: return FIRAuthErrorMessageEmailChangeNeedsVerification - case .dynamicLinkNotActivated: - return kErrorDynamicLinkNotActivated case .rejectedCredential: return kErrorRejectedCredential case .missingOrInvalidNonce: @@ -664,8 +653,6 @@ import Foundation return "ERROR_NULL_USER" case .invalidProviderID: return "ERROR_INVALID_PROVIDER_ID" - case .invalidDynamicLinkDomain: - return "ERROR_INVALID_DYNAMIC_LINK_DOMAIN" case .invalidHostingLinkDomain: return "ERROR_INVALID_HOSTING_LINK_DOMAIN" case .webInternalError: @@ -700,8 +687,6 @@ import Foundation return "ERROR_UNSUPPORTED_FIRST_FACTOR" case .emailChangeNeedsVerification: return "ERROR_EMAIL_CHANGE_NEEDS_VERIFICATION" - case .dynamicLinkNotActivated: - return "ERROR_DYNAMIC_LINK_NOT_ACTIVATED" case .rejectedCredential: return "ERROR_REJECTED_CREDENTIAL" case .missingOrInvalidNonce: diff --git a/FirebaseAuth/Tests/Unit/ObjCAPITests.m b/FirebaseAuth/Tests/Unit/ObjCAPITests.m index ed664c45e09..6784beb8548 100644 --- a/FirebaseAuth/Tests/Unit/ObjCAPITests.m +++ b/FirebaseAuth/Tests/Unit/ObjCAPITests.m @@ -275,11 +275,9 @@ - (void)FIRAuthErrors_h { c = FIRAuthErrorCodeWebSignInUserInteractionFailure; c = FIRAuthErrorCodeLocalPlayerNotAuthenticated; c = FIRAuthErrorCodeNullUser; - c = FIRAuthErrorCodeDynamicLinkNotActivated; c = FIRAuthErrorCodeInvalidProviderID; c = FIRAuthErrorCodeTenantIDMismatch; c = FIRAuthErrorCodeUnsupportedTenantOperation; - c = FIRAuthErrorCodeInvalidDynamicLinkDomain; c = FIRAuthErrorCodeInvalidHostingLinkDomain; c = FIRAuthErrorCodeRejectedCredential; c = FIRAuthErrorCodeGameKitNotLinked; diff --git a/FirebaseAuth/Tests/Unit/SwiftAPI.swift b/FirebaseAuth/Tests/Unit/SwiftAPI.swift index dec351aff3e..f39f188f9f1 100644 --- a/FirebaseAuth/Tests/Unit/SwiftAPI.swift +++ b/FirebaseAuth/Tests/Unit/SwiftAPI.swift @@ -273,11 +273,9 @@ class AuthAPI_hOnlyTests: XCTestCase { _ = AuthErrorCode.webSignInUserInteractionFailure _ = AuthErrorCode.localPlayerNotAuthenticated _ = AuthErrorCode.nullUser - _ = AuthErrorCode.dynamicLinkNotActivated _ = AuthErrorCode.invalidProviderID _ = AuthErrorCode.tenantIDMismatch _ = AuthErrorCode.unsupportedTenantOperation - _ = AuthErrorCode.invalidDynamicLinkDomain _ = AuthErrorCode.invalidHostingLinkDomain _ = AuthErrorCode.rejectedCredential _ = AuthErrorCode.gameKitNotLinked