Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Breaking Changes

- Rename `SentryMechanismMeta` to `SentryMechanismContext` (#2888)
- Moves `SentryEventDecoder` to SPI (#6365)
- Makes `PreviewRedactOptions`, `SentryProfileOptions`, `SentryRedactViewHelper`, `SentryViewScreenshotOptions`, `SentryReplayOptions`, `SentryUserFeedbackConfiguration`, `SentryUserFeedbackFormConfiguration`, `SentryUserFeedbackThemeConfiguration`, `SentryUserFeedbackWidgetConfiguration`, `SentryFeedback`, and `SentryExperimentalOptions` `final` (#6365)
- Removes Decodable conformances from the public API of model classes (#5691)
Expand Down
32 changes: 16 additions & 16 deletions Sentry.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
62F05D2B2C0DB1F100916E3F /* SentryLogTestHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 62F05D2A2C0DB1F100916E3F /* SentryLogTestHelper.m */; };
62F226B729A37C120038080D /* SentryBooleanSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 62F226B629A37C120038080D /* SentryBooleanSerialization.m */; };
62F4DDA12C04CB9700588890 /* SentryBaggageSerializationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62F4DDA02C04CB9700588890 /* SentryBaggageSerializationTests.swift */; };
62F70E932D4234B800634054 /* SentryMechanismMetaCodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62F70E922D4234B100634054 /* SentryMechanismMetaCodable.swift */; };
62F70E932D4234B800634054 /* SentryMechanismContextCodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62F70E922D4234B100634054 /* SentryMechanismContextCodable.swift */; };
62F70E952D423BCD00634054 /* SentryMechanismCodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62F70E942D423BCA00634054 /* SentryMechanismCodable.swift */; };
62FC69362BEDFF18002D3EF2 /* SentryLogExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62FC69352BEDFF18002D3EF2 /* SentryLogExtensions.swift */; };
6304360A1EC0595B00C4D3FA /* SentryNSDataUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 630436081EC0595B00C4D3FA /* SentryNSDataUtils.h */; settings = {ATTRIBUTES = (Private, ); }; };
Expand Down Expand Up @@ -529,9 +529,9 @@
7BE912AD272162D900E49E62 /* SentryNoOpSpan.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BE912AC272162D900E49E62 /* SentryNoOpSpan.m */; };
7BE912AF272166DD00E49E62 /* SentryNoOpSpanTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE912AE272166DD00E49E62 /* SentryNoOpSpanTests.swift */; };
7BE912B12721C76000E49E62 /* SentryPerformanceTrackingIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE912B02721C76000E49E62 /* SentryPerformanceTrackingIntegrationTests.swift */; };
7BECF42226145C5D00D9826E /* SentryMechanismMeta.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BECF42126145C5D00D9826E /* SentryMechanismMeta.h */; settings = {ATTRIBUTES = (Public, ); }; };
7BECF42826145CD900D9826E /* SentryMechanismMeta.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BECF42726145CD900D9826E /* SentryMechanismMeta.m */; };
7BECF432261463E600D9826E /* SentryMechanismMetaTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BECF431261463E600D9826E /* SentryMechanismMetaTests.swift */; };
7BECF42226145C5D00D9826E /* SentryMechanismContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BECF42126145C5D00D9826E /* SentryMechanismContext.h */; settings = {ATTRIBUTES = (Public, ); }; };
7BECF42826145CD900D9826E /* SentryMechanismContext.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BECF42726145CD900D9826E /* SentryMechanismContext.m */; };
7BECF432261463E600D9826E /* SentryMechanismContextTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BECF431261463E600D9826E /* SentryMechanismContextTests.swift */; };
7BEF4957270C4B9D00F8F30E /* SentryUIViewControllerSwizzlingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BEF4956270C4B9D00F8F30E /* SentryUIViewControllerSwizzlingTests.swift */; };
7BF536D124BDF3E7004FA6A2 /* SentryEnvelopeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BF536D024BDF3E7004FA6A2 /* SentryEnvelopeTests.swift */; };
7BF536D424BEF255004FA6A2 /* SentryAssertions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BF536D324BEF255004FA6A2 /* SentryAssertions.swift */; };
Expand Down Expand Up @@ -1421,7 +1421,7 @@
62F226B629A37C120038080D /* SentryBooleanSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryBooleanSerialization.m; sourceTree = "<group>"; };
62F226B829A37C270038080D /* SentryBooleanSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryBooleanSerialization.h; sourceTree = "<group>"; };
62F4DDA02C04CB9700588890 /* SentryBaggageSerializationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryBaggageSerializationTests.swift; sourceTree = "<group>"; };
62F70E922D4234B100634054 /* SentryMechanismMetaCodable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMechanismMetaCodable.swift; sourceTree = "<group>"; };
62F70E922D4234B100634054 /* SentryMechanismContextCodable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMechanismContextCodable.swift; sourceTree = "<group>"; };
62F70E942D423BCA00634054 /* SentryMechanismCodable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMechanismCodable.swift; sourceTree = "<group>"; };
62FC69352BEDFF18002D3EF2 /* SentryLogExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryLogExtensions.swift; sourceTree = "<group>"; };
630436081EC0595B00C4D3FA /* SentryNSDataUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryNSDataUtils.h; path = include/SentryNSDataUtils.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1847,9 +1847,9 @@
7BE912AC272162D900E49E62 /* SentryNoOpSpan.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryNoOpSpan.m; sourceTree = "<group>"; };
7BE912AE272166DD00E49E62 /* SentryNoOpSpanTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryNoOpSpanTests.swift; sourceTree = "<group>"; };
7BE912B02721C76000E49E62 /* SentryPerformanceTrackingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryPerformanceTrackingIntegrationTests.swift; sourceTree = "<group>"; };
7BECF42126145C5D00D9826E /* SentryMechanismMeta.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryMechanismMeta.h; path = Public/SentryMechanismMeta.h; sourceTree = "<group>"; };
7BECF42726145CD900D9826E /* SentryMechanismMeta.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryMechanismMeta.m; sourceTree = "<group>"; };
7BECF431261463E600D9826E /* SentryMechanismMetaTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMechanismMetaTests.swift; sourceTree = "<group>"; };
7BECF42126145C5D00D9826E /* SentryMechanismContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryMechanismContext.h; path = Public/SentryMechanismContext.h; sourceTree = "<group>"; };
7BECF42726145CD900D9826E /* SentryMechanismContext.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryMechanismContext.m; sourceTree = "<group>"; };
7BECF431261463E600D9826E /* SentryMechanismContextTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMechanismContextTests.swift; sourceTree = "<group>"; };
7BEF4956270C4B9D00F8F30E /* SentryUIViewControllerSwizzlingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIViewControllerSwizzlingTests.swift; sourceTree = "<group>"; };
7BF536D024BDF3E7004FA6A2 /* SentryEnvelopeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryEnvelopeTests.swift; sourceTree = "<group>"; };
7BF536D324BEF255004FA6A2 /* SentryAssertions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryAssertions.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2626,7 +2626,7 @@
6281C5712D3E4F06009D0978 /* DecodeArbitraryData.swift */,
623FD9012D3FA5DA00803EDA /* SentryFrameCodable.swift */,
6293F5742D422A8A002BC3BD /* SentryStacktraceCodable.swift */,
62F70E922D4234B100634054 /* SentryMechanismMetaCodable.swift */,
62F70E922D4234B100634054 /* SentryMechanismContextCodable.swift */,
62F70E942D423BCA00634054 /* SentryMechanismCodable.swift */,
620467AB2D3FFD1C0025F06C /* SentryNSErrorCodable.swift */,
620078712D38F00D0022CB67 /* SentryGeoCodable.swift */,
Expand Down Expand Up @@ -2762,8 +2762,8 @@
639FCF9F1EBC804600778193 /* SentryException.m */,
6334313F20AD9AE40077E581 /* SentryMechanism.h */,
6334314020AD9AE40077E581 /* SentryMechanism.m */,
7BECF42126145C5D00D9826E /* SentryMechanismMeta.h */,
7BECF42726145CD900D9826E /* SentryMechanismMeta.m */,
7BECF42126145C5D00D9826E /* SentryMechanismContext.h */,
7BECF42726145CD900D9826E /* SentryMechanismContext.m */,
7B3B472F25D6CBFC00D01640 /* SentryNSError.h */,
7B3B473725D6CC7E00D01640 /* SentryNSError.m */,
639FCFA61EBC80CC00778193 /* SentryFrame.h */,
Expand Down Expand Up @@ -3446,7 +3446,7 @@
7BC6EC07255C36DE0059822A /* SentryStacktraceTests.swift */,
7BC6EC0B255C3DF80059822A /* SentryThreadTests.swift */,
7BC6EC0F255C3F560059822A /* SentryMechanismTests.swift */,
7BECF431261463E600D9826E /* SentryMechanismMetaTests.swift */,
7BECF431261463E600D9826E /* SentryMechanismContextTests.swift */,
7B3B473D25D6CEA500D01640 /* SentryNSErrorTests.swift */,
7BC6EC13255C415E0059822A /* SentryExceptionTests.swift */,
7BC6EC17255C44540059822A /* SentryDebugMetaTests.swift */,
Expand Down Expand Up @@ -5084,7 +5084,7 @@
63FE715D20DA4C1100CDBAE8 /* SentryCrashSymbolicator.h in Headers */,
FAE2DABA2E1F318900262307 /* SentryProfilingSwiftHelpers.h in Headers */,
D8ACE3CF2762187D00F5A213 /* SentryFileIOTrackingIntegration.h in Headers */,
7BECF42226145C5D00D9826E /* SentryMechanismMeta.h in Headers */,
7BECF42226145C5D00D9826E /* SentryMechanismContext.h in Headers */,
63FE718920DA4C1100CDBAE8 /* SentryCrash.h in Headers */,
7B56D73124616CCD00B842DA /* SentryConcurrentRateLimitsDictionary.h in Headers */,
D456B4322D706BDF007068CB /* SentrySpanOperation.h in Headers */,
Expand Down Expand Up @@ -5827,7 +5827,7 @@
63FE710720DA4C1000CDBAE8 /* SentryCrashStackCursor_SelfThread.m in Sources */,
63FE711120DA4C1000CDBAE8 /* SentryCrashDebug.c in Sources */,
7B883F49253D714C00879E62 /* SentryCrashUUIDConversion.c in Sources */,
62F70E932D4234B800634054 /* SentryMechanismMetaCodable.swift in Sources */,
62F70E932D4234B800634054 /* SentryMechanismContextCodable.swift in Sources */,
843FB3232D0CD04D00558F18 /* SentryUserAccess.m in Sources */,
63FE716720DA4C1100CDBAE8 /* SentryCrashCPU.c in Sources */,
63FE717320DA4C1100CDBAE8 /* SentryCrashC.c in Sources */,
Expand Down Expand Up @@ -5855,7 +5855,7 @@
7B56D73324616D9500B842DA /* SentryConcurrentRateLimitsDictionary.m in Sources */,
8ECC674825C23A20000E2BF6 /* SentryTransaction.m in Sources */,
D8CAC02E2BA0663E00E38F34 /* SentryReplayOptions.swift in Sources */,
7BECF42826145CD900D9826E /* SentryMechanismMeta.m in Sources */,
7BECF42826145CD900D9826E /* SentryMechanismContext.m in Sources */,
8E7C982F2693D56000E6336C /* SentryTraceHeader.m in Sources */,
F429D39A2E85360F00DBF387 /* RetryAfterHeaderParser.swift in Sources */,
63FE715F20DA4C1100CDBAE8 /* SentryCrashID.c in Sources */,
Expand Down Expand Up @@ -6185,7 +6185,7 @@
D4D0E1E82E9D040A00358814 /* SentrySessionReplayEnvironmentCheckerTests.swift in Sources */,
33042A1729DC2C4300C60085 /* SentryExtraContextProviderTests.swift in Sources */,
D8137D54272B53070082656C /* TestSentrySpan.m in Sources */,
7BECF432261463E600D9826E /* SentryMechanismMetaTests.swift in Sources */,
7BECF432261463E600D9826E /* SentryMechanismContextTests.swift in Sources */,
7BE8E8462593313500C4DA1F /* SentryAttachment+Equality.m in Sources */,
D80694C72B7CD22B00B820E6 /* SentryReplayRecordingTests.swift in Sources */,
63FE721F20DA66EC00CDBAE8 /* SentryCrashSignalInfo_Tests.m in Sources */,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/Public/Sentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[];
# import <Sentry/SentryIntegrationProtocol.h>
# import <Sentry/SentryMeasurementUnit.h>
# import <Sentry/SentryMechanism.h>
# import <Sentry/SentryMechanismMeta.h>
# import <Sentry/SentryMechanismContext.h>
# import <Sentry/SentryMessage.h>
# import <Sentry/SentryNSError.h>
# import <Sentry/SentryOptions.h>
Expand Down
4 changes: 2 additions & 2 deletions Sources/Sentry/Public/SentryMechanism.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
NS_ASSUME_NONNULL_BEGIN

