Skip to content

Commit 3de946b

Browse files
committed
feat(V9): Make SentrySerializable non-public in V9
1 parent e172fae commit 3de946b

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

Sources/Sentry/Public/Sentry.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[];
3737
# import <Sentry/SentrySampleDecision.h>
3838
# import <Sentry/SentrySamplingContext.h>
3939
# import <Sentry/SentryScope.h>
40-
# import <Sentry/SentrySerializable.h>
40+
# if !SDK_V9
41+
# import <Sentry/SentrySerializable.h>
42+
# endif
4143
# import <Sentry/SentrySpanContext.h>
4244
# import <Sentry/SentrySpanId.h>
4345
# import <Sentry/SentrySpanProtocol.h>

Sources/Sentry/Public/SentryWithoutUIKit.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[];
3838
# import <SentryWithoutUIKit/SentrySampleDecision.h>
3939
# import <SentryWithoutUIKit/SentrySamplingContext.h>
4040
# import <SentryWithoutUIKit/SentryScope.h>
41-
# import <SentryWithoutUIKit/SentrySerializable.h>
41+
# if !SDK_V9
42+
# import <SentryWithoutUIKit/SentrySerializable.h>
43+
# endif
4244
# import <SentryWithoutUIKit/SentrySpanContext.h>
4345
# import <SentryWithoutUIKit/SentrySpanId.h>
4446
# import <SentryWithoutUIKit/SentrySpanProtocol.h>

Sources/Sentry/include/SentrySpan.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ NS_ASSUME_NONNULL_BEGIN
1414
@class SentryFramesTracker;
1515
#endif // SENTRY_HAS_UIKIT
1616

17-
@interface SentrySpan : NSObject <SentrySpan, SentrySerializable>
17+
@interface SentrySpan : NSObject
18+
#if !SDK_V9
19+
<SentrySpan, SentrySerializable>
20+
#else
21+
<SentrySpan>
22+
#endif
1823
SENTRY_NO_INIT
1924

2025
/**

Sources/Swift/Integrations/SessionReplay/RRWeb/SentryRRWebEvent.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ enum SentryRRWebEventType: Int {
1010
}
1111

1212
@objc(SentryRRWebEvent)
13-
@_spi(Private) public protocol SentryRRWebEventProtocol: SentrySerializable {
13+
@_spi(Private) public protocol SentryRRWebEventProtocol {
14+
func serialize() -> [String: Any]
1415
}
1516

1617
@objcMembers

Sources/Swift/SentryAppState.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@_implementationOnly import _SentryPrivate
22
import Foundation
33

4-
@objcMembers @_spi(Private) public class SentryAppState: NSObject, SentrySerializable {
4+
@objcMembers @_spi(Private) public class SentryAppState: NSObject {
55

66
public private(set) var releaseName: String?
77
public private(set) var osVersion: String
@@ -129,4 +129,4 @@ import Foundation
129129

130130
return data
131131
}
132-
}
132+
}

0 commit comments

Comments
 (0)