Skip to content

Commit 254c059

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

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift

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

4-
#if SDK_V9
5-
final class DebugMetaDecodable: DebugMeta {
6-
convenience public init(from decoder: any Decoder) throws {
7-
try self.init(decodedFrom: decoder)
8-
}
9-
}
10-
#else
4+
#if COCOAPODS
5+
extension DebugMeta: Decodable { }
116
typealias DebugMetaDecodable = DebugMeta
7+
#else
8+
final class DebugMetaDecodable: DebugMeta, Codable { }
129
#endif
13-
extension DebugMetaDecodable: Decodable {
10+
11+
extension DebugMeta {
1412

1513
private enum CodingKeys: String, CodingKey {
1614
case uuid
@@ -22,12 +20,10 @@ extension DebugMetaDecodable: Decodable {
2220
case imageVmAddress = "image_vmaddr"
2321
case codeFile = "code_file"
2422
}
25-
26-
#if !SDK_V9
23+
2724
required convenience public init(from decoder: any Decoder) throws {
2825
try self.init(decodedFrom: decoder)
2926
}
30-
#endif
3127

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

0 commit comments

Comments
 (0)