Skip to content

Commit 45e9fb1

Browse files
authored
chore: Remove V9 check in SentryDebugMetaCodable (#6596)
1 parent 54bf850 commit 45e9fb1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
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
9+
10+
// Here only to satisfy the cocoapods compiler, which throws an
11+
// error about SentrySerializable not being found if we don't extend
12+
// an ObjC class here.
13+
#if COCOAPODS
14+
extension DebugMeta { }
1215
#endif
1316

1417
extension DebugMetaDecodable: Decodable {
@@ -22,12 +25,6 @@ extension DebugMetaDecodable: Decodable {
2225
case codeFile = "code_file"
2326
}
2427

25-
#if !SDK_V9
26-
required convenience public init(from decoder: any Decoder) throws {
27-
try self.init(decodedFrom: decoder)
28-
}
29-
#endif
30-
3128
private convenience init(decodedFrom decoder: Decoder) throws {
3229
let container = try decoder.container(keyedBy: CodingKeys.self)
3330

0 commit comments

Comments
 (0)