@@ -469,9 +469,9 @@ - (instancetype)initWithApp:(FIRApp *)app {
469
469
appCheck: FIR_COMPONENT (FIRAppCheckInterop, app.container)];
470
470
if (self) {
471
471
_app = app;
472
- #if TARGET_OS_IOS
472
+ #if TARGET_OS_IOS && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
473
473
_authURLPresenter = [[FIRAuthURLPresenter alloc ] init ];
474
- #endif
474
+ #endif // TARGET_OS_IOS && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
475
475
}
476
476
return self;
477
477
}
@@ -648,7 +648,7 @@ - (nullable FIRUser *)currentUser {
648
648
- (void )signInWithProvider : (id <FIRFederatedAuthProvider>)provider
649
649
UIDelegate : (nullable id <FIRAuthUIDelegate>)UIDelegate
650
650
completion : (nullable FIRAuthDataResultCallback)completion {
651
- #if TARGET_OS_IOS
651
+ #if TARGET_OS_IOS && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
652
652
dispatch_async (FIRAuthGlobalWorkQueue (), ^{
653
653
FIRAuthDataResultCallback decoratedCallback =
654
654
[self signInFlowAuthDataResultCallbackByDecoratingCallback: completion];
@@ -665,7 +665,7 @@ - (void)signInWithProvider:(id<FIRFederatedAuthProvider>)provider
665
665
callback: decoratedCallback];
666
666
}];
667
667
});
668
- #endif // TARGET_OS_IOS
668
+ #endif // TARGET_OS_IOS && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
669
669
}
670
670
671
671
- (void )fetchSignInMethodsForEmail : (nonnull NSString *)email
@@ -1638,9 +1638,11 @@ - (BOOL)canHandleNotification:(NSDictionary *)userInfo {
1638
1638
1639
1639
- (BOOL )canHandleURL:(NSURL *)URL {
1640
1640
__block BOOL result = NO ;
1641
+ #if TARGET_OS_IOS && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
1641
1642
dispatch_sync (FIRAuthGlobalWorkQueue (), ^{
1642
1643
result = [self ->_authURLPresenter canHandleURL: URL];
1643
1644
});
1645
+ #endif // TARGET_OS_IOS && (!defined(TARGET_OS_XR) || !TARGET_OS_XR)
1644
1646
return result;
1645
1647
}
1646
1648
0 commit comments