Skip to content

Commit 3995b43

Browse files
authored
Update to TARGET_OS_VISION (#11692)
1 parent 7963cec commit 3995b43

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

FirebaseAuth/Sources/Auth/FIRAuth.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ - (void)signInWithEmail:(NSString *)email
745745
callback(nil, [FIRAuthErrorUtils wrongPasswordErrorWithMessage:nil]);
746746
return;
747747
}
748-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
748+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
749749
if ([[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
750750
enablementStatusForProvider:FIRAuthRecaptchaProviderPassword]) {
751751
[[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
@@ -1388,7 +1388,7 @@ - (void)sendPasswordResetWithNullableActionCodeSettings:
13881388
passwordResetRequestWithEmail:email
13891389
actionCodeSettings:actionCodeSettings
13901390
requestConfiguration:self->_requestConfiguration];
1391-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
1391+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
13921392
if ([[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
13931393
enablementStatusForProvider:FIRAuthRecaptchaProviderPassword]) {
13941394
[[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
@@ -1487,7 +1487,7 @@ - (void)sendSignInLinkToEmail:(nonnull NSString *)email
14871487
[FIRGetOOBConfirmationCodeRequest signInWithEmailLinkRequest:email
14881488
actionCodeSettings:actionCodeSettings
14891489
requestConfiguration:self->_requestConfiguration];
1490-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
1490+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
14911491
if ([[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
14921492
enablementStatusForProvider:FIRAuthRecaptchaProviderPassword]) {
14931493
[[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
@@ -1785,7 +1785,7 @@ - (void)revokeTokenWithAuthorizationCode:(NSString *)authorizationCode
17851785
}];
17861786
}
17871787

1788-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
1788+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
17891789
- (void)initializeRecaptchaConfigWithCompletion:
17901790
(nullable void (^)(NSError *_Nullable error))completion {
17911791
[[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
@@ -2005,7 +2005,7 @@ - (void)internalCreateUserWithEmail:(NSString *)email
20052005
return;
20062006
}
20072007

2008-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
2008+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
20092009
if ([[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]
20102010
enablementStatusForProvider:FIRAuthRecaptchaProviderPassword]) {
20112011
[[FIRAuthRecaptchaVerifier sharedRecaptchaVerifier:self]

FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ NS_SWIFT_NAME(Auth)
858858
- (void)revokeTokenWithAuthorizationCode:(NSString *)authorizationCode
859859
completion:(nullable void (^)(NSError *_Nullable error))completion;
860860

861-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
861+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
862862
/** @fn initializeRecaptchaConfigWithCompletion:completion:
863863
@brief Initializes reCAPTCHA using the settings configured for the project or
864864
tenant.

FirebaseAuth/Sources/Utilities/FIRAuthRecaptchaVerifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#import <Foundation/Foundation.h>
1818

19-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
19+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
2020
#import <RecaptchaInterop/RCARecaptchaProtocol.h>
2121

2222
#import "FirebaseAuth/Sources/Backend/FIRIdentityToolkitRequest.h"

FirebaseAuth/Sources/Utilities/FIRAuthRecaptchaVerifier.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#import "FirebaseAuth/Sources/Utilities/FIRAuthRecaptchaVerifier.h"
1818

19-
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
19+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && (!defined(TARGET_OS_VISION) || !TARGET_OS_VISION)
2020

2121
#import "FirebaseAuth/Sources/Auth/FIRAuth_Internal.h"
2222
#import "FirebaseAuth/Sources/Backend/FIRAuthBackend.h"

0 commit comments

Comments
 (0)