@class SentryNSError;
@class SentryMechanismMeta;
@class SentryMechanismContext;

NS_SWIFT_NAME(Mechanism)
@interface SentryMechanism : NSObject <SentrySerializable>
Expand Down Expand Up @@ -58,7 +58,7 @@ SENTRY_NO_INIT
* Information from the operating system or runtime on the exception
* mechanism.
*/
@property (nullable, nonatomic, strong) SentryMechanismMeta *meta;
@property (nullable, nonatomic, strong) SentryMechanismContext *meta;

/**
* Initialize an SentryMechanism with a type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ NS_ASSUME_NONNULL_BEGIN
* along with a platform-dependent interpretation of these codes.
* @see https://develop.sentry.dev/sdk/event-payloads/exception/#meta-information.
*/
NS_SWIFT_NAME(MechanismMeta)
@interface SentryMechanismMeta : NSObject <SentrySerializable>
NS_SWIFT_NAME(MechanismContext)
@interface SentryMechanismContext : NSObject <SentrySerializable>

- (instancetype)init;

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/Public/SentryWithoutUIKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[];
# import <SentryWithoutUIKit/SentryIntegrationProtocol.h>
# import <SentryWithoutUIKit/SentryMeasurementUnit.h>
# import <SentryWithoutUIKit/SentryMechanism.h>
# import <SentryWithoutUIKit/SentryMechanismMeta.h>
# import <SentryWithoutUIKit/SentryMechanismContext.h>
# import <SentryWithoutUIKit/SentryMessage.h>
# import <SentryWithoutUIKit/SentryNSError.h>
# import <SentryWithoutUIKit/SentryOptions.h>
Expand Down
4 changes: 2 additions & 2 deletions Sources/Sentry/SentryClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#import "SentryInternalDefines.h"
#import "SentryLogC.h"
#import "SentryMechanism.h"
#import "SentryMechanismMeta.h"
#import "SentryMechanismContext.h"
#import "SentryMessage.h"
#import "SentryMeta.h"
#import "SentryMsgPackSerializer.h"
Expand Down Expand Up @@ -324,7 +324,7 @@ - (SentryException *)exceptionForError:(NSError *)error

