File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -445,6 +445,7 @@ explicit PhoneAuthProviderData(FIRPhoneAuthProvider* objc_provider)
445
445
assert (auth_data);
446
446
ReferenceCountedFutureImpl& futures = auth_data->future_impl ;
447
447
const auto handle = futures.SafeAlloc <AuthResult>(kAuthFn_SignInWithProvider , AuthResult ());
448
+ #if FIREBASE_PLATFORM_IOS
448
449
FIROAuthProvider* ios_provider = (FIROAuthProvider*)[FIROAuthProvider
449
450
providerWithProviderID: @(provider_data_.provider_id.c_str ())
450
451
auth: AuthImpl (auth_data)];
@@ -465,6 +466,12 @@ explicit PhoneAuthProviderData(FIRPhoneAuthProvider* objc_provider)
465
466
AuthResult ());
466
467
return future;
467
468
}
469
+
470
+ #else // non-iOS Apple platforms (eg: tvOS)
471
+ Future<AuthResult> future = MakeFuture (&futures, handle);
472
+ futures.Complete (handle, kAuthErrorApiNotAvailable ,
473
+ " OAuth provider sign-in is not supported on non-iOS Apple platforms." );
474
+ #endif // FIREBASE_PLATFORM_IOS
468
475
}
469
476
470
477
Future<AuthResult> FederatedOAuthProvider::Link (AuthData* auth_data) {
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ if(NOT DEFINED DEPLOYMENT_TARGET)
257
257
set (DEPLOYMENT_TARGET "13.0" )
258
258
else ()
259
259
# Unless specified, SDK version 11.0 is used by default as minimum target version (iOS, tvOS).
260
- set (DEPLOYMENT_TARGET "11 .0" )
260
+ set (DEPLOYMENT_TARGET "13 .0" )
261
261
endif ()
262
262
message (STATUS "[DEFAULTS] Using the default min-version since DEPLOYMENT_TARGET not provided!" )
263
263
elseif (DEFINED DEPLOYMENT_TARGET AND PLATFORM STREQUAL "MAC_CATALYST" AND ${DEPLOYMENT_TARGET} VERSION_LESS "13.0" )
You can’t perform that action at this time.
0 commit comments