Skip to content

Commit 65d9069

Browse files
committed
Remove deprecated in V9
1 parent bc564db commit 65d9069

File tree

22 files changed

+70
-8
lines changed

22 files changed

+70
-8
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

Sources/Configuration/DeploymentTargets.xcconfig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ WATCHOS_DEPLOYMENT_TARGET = $(WATCHOS_DEPLOYMENT_TARGET_V$(MAJOR_VERSION))
1919
TVOS_DEPLOYMENT_TARGET = $(TVOS_DEPLOYMENT_TARGET_V$(MAJOR_VERSION))
2020
XROS_DEPLOYMENT_TARGET = 1.0
2121

22-
GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) SDK_V$(MAJOR_VERSION)
23-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS) SDK_V$(MAJOR_VERSION)
22+
GCC_PREPROCESSOR_DEFINITIONS_V9 = $(GCC_PREPROCESSOR_DEFINITIONS) SDK_V$(MAJOR_VERSION)
23+
GCC_PREPROCESSOR_DEFINITIONS_V = $(GCC_PREPROCESSOR_DEFINITIONS)
24+
GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_V$(MAJOR_VERSION))
25+
26+
SWIFT_ACTIVE_COMPILATION_CONDITIONS_V9 = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS) SDK_V$(MAJOR_VERSION)
27+
SWIFT_ACTIVE_COMPILATION_CONDITIONS_V = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS)
28+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(SWIFT_ACTIVE_COMPILATION_CONDITIONS_V$(MAJOR_VERSION))

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
@@ -160,7 +160,7 @@ typedef NS_ENUM(NSInteger, SentryLogLevel) {
160160
kSentryLogLevelDebug,
161161
kSentryLogLevelVerbose
162162
};
163-
#endif
163+
#endif // !SDK_V9
164164

165165
/**
166166
* 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
@@ -575,6 +575,7 @@ - (void)captureEnvelope:(SentryEnvelope *)envelope
575575
[self.transportAdapter sendEnvelope:envelope];
576576
}
577577

578+
#if !SDK_V9
578579
- (void)captureUserFeedback:(SentryUserFeedback *)userFeedback
579580
{
580581
if ([self isDisabled]) {
@@ -589,6 +590,7 @@ - (void)captureUserFeedback:(SentryUserFeedback *)userFeedback
589590

590591
[self.transportAdapter sendUserFeedback:userFeedback];
591592
}
593+
#endif // !SDK_V9
592594

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

0 commit comments

Comments
 (0)