diff --git a/Sentry.xcodeproj/project.pbxproj b/Sentry.xcodeproj/project.pbxproj index 90d6bd3f519..b2b7cbed1e6 100644 --- a/Sentry.xcodeproj/project.pbxproj +++ b/Sentry.xcodeproj/project.pbxproj @@ -82,7 +82,6 @@ 620078782D3906BF0022CB67 /* SentryCodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 620078772D3906BF0022CB67 /* SentryCodableTests.swift */; }; 620379DB2AFE1415005AC0C1 /* SentryBuildAppStartSpans.h in Headers */ = {isa = PBXBuildFile; fileRef = 620379DA2AFE1415005AC0C1 /* SentryBuildAppStartSpans.h */; }; 620379DD2AFE1432005AC0C1 /* SentryBuildAppStartSpans.m in Sources */ = {isa = PBXBuildFile; fileRef = 620379DC2AFE1432005AC0C1 /* SentryBuildAppStartSpans.m */; }; - 620467AC2D3FFD230025F06C /* SentryNSErrorCodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 620467AB2D3FFD1C0025F06C /* SentryNSErrorCodable.swift */; }; 6205B4A42CE73AA100744684 /* TestDebugImageProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = D85790282976A69F00C6AC1F /* TestDebugImageProvider.swift */; }; 6205CF262D549D8A001E6049 /* SentryDateCodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6205CF252D549D8A001E6049 /* SentryDateCodableTests.swift */; }; 621655662DB12A8900810504 /* SentryCrashMach-OTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 621655652DB12A8900810504 /* SentryCrashMach-OTests.m */; }; @@ -386,8 +385,6 @@ 7B3398652459C15200BD9C96 /* SentryEnvelopeRateLimit.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B3398642459C15200BD9C96 /* SentryEnvelopeRateLimit.m */; }; 7B3398672459C4AE00BD9C96 /* SentryEnvelopeRateLimitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B3398662459C4AE00BD9C96 /* SentryEnvelopeRateLimitTests.swift */; }; 7B34721728086A9D0041F047 /* SentrySwizzleWrapperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B34721628086A9D0041F047 /* SentrySwizzleWrapperTests.swift */; }; - 7B3B473025D6CBFC00D01640 /* SentryNSError.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B3B472F25D6CBFC00D01640 /* SentryNSError.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 7B3B473825D6CC7E00D01640 /* SentryNSError.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B3B473725D6CC7E00D01640 /* SentryNSError.m */; }; 7B3B473E25D6CEA500D01640 /* SentryNSErrorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B3B473D25D6CEA500D01640 /* SentryNSErrorTests.swift */; }; 7B42C48027E08F33009B58C2 /* SentryDependencyContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B42C47F27E08F33009B58C2 /* SentryDependencyContainer.h */; settings = {ATTRIBUTES = (Private, ); }; }; 7B42C48227E08F4B009B58C2 /* SentryDependencyContainer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B42C48127E08F4B009B58C2 /* SentryDependencyContainer.m */; }; @@ -1062,8 +1059,9 @@ FA67DD182DDBD4EA00896B02 /* UIImageHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA67DCED2DDBD4EA00896B02 /* UIImageHelper.swift */; }; FA67DD192DDBD4EA00896B02 /* SwizzleClassNameExclude.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA67DCD52DDBD4EA00896B02 /* SwizzleClassNameExclude.swift */; }; FA8A36182DEAA1EB0058D883 /* SentryThread+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */; }; - FAEC273D2DF3933A00878871 /* NSData+Unzip.m in Sources */ = {isa = PBXBuildFile; fileRef = FAEC273C2DF3933200878871 /* NSData+Unzip.m */; }; + FA8DEC2E2DF7F2D000C25374 /* SentryNSError.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8DEC2D2DF7F2D000C25374 /* SentryNSError.swift */; }; FAEC270E2DF3526000878871 /* SentryUserFeedback.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAEC270D2DF3526000878871 /* SentryUserFeedback.swift */; }; + FAEC273D2DF3933A00878871 /* NSData+Unzip.m in Sources */ = {isa = PBXBuildFile; fileRef = FAEC273C2DF3933200878871 /* NSData+Unzip.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -1223,7 +1221,6 @@ 620078772D3906BF0022CB67 /* SentryCodableTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryCodableTests.swift; sourceTree = ""; }; 620379DA2AFE1415005AC0C1 /* SentryBuildAppStartSpans.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryBuildAppStartSpans.h; path = include/SentryBuildAppStartSpans.h; sourceTree = ""; }; 620379DC2AFE1432005AC0C1 /* SentryBuildAppStartSpans.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryBuildAppStartSpans.m; sourceTree = ""; }; - 620467AB2D3FFD1C0025F06C /* SentryNSErrorCodable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryNSErrorCodable.swift; sourceTree = ""; }; 6205CF252D549D8A001E6049 /* SentryDateCodableTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDateCodableTests.swift; sourceTree = ""; }; 621655652DB12A8900810504 /* SentryCrashMach-OTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "SentryCrashMach-OTests.m"; sourceTree = ""; }; 621AE74A2C626C230012E730 /* SentryANRTrackerV2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryANRTrackerV2.h; path = include/SentryANRTrackerV2.h; sourceTree = ""; }; @@ -1544,8 +1541,6 @@ 7B3398662459C4AE00BD9C96 /* SentryEnvelopeRateLimitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryEnvelopeRateLimitTests.swift; sourceTree = ""; }; 7B34721628086A9D0041F047 /* SentrySwizzleWrapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySwizzleWrapperTests.swift; sourceTree = ""; }; 7B3878E92490D90400EBDEA2 /* SentryClient+TestInit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentryClient+TestInit.h"; sourceTree = ""; }; - 7B3B472F25D6CBFC00D01640 /* SentryNSError.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryNSError.h; path = Public/SentryNSError.h; sourceTree = ""; }; - 7B3B473725D6CC7E00D01640 /* SentryNSError.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryNSError.m; sourceTree = ""; }; 7B3B473D25D6CEA500D01640 /* SentryNSErrorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryNSErrorTests.swift; sourceTree = ""; }; 7B42C47F27E08F33009B58C2 /* SentryDependencyContainer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryDependencyContainer.h; path = include/HybridPublic/SentryDependencyContainer.h; sourceTree = ""; }; 7B42C48127E08F4B009B58C2 /* SentryDependencyContainer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDependencyContainer.m; sourceTree = ""; }; @@ -2304,6 +2299,7 @@ FA67DCEF2DDBD4EA00896B02 /* URLSessionTaskHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URLSessionTaskHelper.swift; sourceTree = ""; }; FA67DCF22DDBD4EA00896B02 /* SwiftDescriptor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftDescriptor.swift; sourceTree = ""; }; FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryThread+Private.h"; path = "include/SentryThread+Private.h"; sourceTree = ""; }; + FA8DEC2D2DF7F2D000C25374 /* SentryNSError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryNSError.swift; sourceTree = ""; }; FAEC270D2DF3526000878871 /* SentryUserFeedback.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUserFeedback.swift; sourceTree = ""; }; FAEC273C2DF3933200878871 /* NSData+Unzip.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSData+Unzip.m"; sourceTree = ""; }; FAEC273E2DF393E000878871 /* NSData+Unzip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSData+Unzip.h"; sourceTree = ""; }; @@ -2404,11 +2400,11 @@ children = ( 623FD9032D3FA90900803EDA /* NSNumberDecodableWrapper.swift */, 6281C5712D3E4F06009D0978 /* DecodeArbitraryData.swift */, + FA8DEC2D2DF7F2D000C25374 /* SentryNSError.swift */, 623FD9012D3FA5DA00803EDA /* SentryFrameCodable.swift */, 6293F5742D422A8A002BC3BD /* SentryStacktraceCodable.swift */, 62F70E922D4234B100634054 /* SentryMechanismMetaCodable.swift */, 62F70E942D423BCA00634054 /* SentryMechanismCodable.swift */, - 620467AB2D3FFD1C0025F06C /* SentryNSErrorCodable.swift */, 620078712D38F00D0022CB67 /* SentryGeoCodable.swift */, 628094732D39584700B3F18B /* SentryUserCodable.swift */, 627C77882D50B6840055E966 /* SentryBreadcrumbCodable.swift */, @@ -2537,8 +2533,6 @@ 6334314020AD9AE40077E581 /* SentryMechanism.m */, 7BECF42126145C5D00D9826E /* SentryMechanismMeta.h */, 7BECF42726145CD900D9826E /* SentryMechanismMeta.m */, - 7B3B472F25D6CBFC00D01640 /* SentryNSError.h */, - 7B3B473725D6CC7E00D01640 /* SentryNSError.m */, 639FCFA61EBC80CC00778193 /* SentryFrame.h */, 639FCFA71EBC80CC00778193 /* SentryFrame.m */, 639FCFA21EBC809A00778193 /* SentryStacktrace.h */, @@ -4716,7 +4710,6 @@ 7BD4BD4727EB2A3D0071F4FF /* SentryDiscardedEvent.h in Headers */, 7BBD18972449DC1D00427C76 /* SentryRateLimits.h in Headers */, 844EDC76294144DB00C86F34 /* SentrySystemWrapper.h in Headers */, - 7B3B473025D6CBFC00D01640 /* SentryNSError.h in Headers */, 630436101EC0600A00C4D3FA /* SentrySerializable.h in Headers */, 63FE70DD20DA4C1000CDBAE8 /* SentryCrashMonitor_Signal.h in Headers */, 63FE710320DA4C1000CDBAE8 /* SentryCrashMachineContext_Apple.h in Headers */, @@ -5264,7 +5257,6 @@ 7B7D873624864C9D00D2ECFF /* SentryCrashDefaultMachineContextWrapper.m in Sources */, 63FE712F20DA4C1100CDBAE8 /* SentryCrashSysCtl.c in Sources */, 62212B872D520CB00062C2FA /* SentryEventCodable.swift in Sources */, - 7B3B473825D6CC7E00D01640 /* SentryNSError.m in Sources */, 621AE74D2C626C510012E730 /* SentryANRTrackerV2.m in Sources */, 84CFA4CA2C9DF884008DA5F4 /* SentryUserFeedbackWidget.swift in Sources */, FAEC270E2DF3526000878871 /* SentryUserFeedback.swift in Sources */, @@ -5468,6 +5460,7 @@ D8739D182BEEA33F007D2F66 /* SentryLevelHelper.m in Sources */, 63FE712720DA4C1000CDBAE8 /* SentryCrashThread.c in Sources */, 7B127B0F27CF6F4700A71ED2 /* SentryANRTrackingIntegration.m in Sources */, + FA8DEC2E2DF7F2D000C25374 /* SentryNSError.swift in Sources */, 62C316832B1F2EA1000D7031 /* SentryDelayedFramesTracker.m in Sources */, D8BFE37329A3782F002E73F3 /* SentryTimeToDisplayTracker.m in Sources */, 15360CCF2432777500112302 /* SentrySessionTracker.m in Sources */, @@ -5477,7 +5470,6 @@ F452437E2DE60B71003E8F50 /* SentryUseNSExceptionCallstackWrapper.m in Sources */, 63FE70D320DA4C1000CDBAE8 /* SentryCrashMonitor_AppState.c in Sources */, 849B8F9D2C6E906900148E1F /* SentryUserFeedbackWidgetConfiguration.swift in Sources */, - 620467AC2D3FFD230025F06C /* SentryNSErrorCodable.swift in Sources */, 639FCFA51EBC809A00778193 /* SentryStacktrace.m in Sources */, D84D2CC32C29AD120011AF8A /* SentrySessionReplay.swift in Sources */, 849B8F9B2C6E906900148E1F /* SentryUserFeedbackIntegrationDriver.swift in Sources */, diff --git a/Sources/Sentry/Public/Sentry.h b/Sources/Sentry/Public/Sentry.h index 04189c74583..8b5562c4104 100644 --- a/Sources/Sentry/Public/Sentry.h +++ b/Sources/Sentry/Public/Sentry.h @@ -30,7 +30,6 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; # import # import # import -# import # import # import # import diff --git a/Sources/Sentry/Public/SentryNSError.h b/Sources/Sentry/Public/SentryNSError.h deleted file mode 100644 index c58d5422a6b..00000000000 --- a/Sources/Sentry/Public/SentryNSError.h +++ /dev/null @@ -1,38 +0,0 @@ -#import -#if __has_include() -# import -#elif __has_include() -# import -#else -# import -#endif -#import SENTRY_HEADER(SentrySerializable) - -NS_ASSUME_NONNULL_BEGIN - -/** - * Sentry representation of an @c NSError to send to Sentry. - */ -@interface SentryNSError : NSObject -SENTRY_NO_INIT - -/** - * The domain of an @c NSError . - */ -@property (nonatomic, copy) NSString *domain; - -/** - * The error code of an @c NSError . - */ -@property (nonatomic, assign) NSInteger code; - -/** - * Initializes @c SentryNSError and sets the domain and code. - * @param domain The domain of an @c NSError. - * @param code The error code of an @c NSError. - */ -- (instancetype)initWithDomain:(NSString *)domain code:(NSInteger)code; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/Sentry/Public/SentryWithoutUIKit.h b/Sources/Sentry/Public/SentryWithoutUIKit.h index 8f419dea677..4d749056973 100644 --- a/Sources/Sentry/Public/SentryWithoutUIKit.h +++ b/Sources/Sentry/Public/SentryWithoutUIKit.h @@ -31,7 +31,6 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; # import # import # import -# import # import # import # import diff --git a/Sources/Sentry/SentryClient.m b/Sources/Sentry/SentryClient.m index f6b63fc3aa5..13902ae2ca7 100644 --- a/Sources/Sentry/SentryClient.m +++ b/Sources/Sentry/SentryClient.m @@ -27,7 +27,6 @@ #import "SentryMeta.h" #import "SentryMsgPackSerializer.h" #import "SentryNSDictionarySanitize.h" -#import "SentryNSError.h" #import "SentryOptions+Private.h" #import "SentryPropagationContext.h" #import "SentryRandom.h" diff --git a/Sources/Sentry/SentryMechanism.m b/Sources/Sentry/SentryMechanism.m index 01245da7d5e..caae072123c 100644 --- a/Sources/Sentry/SentryMechanism.m +++ b/Sources/Sentry/SentryMechanism.m @@ -2,7 +2,6 @@ #import "NSMutableDictionary+Sentry.h" #import "SentryMechanismMeta.h" #import "SentryNSDictionarySanitize.h" -#import "SentryNSError.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sources/Sentry/SentryMechanismMeta.m b/Sources/Sentry/SentryMechanismMeta.m index 3eaa14e85f6..5c92f327cef 100644 --- a/Sources/Sentry/SentryMechanismMeta.m +++ b/Sources/Sentry/SentryMechanismMeta.m @@ -1,6 +1,6 @@ #import "SentryMechanismMeta.h" #import "SentryNSDictionarySanitize.h" -#import "SentryNSError.h" +#import "SentrySwift.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sources/Sentry/SentryNSError.m b/Sources/Sentry/SentryNSError.m deleted file mode 100644 index 783dd88c0c7..00000000000 --- a/Sources/Sentry/SentryNSError.m +++ /dev/null @@ -1,24 +0,0 @@ -#import "SentryNSError.h" -#import - -NS_ASSUME_NONNULL_BEGIN - -@implementation SentryNSError - -- (instancetype)initWithDomain:(NSString *)domain code:(NSInteger)code -{ - if (self = [super init]) { - _domain = domain; - _code = code; - } - return self; -} - -- (NSDictionary *)serialize -{ - return @{ @"domain" : self.domain, @"code" : @(self.code) }; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/Swift/Protocol/Codable/SentryNSError.swift b/Sources/Swift/Protocol/Codable/SentryNSError.swift new file mode 100644 index 00000000000..be100832ae9 --- /dev/null +++ b/Sources/Swift/Protocol/Codable/SentryNSError.swift @@ -0,0 +1,39 @@ +import Foundation + +/// Sentry representation of an NSError to send to Sentry. +@objcMembers +open class SentryNSError: NSObject, SentrySerializable, Decodable { + + /// The domain of an NSError. + open var domain: String + + /// The error code of an NSError. + open var code: Int + + /// Initializes SentryNSError and sets the domain and code. + /// - Parameters: + /// - domain: The domain of an NSError. + /// - code: The error code of an NSError. + public init(domain: String, code: Int) { + self.domain = domain + self.code = code + super.init() + } + + open func serialize() -> [String: Any] { + return ["domain": domain, "code": code] + } + + enum CodingKeys: String, CodingKey { + case domain + case code + } + + required convenience public init(from decoder: any Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + let domain = try container.decode(String.self, forKey: .domain) + let code = try container.decode(Int.self, forKey: .code) + self.init(domain: domain, code: code) + } +} diff --git a/Sources/Swift/Protocol/Codable/SentryNSErrorCodable.swift b/Sources/Swift/Protocol/Codable/SentryNSErrorCodable.swift deleted file mode 100644 index 088882b878a..00000000000 --- a/Sources/Swift/Protocol/Codable/SentryNSErrorCodable.swift +++ /dev/null @@ -1,18 +0,0 @@ -@_implementationOnly import _SentryPrivate -import Foundation - -extension SentryNSError: Decodable { - - enum CodingKeys: String, CodingKey { - case domain - case code - } - - required convenience public init(from decoder: any Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - let domain = try container.decode(String.self, forKey: .domain) - let code = try container.decode(Int.self, forKey: .code) - self.init(domain: domain, code: code) - } -} diff --git a/Tests/SentryTests/SentryTests-Bridging-Header.h b/Tests/SentryTests/SentryTests-Bridging-Header.h index b9fd886444e..ad41262047e 100644 --- a/Tests/SentryTests/SentryTests-Bridging-Header.h +++ b/Tests/SentryTests/SentryTests-Bridging-Header.h @@ -152,7 +152,6 @@ #import "SentryNSDataUtils.h" #import "SentryNSDictionarySanitize+Tests.h" #import "SentryNSDictionarySanitize.h" -#import "SentryNSError.h" #import "SentryNSNotificationCenterWrapper.h" #import "SentryNSProcessInfoWrapper.h" #import "SentryNSTimerFactory.h" diff --git a/sdk_api.json b/sdk_api.json index 805789644e6..55ac95f3d63 100644 --- a/sdk_api.json +++ b/sdk_api.json @@ -244,16 +244,6 @@ "Exported" ] }, - { - "kind": "Import", - "name": "Sentry.SentryNSError", - "printedName": "Sentry.SentryNSError", - "declKind": "Import", - "moduleName": "Sentry", - "declAttributes": [ - "Exported" - ] - }, { "kind": "Import", "name": "Sentry.SentryOptions", @@ -13639,7 +13629,7 @@ "kind": "TypeNominal", "name": "SentryNSError", "printedName": "Sentry.SentryNSError", - "usr": "c:objc(cs)SentryNSError" + "usr": "c:@M@Sentry@objc(cs)SentryNSError" } ], "usr": "s:Sq" @@ -13669,7 +13659,7 @@ "kind": "TypeNominal", "name": "SentryNSError", "printedName": "Sentry.SentryNSError", - "usr": "c:objc(cs)SentryNSError" + "usr": "c:@M@Sentry@objc(cs)SentryNSError" } ], "usr": "s:Sq" @@ -13713,7 +13703,7 @@ "kind": "TypeNominal", "name": "SentryNSError", "printedName": "Sentry.SentryNSError", - "usr": "c:objc(cs)SentryNSError" + "usr": "c:@M@Sentry@objc(cs)SentryNSError" } ], "usr": "s:Sq" @@ -29086,326 +29076,6 @@ } ] }, - { - "kind": "TypeDecl", - "name": "SentryNSError", - "printedName": "SentryNSError", - "children": [ - { - "kind": "Var", - "name": "domain", - "printedName": "domain", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryNSError(py)domain", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "domain", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)domain", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "domain", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)setDomain:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setDomain:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Var", - "name": "code", - "printedName": "code", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "c:objc(cs)SentryNSError(py)code", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "code", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)code", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "code", - "declAttributes": [ - "DiscardableResult", - "ObjC", - "Dynamic" - ], - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNameAlias", - "name": "Void", - "printedName": "Swift.Void", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Accessor", - "usr": "c:objc(cs)SentryNSError(im)setCode:", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "setCode:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "accessorKind": "set" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(domain:code:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryNSError", - "printedName": "Sentry.SentryNSError", - "usr": "c:objc(cs)SentryNSError" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Constructor", - "usr": "c:objc(cs)SentryNSError(im)initWithDomain:code:", - "moduleName": "Sentry", - "objc_name": "initWithDomain:code:", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(from:)", - "children": [ - { - "kind": "TypeNominal", - "name": "SentryNSError", - "printedName": "Sentry.SentryNSError", - "usr": "c:objc(cs)SentryNSError" - }, - { - "kind": "TypeNominal", - "name": "Decoder", - "printedName": "any Swift.Decoder", - "usr": "s:s7DecoderP" - } - ], - "declKind": "Constructor", - "usr": "s:So13SentryNSErrorC0A0E4fromABs7Decoder_p_tKcfc", - "mangledName": "$sSo13SentryNSErrorC0A0E4fromABs7Decoder_p_tKcfc", - "moduleName": "Sentry", - "declAttributes": [ - "Required" - ], - "isFromExtension": true, - "throwing": true, - "init_kind": "Convenience" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)SentryNSError", - "moduleName": "Sentry", - "isOpen": true, - "objc_name": "SentryNSError", - "declAttributes": [ - "ObjC", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)NSObject", - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "SentrySerializable", - "printedName": "SentrySerializable", - "usr": "c:objc(pl)SentrySerializable" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "NSObjectProtocol", - "printedName": "NSObjectProtocol", - "usr": "c:objc(pl)NSObject" - }, - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "Decodable", - "printedName": "Decodable", - "usr": "s:Se", - "mangledName": "$sSe" - } - ] - }, { "kind": "TypeAlias", "name": "SentryOnCrashedLastRunCallback", @@ -56588,6 +56258,346 @@ } ] }, + { + "kind": "TypeDecl", + "name": "SentryNSError", + "printedName": "SentryNSError", + "children": [ + { + "kind": "Var", + "name": "domain", + "printedName": "domain", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(py)domain", + "mangledName": "$s6Sentry0A7NSErrorC6domainSSvp", + "moduleName": "Sentry", + "isOpen": true, + "declAttributes": [ + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(im)domain", + "mangledName": "$s6Sentry0A7NSErrorC6domainSSvg", + "moduleName": "Sentry", + "implicit": true, + "isOpen": true, + "declAttributes": [ + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(im)setDomain:", + "mangledName": "$s6Sentry0A7NSErrorC6domainSSvs", + "moduleName": "Sentry", + "implicit": true, + "isOpen": true, + "declAttributes": [ + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Var", + "name": "code", + "printedName": "code", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(py)code", + "mangledName": "$s6Sentry0A7NSErrorC4codeSivp", + "moduleName": "Sentry", + "isOpen": true, + "declAttributes": [ + "ObjC", + "HasStorage" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(im)code", + "mangledName": "$s6Sentry0A7NSErrorC4codeSivg", + "moduleName": "Sentry", + "implicit": true, + "isOpen": true, + "declAttributes": [ + "ObjC" + ], + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(im)setCode:", + "mangledName": "$s6Sentry0A7NSErrorC4codeSivs", + "moduleName": "Sentry", + "implicit": true, + "isOpen": true, + "declAttributes": [ + "ObjC" + ], + "accessorKind": "set" + } + ] + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(domain:code:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryNSError", + "printedName": "Sentry.SentryNSError", + "usr": "c:@M@Sentry@objc(cs)SentryNSError" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Constructor", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(im)initWithDomain:code:", + "mangledName": "$s6Sentry0A7NSErrorC6domain4codeACSS_Sitcfc", + "moduleName": "Sentry", + "objc_name": "initWithDomain:code:", + "declAttributes": [ + "ObjC" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "serialize", + "printedName": "serialize()", + "children": [ + { + "kind": "TypeNominal", + "name": "Dictionary", + "printedName": "[Swift.String : Any]", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeNominal", + "name": "ProtocolComposition", + "printedName": "Any" + } + ], + "usr": "s:SD" + } + ], + "declKind": "Func", + "usr": "c:@M@Sentry@objc(cs)SentryNSError(im)serialize", + "mangledName": "$s6Sentry0A7NSErrorC9serializeSDySSypGyF", + "moduleName": "Sentry", + "isOpen": true, + "objc_name": "serialize", + "declAttributes": [ + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(from:)", + "children": [ + { + "kind": "TypeNominal", + "name": "SentryNSError", + "printedName": "Sentry.SentryNSError", + "usr": "c:@M@Sentry@objc(cs)SentryNSError" + }, + { + "kind": "TypeNominal", + "name": "Decoder", + "printedName": "any Swift.Decoder", + "usr": "s:s7DecoderP" + } + ], + "declKind": "Constructor", + "usr": "s:6Sentry0A7NSErrorC4fromACs7Decoder_p_tKcfc", + "mangledName": "$s6Sentry0A7NSErrorC4fromACs7Decoder_p_tKcfc", + "moduleName": "Sentry", + "declAttributes": [ + "Required" + ], + "throwing": true, + "init_kind": "Convenience" + } + ], + "declKind": "Class", + "usr": "c:@M@Sentry@objc(cs)SentryNSError", + "mangledName": "$s6Sentry0A7NSErrorC", + "moduleName": "Sentry", + "isOpen": true, + "declAttributes": [ + "ObjCMembers", + "ObjC" + ], + "superclassUsr": "c:objc(cs)NSObject", + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "SentrySerializable", + "printedName": "SentrySerializable", + "usr": "c:objc(pl)SentrySerializable" + }, + { + "kind": "Conformance", + "name": "Decodable", + "printedName": "Decodable", + "usr": "s:Se", + "mangledName": "$sSe" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "NSObjectProtocol", + "printedName": "NSObjectProtocol", + "usr": "c:objc(pl)NSObject" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + }, { "kind": "TypeDecl", "name": "SentryUserFeedbackThemeConfiguration",