// Sentry uses the error domain and code on the mechanism for gouping
SentryMechanism *mechanism = [[SentryMechanism alloc] initWithType:@"NSError"];
SentryMechanismMeta *mechanismMeta = [[SentryMechanismMeta alloc] init];
SentryMechanismContext *mechanismMeta = [[SentryMechanismContext alloc] init];
mechanismMeta.error = [[SentryNSError alloc] initWithDomain:error.domain code:error.code];
mechanism.meta = mechanismMeta;
// The description of the error can be especially useful for error from swift that
Expand Down
4 changes: 2 additions & 2 deletions Sources/Sentry/SentryCrashReportConverter.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "SentryInternalDefines.h"
#import "SentryLogC.h"
#import "SentryMechanism.h"
#import "SentryMechanismMeta.h"
#import "SentryMechanismContext.h"
#import "SentryStacktrace.h"
#import "SentrySwift.h"
#import "SentryThread.h"
Expand Down Expand Up @@ -556,7 +556,7 @@ - (SentryMechanism *_Nullable)extractMechanismOfType:(nonnull NSString *)type
if (nil != self.exceptionContext[@"mach"]) {
mechanism.handled = @(NO);

SentryMechanismMeta *meta = [[SentryMechanismMeta alloc] init];
SentryMechanismContext *meta = [[SentryMechanismContext alloc] init];

NSMutableDictionary *machException = [NSMutableDictionary new];
[machException setValue:self.exceptionContext[@"mach"][@"exception_name"] forKey:@"name"];
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryMechanism.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "SentryMechanism.h"
#import "NSMutableDictionary+Sentry.h"
#import "SentryMechanismMeta.h"
#import "SentryMechanismContext.h"
#import "SentryNSDictionarySanitize.h"
#import "SentryNSError.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#import "SentryMechanismMeta.h"
#import "SentryMechanismContext.h"
#import "SentryNSDictionarySanitize.h"
#import "SentryNSError.h"

NS_ASSUME_NONNULL_BEGIN

@implementation SentryMechanismMeta
@implementation SentryMechanismContext

- (instancetype)init
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ extension MechanismDecodable: Decodable {
self.handled = try container.decodeIfPresent(NSNumberDecodableWrapper.self, forKey: .handled)?.value
self.synthetic = try container.decodeIfPresent(NSNumberDecodableWrapper.self, forKey: .synthetic)?.value
self.helpLink = try container.decodeIfPresent(String.self, forKey: .helpLink)
self.meta = try container.decodeIfPresent(MechanismMetaDecodable.self, forKey: .meta)
self.meta = try container.decodeIfPresent(MechanismContextDecodable.self, forKey: .meta)
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@_implementationOnly import _SentryPrivate
import Foundation

final class MechanismMetaDecodable: MechanismMeta {
final class MechanismContextDecodable: MechanismContext {
convenience public init(from decoder: any Decoder) throws {
try self.init(decodedFrom: decoder)
}
}

extension MechanismMetaDecodable: Decodable {
extension MechanismContextDecodable: Decodable {

enum CodingKeys: String, CodingKey {
case signal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import SentryTestUtils
import XCTest

class SentryMechanismMetaTests: XCTestCase {
class SentryMechanismContextTests: XCTestCase {

func testSerialize() throws {
let sut = TestData.mechanismMeta
Expand All @@ -28,7 +28,7 @@ class SentryMechanismMetaTests: XCTestCase {
}

func testSerialize_CallsSanitize() {
let sut = MechanismMeta()
let sut = MechanismContext()
sut.machException = ["a": self]
sut.signal = ["a": self]

Expand All @@ -49,7 +49,7 @@ class SentryMechanismMetaTests: XCTestCase {
let data = try XCTUnwrap(SentrySerializationSwift.data(withJSONObject: sut.serialize()))

// Act
let decoded = try XCTUnwrap(decodeFromJSONData(jsonData: data) as MechanismMetaDecodable?)
let decoded = try XCTUnwrap(decodeFromJSONData(jsonData: data) as MechanismContextDecodable?)

// Assert
try assertSignal(actual: decoded.signal, expected: sut.signal)
Expand All @@ -67,7 +67,7 @@ class SentryMechanismMetaTests: XCTestCase {
let data = try XCTUnwrap(SentrySerializationSwift.data(withJSONObject: sut.serialize()))

// Act
let decoded = try XCTUnwrap(decodeFromJSONData(jsonData: data) as MechanismMetaDecodable?)
let decoded = try XCTUnwrap(decodeFromJSONData(jsonData: data) as MechanismContextDecodable?)

// Assert
XCTAssertNil(decoded.signal)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SentryTests/Protocol/TestData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ class TestData {
return mechanism
}

static var mechanismMeta: MechanismMeta {
let mechanismMeta = MechanismMeta()
static var mechanismMeta: MechanismContext {
let mechanismMeta = MechanismContext()
mechanismMeta.machException = [
"name": "EXC_BAD_ACCESS",
"exception": 1,
Expand Down
2 changes: 1 addition & 1 deletion Tests/SentryTests/SentryCrashReportConverterTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#import "SentryException.h"
#import "SentryFrame.h"
#import "SentryMechanism.h"
#import "SentryMechanismMeta.h"
#import "SentryMechanismContext.h"
#import "SentryStacktrace.h"
#import "SentrySwift.h"
#import "SentryThread.h"
Expand Down
2 changes: 1 addition & 1 deletion Tests/SentryTests/SentryTests-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
#import "SentryLogC.h"
#import "SentryLogTestHelper.h"
#import "SentryMechanism.h"
#import "SentryMechanismMeta.h"
#import "SentryMechanismContext.h"
#import "SentryMeta.h"
#import "SentryNSDataUtils.h"
#import "SentryNSDictionarySanitize+Tests.h"
Expand Down
Loading
Loading