Skip to content

Commit 98819b2

Browse files
authored
fix: Support V9 in SampleShared (#5663)
1 parent 9e0030e commit 98819b2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Samples/SentrySampleShared/SentrySampleShared.xcconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ PROVISIONING_PROFILE_SPECIFIER =
3232
DEVELOPMENT_TEAM =
3333

3434
TARGETED_DEVICE_FAMILY = 1,2,3,4,7
35+
36+
SWIFT_ACTIVE_COMPILATION_CONDITIONS_V9 = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS) SDK_V9
37+
SWIFT_ACTIVE_COMPILATION_CONDITIONS_V = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS)
38+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS_V$(MAJOR_VERSION))
39+
40+
GCC_PREPROCESSOR_DEFINITIONS_V9 = $(GCC_PREPROCESSOR_DEFINITIONS) SDK_V9
41+
GCC_PREPROCESSOR_DEFINITIONS_V = $(GCC_PREPROCESSOR_DEFINITIONS)
42+
GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_V$(MAJOR_VERSION))

Samples/SentrySampleShared/SentrySampleShared/SentrySDKWrapper.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ public struct SentrySDKWrapper {
100100
options.enableUIViewControllerTracing = !SentrySDKOverrides.Performance.disableUIVCTracing.boolValue
101101
options.attachScreenshot = !SentrySDKOverrides.Other.disableAttachScreenshot.boolValue
102102
options.attachViewHierarchy = !SentrySDKOverrides.Other.disableAttachViewHierarchy.boolValue
103+
#if !SDK_V9
103104
options.enableAppHangTrackingV2 = !SentrySDKOverrides.Performance.disableAppHangTrackingV2.boolValue
105+
#endif // SDK_V9
104106
#endif // !os(macOS) && !os(watchOS)
105107

106108
// disable during benchmarks because we run CPU for 15 seconds at full throttle which can trigger ANRs

0 commit comments

Comments
 (0)