File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Sources/Swift/Protocol/Codable Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 11@_implementationOnly import _SentryPrivate
22import Foundation
33
4- #if SDK_V9
54final 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
1417extension 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
You can’t perform that action at this time.
0 commit comments