@@ -39,7 +39,7 @@ public struct SentrySDKWrapper {
39
39
options. beforeCaptureViewHierarchy = { _ in true }
40
40
options. debug = true
41
41
42
- #if !os(macOS) && !os(watchOS)
42
+ #if !os(macOS) && !os(watchOS) && !os(visionOS)
43
43
if #available( iOS 16 . 0 , * ) , !SentrySDKOverrides. Other. disableSessionReplay. boolValue {
44
44
options. sessionReplay = SentryReplayOptions (
45
45
sessionSampleRate: 0 ,
@@ -59,7 +59,7 @@ public struct SentrySDKWrapper {
59
59
options. enableMetricKitRawPayload = true
60
60
}
61
61
#endif // !os(tvOS)
62
- #endif // !os(macOS) && !os(watchOS)
62
+ #endif // !os(macOS) && !os(watchOS) && !os(visionOS)
63
63
64
64
options. tracesSampleRate = 1
65
65
if let sampleRate = SentrySDKOverrides . Tracing. sampleRate. floatValue {
@@ -71,9 +71,9 @@ public struct SentrySDKWrapper {
71
71
}
72
72
}
73
73
74
- #if !os(tvOS) && !os(watchOS)
74
+ #if !os(tvOS) && !os(watchOS) && !os(visionOS)
75
75
configureProfiling ( options)
76
- #endif // !os(tvOS) && !os(watchOS)
76
+ #endif // !os(tvOS) && !os(watchOS) && !os(visionOS)
77
77
78
78
options. enableAutoSessionTracking = !SentrySDKOverrides. Performance. disableSessionTracking. boolValue
79
79
if let sessionTrackingIntervalMillis = env [ " --io.sentry.sessionTrackingIntervalMillis " ] {
@@ -129,11 +129,11 @@ public struct SentrySDKWrapper {
129
129
130
130
options. initialScope = configureInitialScope ( scope: )
131
131
132
- #if !os(macOS) && !os(tvOS) && !os(watchOS)
132
+ #if !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
133
133
if #available( iOS 13 . 0 , * ) {
134
134
options. configureUserFeedback = configureFeedback ( config: )
135
135
}
136
- #endif // !os(macOS) && !os(tvOS) && !os(watchOS)
136
+ #endif // !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
137
137
138
138
// Experimental features
139
139
options. experimental. enableFileManagerSwizzling = !SentrySDKOverrides. Other. disableFileManagerSwizzling. boolValue
@@ -188,7 +188,7 @@ public struct SentrySDKWrapper {
188
188
}
189
189
}
190
190
191
- #if !os(macOS) && !os(tvOS) && !os(watchOS)
191
+ #if !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
192
192
// MARK: User feedback configuration
193
193
@available ( iOS 13 . 0 , * )
194
194
extension SentrySDKWrapper {
@@ -377,7 +377,7 @@ extension SentrySDKWrapper {
377
377
}
378
378
}
379
379
}
380
- #endif // !os(macOS) && !os(tvOS) && !os(watchOS)
380
+ #endif // !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
381
381
382
382
// MARK: Convenience access to SDK configuration via launch arg / environment variable
383
383
extension SentrySDKWrapper {
@@ -412,7 +412,7 @@ extension SentrySDKWrapper {
412
412
}
413
413
414
414
// MARK: Profiling configuration
415
- #if !os(tvOS) && !os(watchOS)
415
+ #if !os(tvOS) && !os(watchOS) && !os(visionOS)
416
416
extension SentrySDKWrapper {
417
417
func configureProfiling( _ options: Options ) {
418
418
if let sampleRate = SentrySDKOverrides . Profiling. sampleRate. floatValue {
@@ -434,6 +434,6 @@ extension SentrySDKWrapper {
434
434
}
435
435
}
436
436
}
437
- #endif // !os(tvOS) && !os(watchOS)
437
+ #endif // !os(tvOS) && !os(watchOS) && !os(visionOS)
438
438
439
439
// swiftlint:enable file_length function_body_length
0 commit comments