Skip to content

Commit 7587116

Browse files
committed
chore: Remove debug meta decodable V9 checks
1 parent fa9a4bb commit 7587116

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
@_implementationOnly import _SentryPrivate
22
import Foundation
33

4-
#if SDK_V9
54
final class DebugMetaDecodable: DebugMeta {
65
convenience public init(from decoder: any Decoder) throws {
76
try self.init(decodedFrom: decoder)
87
}
98
}
10-
#else
11-
typealias DebugMetaDecodable = DebugMeta
12-
#endif
9+
1310
extension DebugMetaDecodable: Decodable {
1411

1512
private enum CodingKeys: String, CodingKey {
@@ -22,12 +19,6 @@ extension DebugMetaDecodable: Decodable {
2219
case imageVmAddress = "image_vmaddr"
2320
case codeFile = "code_file"
2421
}
25-
26-
#if !SDK_V9
27-
required convenience public init(from decoder: any Decoder) throws {
28-
try self.init(decodedFrom: decoder)
29-
}
30-
#endif
3122

3223
private convenience init(decodedFrom decoder: Decoder) throws {
3324
let container = try decoder.container(keyedBy: CodingKeys.self)

Sources/Swift/Tools/SentryClientReport.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
@_implementationOnly import _SentryPrivate
2+
13
@objc
2-
@_spi(Private) public final class SentryClientReport: NSObject, SentrySerializable {
4+
@_spi(Private) public final class SentryClientReport: NSObject {
35

46
@objc(initWithDiscardedEvents:dateProvider:)
57
public init(discardedEvents: [SentryDiscardedEvent], dateProvider: SentryCurrentDateProvider) {
@@ -23,3 +25,5 @@
2325
let discardedEvents: [SentryDiscardedEvent]
2426

2527
}
28+
29+
extension SentryClientReport: SentrySerializable { }

Sources/Swift/Tools/SentryDiscardedEvent.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
@_implementationOnly import _SentryPrivate
12
import Foundation
23

34
@objcMembers
45
@_spi(Private)
5-
public final class SentryDiscardedEvent: NSObject, SentrySerializable {
6+
public final class SentryDiscardedEvent: NSObject {
67

78
let reason: String
89
let category: String
@@ -23,3 +24,5 @@ public final class SentryDiscardedEvent: NSObject, SentrySerializable {
2324
]
2425
}
2526
}
27+
28+
extension SentryDiscardedEvent: SentrySerializable { }

0 commit comments

Comments
 (0)