Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 12 additions & 12 deletions Sentry.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
15E0A8EA240F2C9000F044E3 /* SentrySerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 15E0A8E9240F2C8F00F044E3 /* SentrySerialization.h */; };
15E0A8ED240F2CB000F044E3 /* SentrySerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 15E0A8EC240F2CB000F044E3 /* SentrySerialization.m */; };
15E0A8F0240F638200F044E3 /* SentrySerializationNilTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 15E0A8EF240F638200F044E3 /* SentrySerializationNilTests.m */; };
15E0A8F22411A45A00F044E3 /* SentrySession.m in Sources */ = {isa = PBXBuildFile; fileRef = 15E0A8F12411A45A00F044E3 /* SentrySession.m */; };
15E0A8F22411A45A00F044E3 /* SentrySessionInternal.m in Sources */ = {isa = PBXBuildFile; fileRef = 15E0A8F12411A45A00F044E3 /* SentrySessionInternal.m */; };
33042A0D29DAF79A00C60085 /* SentryExtraContextProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 33042A0C29DAF79A00C60085 /* SentryExtraContextProvider.m */; };
33042A1729DC2C4300C60085 /* SentryExtraContextProviderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33042A1629DC2C4300C60085 /* SentryExtraContextProviderTests.swift */; };
33EB2A912C3412E4004FED3D /* SentryWithoutUIKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 33EB2A8F2C3411AE004FED3D /* SentryWithoutUIKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -385,7 +385,7 @@
7B4E23B6251A07BD00060D68 /* SentryDispatchQueueWrapperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B4E23B5251A07BD00060D68 /* SentryDispatchQueueWrapperTests.swift */; };
7B4E23BE251A2BD500060D68 /* SentryCrashIntegrationSessionHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B4E23BD251A2BD500060D68 /* SentryCrashIntegrationSessionHandler.h */; };
7B4E23C2251A2C2B00060D68 /* SentryCrashIntegrationSessionHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B4E23C1251A2C2B00060D68 /* SentryCrashIntegrationSessionHandler.m */; };
7B4E24FC251C97B500060D68 /* SentrySession.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B4E24FB251C97B400060D68 /* SentrySession.h */; };
7B4E24FC251C97B500060D68 /* SentrySessionInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B4E24FB251C97B400060D68 /* SentrySessionInternal.h */; };
7B4E375525822C4500059C93 /* SentryAttachment.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B4E375425822C4500059C93 /* SentryAttachment.h */; settings = {ATTRIBUTES = (Public, ); }; };
7B4E375B2582313100059C93 /* SentryAttachmentTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B4E375A2582313100059C93 /* SentryAttachmentTests.swift */; };
7B4E375F258231FC00059C93 /* SentryAttachment.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B4E375E258231FC00059C93 /* SentryAttachment.m */; };
Expand Down Expand Up @@ -563,7 +563,6 @@
7BDEAA022632A4580001EA25 /* SentryOptions+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BDEAA002632A4580001EA25 /* SentryOptions+Private.h */; settings = {ATTRIBUTES = (Private, ); }; };
7BE0DC29272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE0DC28272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift */; };
7BE0DC2F272ABAF6004FA8B7 /* SentryAutoBreadcrumbTrackingIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE0DC2E272ABAF6004FA8B7 /* SentryAutoBreadcrumbTrackingIntegrationTests.swift */; };
7BE1E32824F7AE08009D3AD0 /* SentrySession+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BE1E32624F7AE08009D3AD0 /* SentrySession+Private.h */; };
7BE1E33224F7E3B6009D3AD0 /* SentryMigrateSessionInit.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BE1E33124F7E3B6009D3AD0 /* SentryMigrateSessionInit.h */; };
7BE1E33424F7E3CB009D3AD0 /* SentryMigrateSessionInit.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BE1E33324F7E3CB009D3AD0 /* SentryMigrateSessionInit.m */; };
7BE2C7F8257000A4003B66C7 /* SentryTestIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BE2C7F72570009F003B66C7 /* SentryTestIntegration.m */; };
Expand Down Expand Up @@ -1103,6 +1102,7 @@
FA8E58F12E0AD4270049F69D /* SentryDispatchQueueWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */; };
FA90FAA82E06614E008CAAE8 /* SentryExtraPackages.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */; };
FA90FAFD2E070A3B008CAAE8 /* SentryURLRequestFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90FAFC2E070A3B008CAAE8 /* SentryURLRequestFactory.swift */; };
FAAB29F12E3D252300ACD577 /* SentrySession.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAAB29F02E3D252000ACD577 /* SentrySession.swift */; };
FAAB2F972E4D345800FE8B7E /* SentryUIDeviceWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAAB2F962E4D344F00FE8B7E /* SentryUIDeviceWrapper.swift */; };
FAAB30F32E4E8F2C00FE8B7E /* SentryInAppLogic.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAAB30F22E4E8F2C00FE8B7E /* SentryInAppLogic.swift */; };
FAB359982E05D7E90083D5E3 /* SentryEventSwiftHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = FAB359972E05D7E90083D5E3 /* SentryEventSwiftHelper.h */; };
Expand Down Expand Up @@ -1297,7 +1297,7 @@
15E0A8E9240F2C8F00F044E3 /* SentrySerialization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentrySerialization.h; path = include/SentrySerialization.h; sourceTree = "<group>"; };
15E0A8EC240F2CB000F044E3 /* SentrySerialization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentrySerialization.m; sourceTree = "<group>"; };
15E0A8EF240F638200F044E3 /* SentrySerializationNilTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentrySerializationNilTests.m; sourceTree = "<group>"; };
15E0A8F12411A45A00F044E3 /* SentrySession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentrySession.m; sourceTree = "<group>"; };
15E0A8F12411A45A00F044E3 /* SentrySessionInternal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentrySessionInternal.m; sourceTree = "<group>"; };
33042A0B29DAF5F400C60085 /* SentryExtraContextProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryExtraContextProvider.h; sourceTree = "<group>"; };
33042A0C29DAF79A00C60085 /* SentryExtraContextProvider.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryExtraContextProvider.m; sourceTree = "<group>"; };
33042A1629DC2C4300C60085 /* SentryExtraContextProviderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExtraContextProviderTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1638,7 +1638,7 @@
7B4E23B5251A07BD00060D68 /* SentryDispatchQueueWrapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDispatchQueueWrapperTests.swift; sourceTree = "<group>"; };
7B4E23BD251A2BD500060D68 /* SentryCrashIntegrationSessionHandler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryCrashIntegrationSessionHandler.h; path = include/SentryCrashIntegrationSessionHandler.h; sourceTree = "<group>"; };
7B4E23C1251A2C2B00060D68 /* SentryCrashIntegrationSessionHandler.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCrashIntegrationSessionHandler.m; sourceTree = "<group>"; };
7B4E24FB251C97B400060D68 /* SentrySession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentrySession.h; path = include/SentrySession.h; sourceTree = "<group>"; };
7B4E24FB251C97B400060D68 /* SentrySessionInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentrySessionInternal.h; path = include/SentrySessionInternal.h; sourceTree = "<group>"; };
7B4E375425822C4500059C93 /* SentryAttachment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryAttachment.h; path = Public/SentryAttachment.h; sourceTree = "<group>"; };
7B4E375A2582313100059C93 /* SentryAttachmentTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryAttachmentTests.swift; sourceTree = "<group>"; };
7B4E375E258231FC00059C93 /* SentryAttachment.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryAttachment.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1836,7 +1836,6 @@
7BE0DC28272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryBreadcrumbTrackerTests.swift; sourceTree = "<group>"; };
7BE0DC2E272ABAF6004FA8B7 /* SentryAutoBreadcrumbTrackingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryAutoBreadcrumbTrackingIntegrationTests.swift; sourceTree = "<group>"; };
7BE0DC30272ABCEC004FA8B7 /* SentryAutoBreadcrumbTrackingIntegration+Test.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentryAutoBreadcrumbTrackingIntegration+Test.h"; sourceTree = "<group>"; };
7BE1E32624F7AE08009D3AD0 /* SentrySession+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentrySession+Private.h"; path = "include/SentrySession+Private.h"; sourceTree = "<group>"; };
7BE1E33124F7E3B6009D3AD0 /* SentryMigrateSessionInit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryMigrateSessionInit.h; path = include/SentryMigrateSessionInit.h; sourceTree = "<group>"; };
7BE1E33324F7E3CB009D3AD0 /* SentryMigrateSessionInit.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryMigrateSessionInit.m; sourceTree = "<group>"; };
7BE2C7F625700093003B66C7 /* SentryTestIntegration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryTestIntegration.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2447,6 +2446,7 @@
FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDispatchQueueWrapper.swift; sourceTree = "<group>"; };
FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExtraPackages.swift; sourceTree = "<group>"; };
FA90FAFC2E070A3B008CAAE8 /* SentryURLRequestFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryURLRequestFactory.swift; sourceTree = "<group>"; };
FAAB29F02E3D252000ACD577 /* SentrySession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySession.swift; sourceTree = "<group>"; };
FAAB2F962E4D344F00FE8B7E /* SentryUIDeviceWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIDeviceWrapper.swift; sourceTree = "<group>"; };
FAAB30F22E4E8F2C00FE8B7E /* SentryInAppLogic.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryInAppLogic.swift; sourceTree = "<group>"; };
FAB359972E05D7E90083D5E3 /* SentryEventSwiftHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryEventSwiftHelper.h; path = include/SentryEventSwiftHelper.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2719,9 +2719,8 @@
6360850B1ED2AFE100E8599E /* SentryBreadcrumb.h */,
6360850C1ED2AFE100E8599E /* SentryBreadcrumb.m */,
92672BB529C9A2A9006B021C /* SentryBreadcrumb+Private.h */,
7B4E24FB251C97B400060D68 /* SentrySession.h */,
15E0A8F12411A45A00F044E3 /* SentrySession.m */,
7BE1E32624F7AE08009D3AD0 /* SentrySession+Private.h */,
7B4E24FB251C97B400060D68 /* SentrySessionInternal.h */,
15E0A8F12411A45A00F044E3 /* SentrySessionInternal.m */,
7BFC169A2524995700FF6266 /* SentryMessage.h */,
7BFC16A025249A9D00FF6266 /* SentryMessage.m */,
7B4E375425822C4500059C93 /* SentryAttachment.h */,
Expand Down Expand Up @@ -4328,6 +4327,7 @@
isa = PBXGroup;
children = (
FABB48B22E59310D0071397E /* Transaction */,
FAAB29F02E3D252000ACD577 /* SentrySession.swift */,
FA67DCF32DDBD4EA00896B02 /* Core */,
D8CAC02D2BA0663E00E38F34 /* Integrations */,
621D9F2D2B9B030E003D94DE /* Helper */,
Expand Down Expand Up @@ -5116,7 +5116,6 @@
7B63459D280EBA6300CFA05A /* SentryUIEventTracker.h in Headers */,
7B7D873424864C6600D2ECFF /* SentryCrashDefaultMachineContextWrapper.h in Headers */,
7BA61CC8247D125400C130A8 /* SentryThreadInspector.h in Headers */,
7BE1E32824F7AE08009D3AD0 /* SentrySession+Private.h in Headers */,
7B5CAF7127F5953400ED0DB6 /* SentryEnvelope+Private.h in Headers */,
63FE713320DA4C1100CDBAE8 /* SentryCrashCPU.h in Headers */,
6271ADF32BA06D9B0098D2E9 /* SentryInternalSerializable.h in Headers */,
Expand Down Expand Up @@ -5177,7 +5176,7 @@
6292585E2DAFA8290049388F /* SentryCrashMach-O.h in Headers */,
63FE715320DA4C1100CDBAE8 /* SentryCrashObjCApple.h in Headers */,
63FE710120DA4C1000CDBAE8 /* SentryCrashDate.h in Headers */,
7B4E24FC251C97B500060D68 /* SentrySession.h in Headers */,
7B4E24FC251C97B500060D68 /* SentrySessionInternal.h in Headers */,
D8B665BC2B95F73200BD0E7B /* SentryPrivate.h in Headers */,
7B7D872C2486480B00D2ECFF /* SentryStacktraceBuilder.h in Headers */,
7B42C48027E08F33009B58C2 /* SentryDependencyContainer.h in Headers */,
Expand Down Expand Up @@ -5759,6 +5758,7 @@
D41415A72DEEE532003B14D5 /* SentryRedactViewHelper.swift in Sources */,
FA67DD002DDBD4EA00896B02 /* SentryMaskRenderer.swift in Sources */,
FA67DD012DDBD4EA00896B02 /* SentryMXCallStackTree.swift in Sources */,
FAAB29F12E3D252300ACD577 /* SentrySession.swift in Sources */,
FA67DD022DDBD4EA00896B02 /* SentryViewScreenshotProvider.swift in Sources */,
FA67DD032DDBD4EA00896B02 /* SentryTransactionNameSource.swift in Sources */,
FA67DD042DDBD4EA00896B02 /* SwiftDescriptor.swift in Sources */,
Expand Down Expand Up @@ -5800,7 +5800,7 @@
D4ECA4012E3CBEDE00C757EA /* SentryDummyPublicEmptyClass.m in Sources */,
D4ECA4022E3CBEDE00C757EA /* SentryDummyPrivateEmptyClass.m in Sources */,
D80299502BA83A88000F0081 /* SentryPixelBuffer.swift in Sources */,
15E0A8F22411A45A00F044E3 /* SentrySession.m in Sources */,
15E0A8F22411A45A00F044E3 /* SentrySessionInternal.m in Sources */,
D83D079C2B7F9D1C00CC9674 /* SentryMsgPackSerializer.m in Sources */,
D452FCBF2DDB6FD200AFF56F /* SentryWatchdogTerminationAttributesProcessor.swift in Sources */,
7B6D1261265F784000C9BE4B /* PrivateSentrySDKOnly.m in Sources */,
Expand Down
8 changes: 8 additions & 0 deletions SentryTestUtils/TestClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public class TestClient: SentryClient {
)
}

