Skip to content

Commit 55f71a4

Browse files
committed
Merge branch 'armcknight/test/share-sdk-overrides' into armcknight/test/restart-sdk-on-reconfig
2 parents 0d5ff59 + b0301ef commit 55f71a4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Samples/SentrySampleShared/SentrySampleShared/SentrySDKWrapper.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public struct SentrySDKWrapper {
3939
options.beforeCaptureViewHierarchy = { _ in true }
4040
options.debug = true
4141

42-
#if !os(macOS) && !os(watchOS)
42+
#if !os(macOS) && !os(watchOS) && !os(visionOS)
4343
if #available(iOS 16.0, *), !SentrySDKOverrides.Other.disableSessionReplay.boolValue {
4444
options.sessionReplay = SentryReplayOptions(
4545
sessionSampleRate: 0,
@@ -59,7 +59,7 @@ public struct SentrySDKWrapper {
5959
options.enableMetricKitRawPayload = true
6060
}
6161
#endif // !os(tvOS)
62-
#endif // !os(macOS) && !os(watchOS)
62+
#endif // !os(macOS) && !os(watchOS) && !os(visionOS)
6363

6464
options.tracesSampleRate = 1
6565
if let sampleRate = SentrySDKOverrides.Tracing.sampleRate.floatValue {
@@ -71,9 +71,9 @@ public struct SentrySDKWrapper {
7171
}
7272
}
7373

74-
#if !os(tvOS) && !os(watchOS)
74+
#if !os(tvOS) && !os(watchOS) && !os(visionOS)
7575
configureProfiling(options)
76-
#endif // !os(tvOS) && !os(watchOS)
76+
#endif // !os(tvOS) && !os(watchOS) && !os(visionOS)
7777

7878
options.enableAutoSessionTracking = !SentrySDKOverrides.Performance.disableSessionTracking.boolValue
7979
if let sessionTrackingIntervalMillis = env["--io.sentry.sessionTrackingIntervalMillis"] {
@@ -129,11 +129,11 @@ public struct SentrySDKWrapper {
129129

130130
options.initialScope = configureInitialScope(scope:)
131131

132-
#if !os(macOS) && !os(tvOS) && !os(watchOS)
132+
#if !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
133133
if #available(iOS 13.0, *) {
134134
options.configureUserFeedback = configureFeedback(config:)
135135
}
136-
#endif // !os(macOS) && !os(tvOS) && !os(watchOS)
136+
#endif // !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
137137

138138
// Experimental features
139139
options.experimental.enableFileManagerSwizzling = !SentrySDKOverrides.Other.disableFileManagerSwizzling.boolValue
@@ -188,7 +188,7 @@ public struct SentrySDKWrapper {
188188
}
189189
}
190190

191-
#if !os(macOS) && !os(tvOS) && !os(watchOS)
191+
#if !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
192192
// MARK: User feedback configuration
193193
@available(iOS 13.0, *)
194194
extension SentrySDKWrapper {
@@ -377,7 +377,7 @@ extension SentrySDKWrapper {
377377
}
378378
}
379379
}
380-
#endif // !os(macOS) && !os(tvOS) && !os(watchOS)
380+
#endif // !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
381381

382382
// MARK: Convenience access to SDK configuration via launch arg / environment variable
383383
extension SentrySDKWrapper {
@@ -412,7 +412,7 @@ extension SentrySDKWrapper {
412412
}
413413

414414
// MARK: Profiling configuration
415-
#if !os(tvOS) && !os(watchOS)
415+
#if !os(tvOS) && !os(watchOS) && !os(visionOS)
416416
extension SentrySDKWrapper {
417417
func configureProfiling(_ options: Options) {
418418
if let sampleRate = SentrySDKOverrides.Profiling.sampleRate.floatValue {
@@ -434,6 +434,6 @@ extension SentrySDKWrapper {
434434
}
435435
}
436436
}
437-
#endif // !os(tvOS) && !os(watchOS)
437+
#endif // !os(tvOS) && !os(watchOS) && !os(visionOS)
438438

439439
// swiftlint:enable file_length function_body_length

0 commit comments

Comments
 (0)