Skip to content

Commit 93ab80c

Browse files
committed
disable app invites on tvos
FDL does not work on tvos. Do not use app invites on tvos.
1 parent bc4905d commit 93ab80c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

app/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ set(app_ios_SRCS
156156
src/invites/ios/invites_receiver_internal_ios.mm
157157
src/invites/ios/invites_ios_startup.mm
158158
src/uuid_ios_darwin.mm)
159+
if (PLATFORM STREQUAL TVOS)
160+
# TVOS does not have a web browser and does not support dynamic links.
161+
# Remove these files if we are building for TVOS.
162+
list(REMOVE_ITEM app_ios_SRCS
163+
src/invites/ios/invites_receiver_internal_ios.mm
164+
src/invites/ios/invites_ios_startup.mm)
165+
endif()
166+
159167
set(app_desktop_SRCS
160168
src/app_desktop.cc
161169
src/heartbeat_date_storage_desktop.cc

app/src/invites/invites_receiver_internal.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
#include "app/src/reference_counted_future_impl.h"
2727
#if FIREBASE_PLATFORM_ANDROID
2828
#include "app/src/invites/android/invites_receiver_internal_android.h"
29-
#elif FIREBASE_PLATFORM_IOS || FIREBASE_PLATFORM_TVOS
29+
#elif FIREBASE_PLATFORM_IOS
3030
#include "app/src/invites/ios/invites_receiver_internal_ios.h"
3131
#else
3232
#include "app/src/invites/stub/invites_receiver_internal_stub.h"
33-
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS, FIREBASE_PLATFORM_TVOS
33+
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS
3434

3535
namespace firebase {
3636
namespace invites {
@@ -55,11 +55,11 @@ InvitesReceiverInternal* InvitesReceiverInternal::CreateInstance(
5555
if (!receiver) {
5656
#if FIREBASE_PLATFORM_ANDROID
5757
receiver = new InvitesReceiverInternalAndroid(app);
58-
#elif FIREBASE_PLATFORM_IOS || FIREBASE_PLATFORM_TVOS
58+
#elif FIREBASE_PLATFORM_IOS
5959
receiver = new InvitesReceiverInternalIos(app);
6060
#else
6161
receiver = new InvitesReceiverInternalStub(app);
62-
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS, FIREBASE_PLATFORM_TVOS
62+
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS
6363
if (!receiver->initialized()) {
6464
delete receiver;
6565
return nullptr;

0 commit comments

Comments
 (0)