Skip to content

Commit

Permalink
feat: Add visionOS as device family (#3548)
Browse files Browse the repository at this point in the history
Added visionOS as device family type. This will be used to filter events
  • Loading branch information
brustolin authored Jan 29, 2024
1 parent 30f8871 commit 7207796
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Features

- Add visionOS as device family (#3548)
- Add VisionOS Support for Carthage (#3565)

### Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7207796

Please sign in to comment.