Skip to content

Commit 2536254

Browse files
committed
Remove deprecated in V9
1 parent dc73467 commit 2536254

File tree

21 files changed

+59
-7
lines changed

21 files changed

+59
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ jobs:
9898
- run: rm -r Sentry.xcodeproj && rm -r Sentry.xcworkspace && EXPERIMENTAL_SPM_BUILDS=1 xcodebuild build -scheme SentrySPM -sdk watchos -destination 'generic/platform=watchOS'
9999
shell: sh
100100

101+
build-v9:
102+
name: Build SDK v9
103+
runs-on: macos-15
104+
steps:
105+
- uses: actions/checkout@v4
106+
- run: ./scripts/sentry-xcodebuild.sh --platform iOS --os latest --device "iPhone 16" --command build --configuration DebugV9
107+
101108
check-debug-without-UIKit:
102109
name: Check no UIKit linkage (DebugWithoutUIKit)
103110
runs-on: macos-13

Sentry.xcodeproj/xcshareddata/xcschemes/Sentry.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
</Testables>
148148
</TestAction>
149149
<LaunchAction
150-
buildConfiguration = "Debug"
150+
buildConfiguration = "DebugV9"
151151
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
152152
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
153153
launchStyle = "0"

Sources/Configuration/Sentry.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ SENTRY_WITHOUT_UIKIT_MODULE_NAME = SentryWithoutUIKit
1010
HEADER_SEARCH_PATHS = $(SRCROOT)/Sources/Sentry/include/**
1111

1212
PRODUCT_MODULE_NAME_Debug = $(SENTRY_MODULE_NAME)
13+
PRODUCT_MODULE_NAME_DebugV9 = $(SENTRY_MODULE_NAME)
1314
PRODUCT_MODULE_NAME_DebugWithoutUIKit = $(SENTRY_WITHOUT_UIKIT_MODULE_NAME)
1415
PRODUCT_MODULE_NAME_Test = $(SENTRY_MODULE_NAME)
1516
PRODUCT_MODULE_NAME_TestCI = $(SENTRY_MODULE_NAME)

Sources/Sentry/Public/SentryClient.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ SENTRY_NO_INIT
9595
- (SentryId *)captureMessage:(NSString *)message
9696
withScope:(SentryScope *)scope NS_SWIFT_NAME(capture(message:scope:));
9797

98+
#if !SDK_V9
9899
/**
99100
* Captures a manually created user feedback and sends it to Sentry.
100101
* @param userFeedback The user feedback to send to Sentry.
@@ -103,6 +104,7 @@ SENTRY_NO_INIT
103104
- (void)captureUserFeedback:(SentryUserFeedback *)userFeedback
104105
NS_SWIFT_NAME(capture(userFeedback:))
105106
DEPRECATED_MSG_ATTRIBUTE("Use -[SentryClient captureFeedback:withScope:].");
107+
#endif // !SDK_V9
106108

107109
/**
108110
* Captures a new-style user feedback and sends it to Sentry.

Sources/Sentry/Public/SentryDefines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ typedef NS_ENUM(NSInteger, SentryLogLevel) {
181181
kSentryLogLevelDebug,
182182
kSentryLogLevelVerbose
183183
};
184-
#endif
184+
#endif // !SDK_V9
185185

186186
/**
187187
* Sentry level.

Sources/Sentry/Public/SentryDsn.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ NS_ASSUME_NONNULL_BEGIN
1111

1212
- (NSString *)getHash;
1313

14-
- (NSURL *)getStoreEndpoint;
14+
#if !SDK_v9
15+
- (NSURL *)getStoreEndpoint DEPRECATED_MSG_ATTRIBUTE("This endpoint is no longer used");
16+
#endif // !SDK_V9
1517
- (NSURL *)getEnvelopeEndpoint;
1618

1719
@end

Sources/Sentry/Public/SentryHub.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,15 @@ SENTRY_NO_INIT
173173
- (SentryId *)captureMessage:(NSString *)message
174174
withScope:(SentryScope *)scope NS_SWIFT_NAME(capture(message:scope:));
175175

176+
#if !SDK_V9
176177
/**
177178
* Captures a manually created user feedback and sends it to Sentry.
178179
* @param userFeedback The user feedback to send to Sentry.
179180
* @deprecated Use @c -[SentryHub @c captureFeedback:] .
180181
*/
181182
- (void)captureUserFeedback:(SentryUserFeedback *)userFeedback NS_SWIFT_NAME(capture(userFeedback:))
182183
DEPRECATED_MSG_ATTRIBUTE("Use -[SentryHub captureFeedback:].");
184+
#endif // !SDK_V9
183185

184186
/**
185187
* Captures a new-style user feedback and sends it to Sentry.

Sources/Sentry/Public/SentrySDK.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ SENTRY_NO_INIT
253253
withScopeBlock:(void (^)(SentryScope *scope))block
254254
NS_SWIFT_NAME(capture(message:block:));
255255

256+
#if !SDK_V9
256257
/**
257258
* Captures user feedback that was manually gathered and sends it to Sentry.
258259
* @param userFeedback The user feedback to send to Sentry.
@@ -263,6 +264,7 @@ SENTRY_NO_INIT
263264
NS_SWIFT_NAME(capture(userFeedback:)) DEPRECATED_MSG_ATTRIBUTE(
264265
"Use SentrySDK.captureFeedback or use or configure our new managed UX with "
265266
"SentryOptions.configureUserFeedback.");
267+
#endif // !SDK_V9
266268

267269
/**
268270
* Captures user feedback that was manually gathered and sends it to Sentry.

Sources/Sentry/Public/SentryScope.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ NS_SWIFT_NAME(Scope)
154154
*/
155155
- (void)clear;
156156

157+
#if !SDK_V9
157158
/**
158159
* Mutates the current transaction atomically.
159160
* @param callback the SentrySpanCallback.
@@ -163,6 +164,7 @@ NS_SWIFT_NAME(Scope)
163164
"This method was used to create an atomic block that could be used to mutate the current "
164165
"span. It is not atomic anymore and due to issues with memory safety in `NSBlock` it is "
165166
"now considered unsafe and deprecated. Use `span` instead.");
167+
#endif // !SDK_V9
166168

167169
/**
168170
* Returns the current span.

Sources/Sentry/SentryClient.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ - (void)captureEnvelope:(SentryEnvelope *)envelope
576576
[self.transportAdapter sendEnvelope:envelope];
577577
}
578578

579+
#if !SDK_V9
579580
- (void)captureUserFeedback:(SentryUserFeedback *)userFeedback
580581
{
581582
if ([self isDisabled]) {
@@ -590,6 +591,7 @@ - (void)captureUserFeedback:(SentryUserFeedback *)userFeedback
590591

591592
[self.transportAdapter sendUserFeedback:userFeedback];
592593
}
594+
#endif // !SDK_V9
593595

594596
- (void)captureFeedback:(SentryFeedback *)feedback withScope:(SentryScope *)scope
595597
{

0 commit comments

Comments
 (0)