@_spi(Private)
public var captureSessionInvocations = Invocations<SentrySession>()
@_spi(Private)
public override func capture(session: SentrySession) {
captureSessionInvocations.record(session)
}
Expand Down Expand Up @@ -84,13 +86,17 @@ public class TestClient: SentryClient {
}

public var callSessionBlockWithIncrementSessionErrors = true
@_spi(Private)
public var captureErrorWithSessionInvocations = Invocations<(error: Error, session: SentrySession?, scope: Scope)>()
@_spi(Private)
public override func captureError(_ error: Error, with scope: Scope, incrementSessionErrors sessionBlock: @escaping () -> SentrySession) -> SentryId {
captureErrorWithSessionInvocations.record((error, callSessionBlockWithIncrementSessionErrors ? sessionBlock() : nil, scope))
return SentryId()
}

@_spi(Private)
public var captureExceptionWithSessionInvocations = Invocations<(exception: NSException, session: SentrySession?, scope: Scope)>()
@_spi(Private)
public override func capture(_ exception: NSException, with scope: Scope, incrementSessionErrors sessionBlock: @escaping () -> SentrySession) -> SentryId {
captureExceptionWithSessionInvocations.record((exception, callSessionBlockWithIncrementSessionErrors ? sessionBlock() : nil, scope))
return SentryId()
Expand All @@ -102,7 +108,9 @@ public class TestClient: SentryClient {
return SentryId()
}

@_spi(Private)
public var captureFatalEventWithSessionInvocations = Invocations<(event: Event, session: SentrySession, scope: Scope)>()
@_spi(Private)
public override func captureFatalEvent(_ event: Event, with session: SentrySession, with scope: Scope) -> SentryId {
captureFatalEventWithSessionInvocations.record((event, session, scope))
return SentryId()
Expand Down
2 changes: 2 additions & 0 deletions SentryTestUtils/TestTransportAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import _SentryPrivate
import Foundation

public class TestTransportAdapter: SentryTransportAdapter {
@_spi(Private)
public var sentEventsWithSessionTraceState = Invocations<(event: Event, session: SentrySession, traceContext: TraceContext?, attachments: [Attachment])>()
@_spi(Private)
public override func send(_ event: Event, with session: SentrySession, traceContext: TraceContext?, attachments: [Attachment]) {
sentEventsWithSessionTraceState.record((event, session, traceContext, attachments))
}
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentryClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#import "SentryScope+Private.h"
#import "SentryScope+PrivateSwift.h"
#import "SentrySerialization.h"
#import "SentrySession.h"
#import "SentryStacktraceBuilder.h"
#import "SentrySwift.h"
#import "SentryThreadInspector.h"
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentryCrashIntegrationSessionHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#import "SentryInternalDefines.h"
#import "SentryLogC.h"
#import "SentrySDK+Private.h"
#import "SentrySession.h"
#import "SentrySwift.h"
#import "SentryWatchdogTerminationLogic.h"

Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentryEnvelope.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import "SentryMessage.h"
#import "SentryMsgPackSerializer.h"
#import "SentrySerialization.h"
#import "SentrySession.h"
#import "SentrySwift.h"
#import "SentryTransaction.h"

Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentryHub.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#import "SentrySamplingContext.h"
#import "SentryScope+Private.h"
#import "SentrySerialization.h"
#import "SentrySession+Private.h"
#import "SentrySwift.h"
#import "SentryTraceOrigin.h"
#import "SentryTracer.h"
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentryMigrateSessionInit.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#import "SentryEnvelopeItemType.h"
#import "SentryLogC.h"
#import "SentrySerialization.h"
#import "SentrySession+Private.h"
#import "SentrySwift.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentryScope.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import "SentryScope+Private.h"
#import "SentryScope+PrivateSwift.h"
#import "SentryScopeObserver.h"
#import "SentrySession.h"
#import "SentrySpan.h"
#import "SentrySwift.h"
#import "SentryTracer.h"
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentrySerialization.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#import "SentryLevelMapper.h"
#import "SentryLogC.h"
#import "SentryModels+Serializable.h"
#import "SentrySession.h"
#import "SentrySwift.h"
#import "SentryTraceContext.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#import "SentrySessionInternal.h"
#import "NSMutableDictionary+Sentry.h"
#import "SentryDateUtils.h"
#import "SentryDependencyContainer.h"
#import "SentryLogC.h"
#import "SentrySession+Private.h"
#import "SentrySwift.h"

NS_ASSUME_NONNULL_BEGIN
Expand All @@ -11,19 +11,19 @@
nameForSentrySessionStatus(SentrySessionStatus status)
{
switch (status) {
case kSentrySessionStatusOk:
case SentrySessionStatusOk:
return @"ok";
case kSentrySessionStatusExited:
case SentrySessionStatusExited:
return @"exited";
case kSentrySessionStatusCrashed:
case SentrySessionStatusCrashed:
return @"crashed";
break;
case kSentrySessionStatusAbnormal:
case SentrySessionStatusAbnormal:
return @"abnormal";
}
}

@implementation SentrySession
@implementation SentrySessionInternal

@synthesize flagInit = _init;

Expand Down Expand Up @@ -251,9 +251,9 @@ - (void)incrementErrors
}
}

- (id)copyWithZone:(nullable NSZone *)zone
- (SentrySessionInternal *)safeCopyWithZone:(nullable NSZone *)zone
{
SentrySession *copy = [[[self class] allocWithZone:zone] init];
SentrySessionInternal *copy = [[[self class] allocWithZone:zone] init];

if (copy != nil) {
copy->_sessionId = _sessionId;
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#import "SentrySDKInternal.h"
#import "SentryScope+PrivateSwift.h"
#import "SentrySerialization.h"
#import "SentrySession.h"
#import "SentrySessionInternal.h"
#import "SentrySpanDataKey.h"
#import "SentrySpanOperation.h"
#import "SentryTraceHeader.h"
Expand Down
Loading
Loading