Skip to content

Commit 02587a2

Browse files
committed
Merge branch 'armcknight/test/restart-sdk-on-reconfig' into armcknight/test/more-override-config
2 parents 760f8ac + 55f71a4 commit 02587a2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Samples/SentrySampleShared/SentrySampleShared/SentrySDKWrapper.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ public struct SentrySDKWrapper {
7575
}
7676
}
7777

78-
#if !os(tvOS) && !os(watchOS)
78+
#if !os(tvOS) && !os(watchOS) && !os(visionOS)
7979
configureProfiling(options)
80-
#endif // !os(tvOS) && !os(watchOS)
80+
#endif // !os(tvOS) && !os(watchOS) && !os(visionOS)
8181

8282
options.enableAutoSessionTracking = !SentrySDKOverrides.Performance.disableSessionTracking.boolValue
8383
if let sessionTrackingIntervalMillis = env["--io.sentry.sessionTrackingIntervalMillis"] {
@@ -133,11 +133,11 @@ public struct SentrySDKWrapper {
133133

134134
options.initialScope = configureInitialScope(scope:)
135135

136-
#if !os(macOS) && !os(tvOS) && !os(watchOS)
136+
#if !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
137137
if #available(iOS 13.0, *) {
138138
options.configureUserFeedback = configureFeedback(config:)
139139
}
140-
#endif // !os(macOS) && !os(tvOS) && !os(watchOS)
140+
#endif // !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
141141

142142
// Experimental features
143143
options.experimental.enableFileManagerSwizzling = !SentrySDKOverrides.Other.disableFileManagerSwizzling.boolValue
@@ -192,7 +192,7 @@ public struct SentrySDKWrapper {
192192
}
193193
}
194194

195-
#if !os(macOS) && !os(tvOS) && !os(watchOS)
195+
#if !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
196196
// MARK: User feedback configuration
197197
@available(iOS 13.0, *)
198198
extension SentrySDKWrapper {
@@ -381,7 +381,7 @@ extension SentrySDKWrapper {
381381
}
382382
}
383383
}
384-
#endif // !os(macOS) && !os(tvOS) && !os(watchOS)
384+
#endif // !os(macOS) && !os(tvOS) && !os(watchOS) && !os(visionOS)
385385

386386
// MARK: Convenience access to SDK configuration via launch arg / environment variable
387387
extension SentrySDKWrapper {
@@ -416,7 +416,7 @@ extension SentrySDKWrapper {
416416
}
417417

418418
// MARK: Profiling configuration
419-
#if !os(tvOS) && !os(watchOS)
419+
#if !os(tvOS) && !os(watchOS) && !os(visionOS)
420420
extension SentrySDKWrapper {
421421
func configureProfiling(_ options: Options) {
422422
if let sampleRate = SentrySDKOverrides.Profiling.sampleRate.floatValue {
@@ -438,6 +438,6 @@ extension SentrySDKWrapper {
438438
}
439439
}
440440
}
441-
#endif // !os(tvOS) && !os(watchOS)
441+
#endif // !os(tvOS) && !os(watchOS) && !os(visionOS)
442442

443443
// swiftlint:enable file_length function_body_length

0 commit comments

Comments
 (0)