From f98412e49d9508261f5b556e6fd63a4ba8d704f4 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Fri, 13 Oct 2023 11:14:06 -0400 Subject: [PATCH] [visionOS] Fix FirebaseInAppMessaging build on Xcode 15.1 beta 1 --- .../Sources/Analytics/FIRIAMAnalyticsEventLoggerImpl.m | 4 ++-- .../Sources/Analytics/FIRIAMClearcutHttpRequestSender.m | 4 ++-- .../Sources/Analytics/FIRIAMClearcutLogStorage.m | 4 ++-- .../Sources/Analytics/FIRIAMClearcutLogger.m | 4 ++-- .../Sources/Analytics/FIRIAMClearcutUploader.m | 4 ++-- .../Sources/Data/FIRIAMFetchResponseParser.m | 4 ++-- .../Sources/Data/FIRIAMMessageContentDataWithImageURL.m | 4 ++-- FirebaseInAppMessaging/Sources/Data/FIRIAMMessageDefinition.m | 4 ++-- .../Sources/Data/FIRIAMRenderingEffectSetting.m | 4 ++-- .../Sources/DisplayTrigger/FIRIAMDisplayTriggerDefinition.m | 4 ++-- FirebaseInAppMessaging/Sources/FIRCore+InAppMessaging.m | 4 ++-- FirebaseInAppMessaging/Sources/FIRInAppMessaging.m | 4 ++-- FirebaseInAppMessaging/Sources/Flows/FIRIAMActivityLogger.m | 4 ++-- FirebaseInAppMessaging/Sources/Flows/FIRIAMBookKeeper.m | 4 ++-- .../Sources/Flows/FIRIAMClientInfoFetcher.m | 4 ++-- .../Sources/Flows/FIRIAMDisplayCheckOnAnalyticEventsFlow.m | 4 ++-- .../Sources/Flows/FIRIAMDisplayCheckOnAppForegroundFlow.m | 4 ++-- .../Flows/FIRIAMDisplayCheckOnFetchDoneNotificationFlow.m | 4 ++-- .../Sources/Flows/FIRIAMDisplayCheckTriggerFlow.m | 4 ++-- FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m | 4 ++-- FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchFlow.m | 4 ++-- .../Sources/Flows/FIRIAMFetchOnAppForegroundFlow.m | 4 ++-- .../Sources/Flows/FIRIAMMessageClientCache.m | 4 ++-- .../Sources/Flows/FIRIAMMsgFetcherUsingRestful.m | 4 ++-- .../Sources/Flows/FIRIAMServerMsgFetchStorage.m | 4 ++-- .../RenderingObjects/FIRInAppMessagingRenderingDataClasses.m | 4 ++-- .../Sources/Runtime/FIRIAMActionURLFollower.m | 4 ++-- FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m | 4 ++-- FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKModeManager.m | 4 ++-- FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKSettings.m | 4 ++-- .../Sources/Runtime/FIRInAppMessaging+Bootstrap.m | 4 ++-- .../Sources/Util/FIRIAMElapsedTimeTracker.m | 4 ++-- FirebaseInAppMessaging/Sources/Util/FIRIAMTimeFetcher.m | 4 ++-- .../Sources/Util/NSString+FIRInterlaceStrings.m | 4 ++-- .../Sources/Util/UIApplication+FIRForegroundWindowScene.m | 4 ++-- FirebaseInAppMessaging/Sources/Util/UIColor+FIRIAMHexString.m | 4 ++-- SwiftPM-PlatformExclude/FirebaseInAppMessagingWrap/dummy.m | 4 ++-- 37 files changed, 74 insertions(+), 74 deletions(-) diff --git a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMAnalyticsEventLoggerImpl.m b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMAnalyticsEventLoggerImpl.m index 29b109507d2..7b23405e5c4 100644 --- a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMAnalyticsEventLoggerImpl.m +++ b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMAnalyticsEventLoggerImpl.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Analytics/FIRIAMAnalyticsEventLoggerImpl.h" @@ -174,4 +174,4 @@ - (void)logAnalyticsEventForType:(FIRIAMAnalyticsLogEventType)eventType } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutHttpRequestSender.m b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutHttpRequestSender.m index 290269985c9..881621eb258 100644 --- a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutHttpRequestSender.m +++ b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutHttpRequestSender.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -204,4 +204,4 @@ - (void)sendClearcutHttpRequestForLogs:(NSArray *)log } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogStorage.m b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogStorage.m index 24abd369913..1d94a2de83b 100644 --- a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogStorage.m +++ b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogStorage.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import @@ -209,4 +209,4 @@ - (BOOL)saveIntoCacheWithPath:(NSString *)cacheFilePath { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogger.m b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogger.m index e5bee96f90e..ea00175ebd0 100644 --- a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogger.m +++ b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogger.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -214,4 +214,4 @@ - (void)logAnalyticsEventForType:(FIRIAMAnalyticsLogEventType)eventType } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutUploader.m b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutUploader.m index fea1a08c6eb..663a8785d2b 100644 --- a/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutUploader.m +++ b/FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutUploader.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -245,4 +245,4 @@ - (void)scheduleNextSend { @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Data/FIRIAMFetchResponseParser.m b/FirebaseInAppMessaging/Sources/Data/FIRIAMFetchResponseParser.m index 3b3024ae374..8a85321de6e 100644 --- a/FirebaseInAppMessaging/Sources/Data/FIRIAMFetchResponseParser.m +++ b/FirebaseInAppMessaging/Sources/Data/FIRIAMFetchResponseParser.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -399,4 +399,4 @@ - (NSString *)sanitizedURLStringFromString:(NSString *)string { @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageContentDataWithImageURL.m b/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageContentDataWithImageURL.m index cbb39ac07a9..081dc6fc1be 100644 --- a/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageContentDataWithImageURL.m +++ b/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageContentDataWithImageURL.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -206,4 +206,4 @@ - (void)fetchImageFromURL:(NSURL *)imageURL @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageDefinition.m b/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageDefinition.m index 85ddc76fce7..fb564630bca 100644 --- a/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageDefinition.m +++ b/FirebaseInAppMessaging/Sources/Data/FIRIAMMessageDefinition.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Data/FIRIAMMessageDefinition.h" @@ -109,4 +109,4 @@ - (BOOL)messageHasStarted { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Data/FIRIAMRenderingEffectSetting.m b/FirebaseInAppMessaging/Sources/Data/FIRIAMRenderingEffectSetting.m index 0257908512c..eeefee2d24e 100644 --- a/FirebaseInAppMessaging/Sources/Data/FIRIAMRenderingEffectSetting.m +++ b/FirebaseInAppMessaging/Sources/Data/FIRIAMRenderingEffectSetting.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Data/FIRIAMRenderingEffectSetting.h" @@ -34,4 +34,4 @@ + (instancetype)getDefaultRenderingEffectSetting { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/DisplayTrigger/FIRIAMDisplayTriggerDefinition.m b/FirebaseInAppMessaging/Sources/DisplayTrigger/FIRIAMDisplayTriggerDefinition.m index a269d4be717..766ec4cc4cf 100644 --- a/FirebaseInAppMessaging/Sources/DisplayTrigger/FIRIAMDisplayTriggerDefinition.m +++ b/FirebaseInAppMessaging/Sources/DisplayTrigger/FIRIAMDisplayTriggerDefinition.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/DisplayTrigger/FIRIAMDisplayTriggerDefinition.h" @@ -43,4 +43,4 @@ - (instancetype)initWithFirebaseAnalyticEvent:(NSString *)title { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/FIRCore+InAppMessaging.m b/FirebaseInAppMessaging/Sources/FIRCore+InAppMessaging.m index 99edd8a5ee2..58c3a741cc3 100644 --- a/FirebaseInAppMessaging/Sources/FIRCore+InAppMessaging.m +++ b/FirebaseInAppMessaging/Sources/FIRCore+InAppMessaging.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import #import "FirebaseInAppMessaging/Sources/FIRCore+InAppMessaging.h" @@ -23,4 +23,4 @@ NSString *const kFirebaseInAppMessagingErrorDomain = @"com.firebase.inappmessaging"; FIRLoggerService kFIRLoggerInAppMessaging = @"[FirebaseInAppMessaging]"; -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/FIRInAppMessaging.m b/FirebaseInAppMessaging/Sources/FIRInAppMessaging.m index a0a5d678d87..3f9595582ac 100644 --- a/FirebaseInAppMessaging/Sources/FIRInAppMessaging.m +++ b/FirebaseInAppMessaging/Sources/FIRInAppMessaging.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Public/FirebaseInAppMessaging/FIRInAppMessaging.h" @@ -145,4 +145,4 @@ - (void)triggerEvent:(NSString *)eventName { @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMActivityLogger.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMActivityLogger.m index 58d06bf1558..20862570659 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMActivityLogger.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMActivityLogger.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import @@ -245,4 +245,4 @@ - (void)addLogRecord:(FIRIAMActivityRecord *)newRecord { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMBookKeeper.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMBookKeeper.m index 941a18d305d..4bebe8fcc77 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMBookKeeper.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMBookKeeper.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -262,4 +262,4 @@ - (void)cleanupFetchRecords { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMClientInfoFetcher.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMClientInfoFetcher.m index f76e89cc5a8..7d32c188a02 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMClientInfoFetcher.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMClientInfoFetcher.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" #import "FirebaseInstallations/Source/Library/Private/FirebaseInstallationsInternal.h" @@ -133,4 +133,4 @@ - (NSString *)getIAMSDKVersion { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAnalyticEventsFlow.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAnalyticEventsFlow.m index 999de72d959..63e7651dc96 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAnalyticEventsFlow.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAnalyticEventsFlow.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" #import "Interop/Analytics/Public/FIRAnalyticsInterop.h" @@ -68,4 +68,4 @@ - (void)stop { @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAppForegroundFlow.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAppForegroundFlow.m index f7bf271c198..078b7d39706 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAppForegroundFlow.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAppForegroundFlow.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -67,4 +67,4 @@ - (void)dealloc { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnFetchDoneNotificationFlow.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnFetchDoneNotificationFlow.m index 27f7bf71e0e..45d4b39f563 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnFetchDoneNotificationFlow.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnFetchDoneNotificationFlow.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -64,4 +64,4 @@ - (void)dealloc { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckTriggerFlow.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckTriggerFlow.m index 38cb0e6601f..b7f3137ad18 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckTriggerFlow.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckTriggerFlow.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Flows/FIRIAMDisplayCheckTriggerFlow.h" @@ -34,4 +34,4 @@ - (void)stop { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m index 4fddc93183f..c4ec0def848 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -778,4 +778,4 @@ - (void)checkAndDisplayNextAppForegroundMessage { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchFlow.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchFlow.m index 0d0b8826604..38f8c181ffe 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchFlow.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchFlow.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -267,4 +267,4 @@ - (void)checkForAppLaunchMessage { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchOnAppForegroundFlow.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchOnAppForegroundFlow.m index c2c198efe32..0a217b1faa6 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchOnAppForegroundFlow.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchOnAppForegroundFlow.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -61,4 +61,4 @@ - (void)dealloc { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m index 96a72970721..7c4e4bcc3e1 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -236,4 +236,4 @@ - (void)loadMessageDataFromServerFetchStorage:(FIRIAMServerMsgFetchStorage *)fet } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMMsgFetcherUsingRestful.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMMsgFetcherUsingRestful.m index 83482ab4610..772148b6018 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMMsgFetcherUsingRestful.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMMsgFetcherUsingRestful.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -277,4 +277,4 @@ - (void)fetchMessagesWithImpressionList:(NSArray *)imp } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMServerMsgFetchStorage.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMServerMsgFetchStorage.m index 120b7ee01fc..713550f8685 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMServerMsgFetchStorage.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMServerMsgFetchStorage.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -66,4 +66,4 @@ - (void)readResponseDictionary:(void (^)(NSDictionary *response, BOOL success))c } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/RenderingObjects/FIRInAppMessagingRenderingDataClasses.m b/FirebaseInAppMessaging/Sources/RenderingObjects/FIRInAppMessagingRenderingDataClasses.m index 6106bc99f05..36d81939500 100644 --- a/FirebaseInAppMessaging/Sources/RenderingObjects/FIRInAppMessagingRenderingDataClasses.m +++ b/FirebaseInAppMessaging/Sources/RenderingObjects/FIRInAppMessagingRenderingDataClasses.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import @@ -371,4 +371,4 @@ - (instancetype)initWithActionText:(nullable NSString *)actionText @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMActionURLFollower.m b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMActionURLFollower.m index 07a063b6423..cbcae06e2cb 100644 --- a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMActionURLFollower.m +++ b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMActionURLFollower.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import #import @@ -227,4 +227,4 @@ + (BOOL)isHttpOrHttpsScheme:(NSURL *)url { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m index cb107327945..411b7eab5ea 100644 --- a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m +++ b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -444,4 +444,4 @@ - (void)internalStartRuntimeWithSDKSettings:(FIRIAMSDKSettings *)settings { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKModeManager.m b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKModeManager.m index bf2155bb394..f3005412691 100644 --- a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKModeManager.m +++ b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKModeManager.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseCore/Extension/FirebaseCoreInternal.h" @@ -115,4 +115,4 @@ - (FIRIAMSDKMode)currentMode { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKSettings.m b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKSettings.m index c542be9f1a6..eccb73beaea 100644 --- a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKSettings.m +++ b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMSDKSettings.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Runtime/FIRIAMSDKSettings.h" @@ -37,4 +37,4 @@ - (NSString *)description { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Runtime/FIRInAppMessaging+Bootstrap.m b/FirebaseInAppMessaging/Sources/Runtime/FIRInAppMessaging+Bootstrap.m index 7bc29c601ef..1d1c773bf54 100644 --- a/FirebaseInAppMessaging/Sources/Runtime/FIRInAppMessaging+Bootstrap.m +++ b/FirebaseInAppMessaging/Sources/Runtime/FIRInAppMessaging+Bootstrap.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Runtime/FIRInAppMessaging+Bootstrap.h" @@ -136,4 +136,4 @@ + (void)exitAppWithFatalError:(NSError *)error { @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Util/FIRIAMElapsedTimeTracker.m b/FirebaseInAppMessaging/Sources/Util/FIRIAMElapsedTimeTracker.m index 87617fb71f5..b299f17b3c7 100644 --- a/FirebaseInAppMessaging/Sources/Util/FIRIAMElapsedTimeTracker.m +++ b/FirebaseInAppMessaging/Sources/Util/FIRIAMElapsedTimeTracker.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Util/FIRIAMElapsedTimeTracker.h" @interface FIRIAMElapsedTimeTracker () @@ -58,4 +58,4 @@ - (instancetype)initWithTimeFetcher:(id)timeFetcher { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Util/FIRIAMTimeFetcher.m b/FirebaseInAppMessaging/Sources/Util/FIRIAMTimeFetcher.m index 310f207943c..c94798d87dd 100644 --- a/FirebaseInAppMessaging/Sources/Util/FIRIAMTimeFetcher.m +++ b/FirebaseInAppMessaging/Sources/Util/FIRIAMTimeFetcher.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Util/FIRIAMTimeFetcher.h" @@ -25,4 +25,4 @@ - (NSTimeInterval)currentTimestampInSeconds { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Util/NSString+FIRInterlaceStrings.m b/FirebaseInAppMessaging/Sources/Util/NSString+FIRInterlaceStrings.m index e3f21fe4952..ed2671daa9a 100644 --- a/FirebaseInAppMessaging/Sources/Util/NSString+FIRInterlaceStrings.m +++ b/FirebaseInAppMessaging/Sources/Util/NSString+FIRInterlaceStrings.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Util/NSString+FIRInterlaceStrings.h" @@ -44,4 +44,4 @@ + (NSString *)fir_interlaceString:(NSString *)stringOne withString:(NSString *)s @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Util/UIApplication+FIRForegroundWindowScene.m b/FirebaseInAppMessaging/Sources/Util/UIApplication+FIRForegroundWindowScene.m index 623187a2d79..ad0a5ec22c4 100644 --- a/FirebaseInAppMessaging/Sources/Util/UIApplication+FIRForegroundWindowScene.m +++ b/FirebaseInAppMessaging/Sources/Util/UIApplication+FIRForegroundWindowScene.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Private/Util/UIApplication+FIRForegroundWindowScene.h" @@ -37,4 +37,4 @@ - (nullable UIWindowScene *)fir_foregroundWindowScene { @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/FirebaseInAppMessaging/Sources/Util/UIColor+FIRIAMHexString.m b/FirebaseInAppMessaging/Sources/Util/UIColor+FIRIAMHexString.m index 77f40b5e68a..3374623070a 100644 --- a/FirebaseInAppMessaging/Sources/Util/UIColor+FIRIAMHexString.m +++ b/FirebaseInAppMessaging/Sources/Util/UIColor+FIRIAMHexString.m @@ -15,7 +15,7 @@ */ #import -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) #import "FirebaseInAppMessaging/Sources/Util/UIColor+FIRIAMHexString.h" @@ -41,4 +41,4 @@ + (UIColor *)firiam_colorWithHexString:(nullable NSString *)hexString { } @end -#endif // TARGET_OS_IOS || TARGET_OS_TV +#endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION) diff --git a/SwiftPM-PlatformExclude/FirebaseInAppMessagingWrap/dummy.m b/SwiftPM-PlatformExclude/FirebaseInAppMessagingWrap/dummy.m index 05fca658695..df4b2c913bd 100644 --- a/SwiftPM-PlatformExclude/FirebaseInAppMessagingWrap/dummy.m +++ b/SwiftPM-PlatformExclude/FirebaseInAppMessagingWrap/dummy.m @@ -13,6 +13,6 @@ // limitations under the License. #import -#if !(TARGET_OS_IOS || TARGET_OS_TV) -#warning "Firebase In App Messaging only supports the iOS and tvOS platforms." +#if !(TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION)) +#warning "Firebase In App Messaging only supports the iOS, tvOS and visionOS platforms." #endif