From 720779678ec34ec3e7773ca28019a8d7a0ef2c27 Mon Sep 17 00:00:00 2001 From: Dhiogo Brustolin Date: Mon, 29 Jan 2024 16:21:35 +0100 Subject: [PATCH] feat: Add visionOS as device family (#3548) Added visionOS as device family type. This will be used to filter events --- CHANGELOG.md | 1 + .../SentryCrash/Recording/Monitors/SentryCrashMonitor_System.m | 2 ++ Sources/SentryCrash/Recording/SentryCrashSystemCapabilities.h | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09e31a014d9..8d7ed09ca57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Features +- Add visionOS as device family (#3548) - Add VisionOS Support for Carthage (#3565) ### Fixes diff --git a/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_System.m b/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_System.m index c223b777624..7920ae04183 100644 --- a/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_System.m +++ b/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_System.m @@ -541,6 +541,8 @@ g_systemData.systemName = "macOS"; #elif SentryCrashCRASH_HOST_WATCH g_systemData.systemName = "watchOS"; +#elif SentryCrashCRASH_HOST_VISION + g_systemData.systemName = "visionOS"; #else g_systemData.systemName = "unknown"; #endif diff --git a/Sources/SentryCrash/Recording/SentryCrashSystemCapabilities.h b/Sources/SentryCrash/Recording/SentryCrashSystemCapabilities.h index bc5d54cdfa6..ad90dcf3de8 100644 --- a/Sources/SentryCrash/Recording/SentryCrashSystemCapabilities.h +++ b/Sources/SentryCrash/Recording/SentryCrashSystemCapabilities.h @@ -38,9 +38,10 @@ #define SentryCrashCRASH_HOST_IOS (SentryCrashCRASH_HOST_APPLE && TARGET_OS_IOS) #define SentryCrashCRASH_HOST_TV (SentryCrashCRASH_HOST_APPLE && TARGET_OS_TV) #define SentryCrashCRASH_HOST_WATCH (SentryCrashCRASH_HOST_APPLE && TARGET_OS_WATCH) +#define SentryCrashCRASH_HOST_VISION (SentryCrashCRASH_HOST_APPLE && TARGET_OS_VISION) #define SentryCrashCRASH_HOST_MAC \ (SentryCrashCRASH_HOST_APPLE && TARGET_OS_MAC \ - && !(TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH)) + && !(TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH || TARGET_OS_VISION)) #if SentryCrashCRASH_HOST_APPLE # define SentryCrashCRASH_CAN_GET_MAC_ADDRESS 1