Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
21c6c8b
chore: Convert SentrySessionReplayIntegration to Swift
itaybre Dec 29, 2025
05b8aac
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/co…
itaybre Dec 29, 2025
55e1bdf
Fix UIKit import
itaybre Dec 29, 2025
33ca173
Refactor UIKit import placement in SentrySessionReplayIntegration.swift
itaybre Dec 29, 2025
26fdc28
Refactor SentryDisplayLinkWrapper to remove direct implementation of …
itaybre Dec 29, 2025
86ef006
Add helper for testing
itaybre Dec 29, 2025
6bf265a
Add typealias and helper method
itaybre Dec 29, 2025
19556d3
Refactor SwiftIntegration protocol implementation by removing conditi…
itaybre Dec 29, 2025
f0f165c
Test
itaybre Dec 29, 2025
f48ec3d
Try add to hub inside integration
itaybre Dec 29, 2025
6b7a5e3
Split SessionReplay integration
itaybre Dec 29, 2025
5e0c2d0
Fix broken tests on iOS/tvOS 26
itaybre Dec 30, 2025
67a1291
Remove unnecessary function
itaybre Dec 30, 2025
b64393c
Split logic into different files
itaybre Dec 30, 2025
74369e2
Fix unintentional changes
itaybre Dec 30, 2025
5d451e1
Remove `SentrySessionReplayIntegrationObjC`
itaybre Dec 30, 2025
41cb9e0
Update SentrySessionListener protocol to use custom selector names fo…
itaybre Jan 9, 2026
74f8ac9
Refactor SentrySessionReplayIntegration and SessionReplayFileManager …
itaybre Jan 10, 2026
44f6fa0
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/co…
itaybre Jan 10, 2026
9d97e4c
Refactor SentrySessionReplayIntegration and SessionReplayRecovery to …
itaybre Jan 10, 2026
7f16aaf
Improve window count check in SentrySessionReplayIntegration for bett…
itaybre Jan 10, 2026
fd54a17
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/co…
itaybre Jan 20, 2026
fca397a
Remove broken import
itaybre Jan 20, 2026
1d5dd70
Fix build on macOS and watchOS
itaybre Jan 20, 2026
3ce1fc8
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/co…
itaybre Jan 22, 2026
bc2e9cc
Add missing early return when no videos are generated
itaybre Jan 22, 2026
eb5413c
Refactor integration order in SentrySwiftIntegrationInstaller
itaybre Jan 22, 2026
0c81279
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/co…
itaybre Jan 23, 2026
24e2fa5
Feedback
itaybre Jan 23, 2026
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
17 changes: 5 additions & 12 deletions Sentry.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,6 @@
D8199DC129376EEC0074249E /* SentryTracedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8199DB629376ECC0074249E /* SentryTracedView.swift */; };
D81A346C291AECC7005A27A9 /* PrivateSentrySDKOnly.h in Headers */ = {isa = PBXBuildFile; fileRef = D81A346B291AECC7005A27A9 /* PrivateSentrySDKOnly.h */; settings = {ATTRIBUTES = (Public, ); }; };
D81FDF12280EA1060045E0E4 /* SentryScreenshotSourceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D81FDF10280EA0080045E0E4 /* SentryScreenshotSourceTests.swift */; };
D820CDB72BB1895F00BA339D /* SentrySessionReplayIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = D820CDB62BB1895F00BA339D /* SentrySessionReplayIntegration.m */; };
D820CDB82BB1895F00BA339D /* SentrySessionReplayIntegration.h in Headers */ = {isa = PBXBuildFile; fileRef = D820CDB52BB1895F00BA339D /* SentrySessionReplayIntegration.h */; settings = {ATTRIBUTES = (Private, ); }; };
D82859432C3E753C009A28AA /* SentrySessionReplaySyncC.c in Sources */ = {isa = PBXBuildFile; fileRef = D82859422C3E753C009A28AA /* SentrySessionReplaySyncC.c */; };
D82859442C3E753C009A28AA /* SentrySessionReplaySyncC.h in Headers */ = {isa = PBXBuildFile; fileRef = D82859412C3E753C009A28AA /* SentrySessionReplaySyncC.h */; };
D82915632C85EF0C00A6CDD4 /* SentryViewPhotographerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D82915622C85EF0C00A6CDD4 /* SentryViewPhotographerTests.swift */; };
Expand Down Expand Up @@ -1883,7 +1881,6 @@
D4AF7D252E9401EB004F0F59 /* SentryUIRedactBuilderTests+UIKit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryUIRedactBuilderTests+UIKit.swift"; sourceTree = "<group>"; };
D4AF7D292E940492004F0F59 /* SentryUIRedactBuilderTests+Common.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryUIRedactBuilderTests+Common.swift"; sourceTree = "<group>"; };
D4AF7D2B2E9404ED004F0F59 /* SentryUIRedactBuilderTests+EdgeCases.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryUIRedactBuilderTests+EdgeCases.swift"; sourceTree = "<group>"; };
D4BCA0C22DA93C25009E49AB /* SentrySessionReplayIntegration+Test.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentrySessionReplayIntegration+Test.h"; sourceTree = "<group>"; };
D4C5F5992D4249E0002A9BF6 /* DataSentryTracingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataSentryTracingIntegrationTests.swift; sourceTree = "<group>"; };
D4CA34822E378C9000E92A61 /* SentryArrayTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryArrayTests.swift; sourceTree = "<group>"; };
D4CBA2432DE06D0200581618 /* SentryTestUtilsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SentryTestUtilsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -1924,8 +1921,6 @@
D8199DD029377C130074249E /* SentrySwiftUI.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; path = SentrySwiftUI.podspec; sourceTree = "<group>"; };
D81A346B291AECC7005A27A9 /* PrivateSentrySDKOnly.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PrivateSentrySDKOnly.h; path = Public/PrivateSentrySDKOnly.h; sourceTree = "<group>"; };
D81FDF10280EA0080045E0E4 /* SentryScreenshotSourceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryScreenshotSourceTests.swift; sourceTree = "<group>"; };
D820CDB52BB1895F00BA339D /* SentrySessionReplayIntegration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentrySessionReplayIntegration.h; path = include/SentrySessionReplayIntegration.h; sourceTree = "<group>"; };
D820CDB62BB1895F00BA339D /* SentrySessionReplayIntegration.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentrySessionReplayIntegration.m; sourceTree = "<group>"; };
D82859412C3E753C009A28AA /* SentrySessionReplaySyncC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentrySessionReplaySyncC.h; path = include/SentrySessionReplaySyncC.h; sourceTree = "<group>"; };
D82859422C3E753C009A28AA /* SentrySessionReplaySyncC.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = SentrySessionReplaySyncC.c; sourceTree = "<group>"; };
D82915622C85EF0C00A6CDD4 /* SentryViewPhotographerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryViewPhotographerTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1992,7 +1987,6 @@
D8AE48BE2C578D540092A2A6 /* SentrySDKLog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySDKLog.swift; sourceTree = "<group>"; };
D8AE48C02C57B1550092A2A6 /* SentryLevelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryLevelTests.swift; sourceTree = "<group>"; };
D8AFC0002BD252B900118BE1 /* SentryOnDemandReplayTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryOnDemandReplayTests.swift; sourceTree = "<group>"; };
D8AFC0612BDBEDF100118BE1 /* SentrySessionReplayIntegration+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentrySessionReplayIntegration+Private.h"; path = "include/SentrySessionReplayIntegration+Private.h"; sourceTree = "<group>"; };
D8B0542D2A7D2C720056BAF6 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
D8B088B429C9E3FF00213258 /* SentryTracerConfiguration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryTracerConfiguration.h; path = include/SentryTracerConfiguration.h; sourceTree = "<group>"; };
D8B088B529C9E3FF00213258 /* SentryTracerConfiguration.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryTracerConfiguration.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2054,6 +2048,7 @@
F4DC35572E1FFE1B0077CE89 /* SentryVideoFrameProcessorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryVideoFrameProcessorTests.swift; sourceTree = "<group>"; };
F4DCC9DC2E4AA9D0008ECE45 /* SentrySDKSettingsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySDKSettingsTests.swift; sourceTree = "<group>"; };
F4EF69222E95ABE800B6B46A /* SentryCrashMachineContextTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCrashMachineContextTests.m; sourceTree = "<group>"; };
F4F46EF62EFF226000F4CED1 /* SentryHub+SwiftPrivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryHub+SwiftPrivate.h"; path = "include/SentryHub+SwiftPrivate.h"; sourceTree = "<group>"; };
F9116D224D22C6533E4F6434 /* PropertyExtractor.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = PropertyExtractor.swift; sourceTree = "<group>"; };
FA034AC72DD3DB4900FE3107 /* SentryIntegrationProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryIntegrationProtocol.h; path = include/SentryIntegrationProtocol.h; sourceTree = "<group>"; };
FA21A2E92E60E9C700E7EADB /* EnvelopeComparison.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnvelopeComparison.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2418,6 +2413,7 @@
7D0FCFB02379B915004DD83A /* SentryHub.h */,
7D5C4419237C2E1F00DAB0A3 /* SentryHub.m */,
7B610D622512399600B0B5D9 /* SentryHub+Private.h */,
F4F46EF62EFF226000F4CED1 /* SentryHub+SwiftPrivate.h */,
7D0637022382B34300B30749 /* SentryScope.h */,
7D65260B237F649E00113EA2 /* SentryScope.m */,
632331F7240506DF008D91D6 /* SentryScope+Private.h */,
Expand Down Expand Up @@ -3875,7 +3871,6 @@
D80694C22B7CC86E00B820E6 /* SentryReplayEventTests.swift */,
D80694C52B7CCFA100B820E6 /* SentryReplayRecordingTests.swift */,
D86130112BB563FD004C0F5E /* SentrySessionReplayIntegrationTests.swift */,
D4BCA0C22DA93C25009E49AB /* SentrySessionReplayIntegration+Test.h */,
D861301B2BB5A267004C0F5E /* SentrySessionReplayTests.swift */,
D8AFC0002BD252B900118BE1 /* SentryOnDemandReplayTests.swift */,
D82DD1CC2BEEB1A0001AB556 /* SentrySRDefaultBreadcrumbConverterTests.swift */,
Expand All @@ -3899,11 +3894,8 @@
D80CD8D52B752FD9002F710B /* SessionReplay */ = {
isa = PBXGroup;
children = (
D820CDB52BB1895F00BA339D /* SentrySessionReplayIntegration.h */,
D80382BE2C09C6FD0090E048 /* SentrySessionReplayHybridSDK.h */,
FAA414502ED7608E00B269CD /* SentrySessionReplayHybridSDK.m */,
D8AFC0612BDBEDF100118BE1 /* SentrySessionReplayIntegration+Private.h */,
D820CDB62BB1895F00BA339D /* SentrySessionReplayIntegration.m */,
D82859412C3E753C009A28AA /* SentrySessionReplaySyncC.h */,
D82859422C3E753C009A28AA /* SentrySessionReplaySyncC.c */,
D8A3649A2C91AA3300AC569B /* SentryReplayApi.h */,
Expand Down Expand Up @@ -4248,7 +4240,6 @@
F48F75732E5FA649009D4E7D /* SentryBinaryImageCacheCallbacks.h in Headers */,
63FE718520DA4C1100CDBAE8 /* SentryCrashC.h in Headers */,
8EA1ED0D2669028C00E62B98 /* SentryUIViewControllerSwizzling.h in Headers */,
D820CDB82BB1895F00BA339D /* SentrySessionReplayIntegration.h in Headers */,
F49D419C2DEA30C300D9244E /* SentryCrashExceptionApplicationHelper.h in Headers */,
A8AFFCCD29069C3E00967CD7 /* SentryHttpStatusCodeRange.h in Headers */,
FAAB95DE2EA1EB470030A2DB /* SentryDeviceContextKeys.h in Headers */,
Expand Down Expand Up @@ -4303,6 +4294,7 @@
8E564AEF267AF24400FE117D /* SentryNetworkTracker.h in Headers */,
F44D2B5C2E6B7E8700FF31FA /* SentryProfilingScreenFramesHelper.h in Headers */,
63FE715120DA4C1100CDBAE8 /* SentryCrashDebug.h in Headers */,
F4F46EF72EFF226000F4CED1 /* SentryHub+SwiftPrivate.h in Headers */,
63FE70F520DA4C1000CDBAE8 /* SentryCrashMonitor_System.h in Headers */,
FAB359982E05D7E90083D5E3 /* SentryEventSwiftHelper.h in Headers */,
7B31C291277B04A000337126 /* SentryCrashPlatformSpecificDefines.h in Headers */,
Expand Down Expand Up @@ -4839,6 +4831,7 @@
6292585B2DAFA5F70049388F /* SentryCrashCxaThrowSwapper.c in Sources */,
92D957732E05A44600E20E66 /* SentryAsyncLog.m in Sources */,
7B63459B280EB9E200CFA05A /* SentryUIEventTrackingIntegration.m in Sources */,
F4CF8E7C2F031F0400F0FB13 /* SentrySessionListener.swift in Sources */,
15E0A8ED240F2CB000F044E3 /* SentrySerialization.m in Sources */,
7BC85235245880AE005A70F0 /* SentryDataCategoryMapper.m in Sources */,
D8ACE3C92762187200F5A213 /* SentryFileIOTrackingIntegration.m in Sources */,
Expand Down Expand Up @@ -4970,6 +4963,7 @@
639FCFAD1EBC811400778193 /* SentryUser.m in Sources */,
63FE711920DA4C1000CDBAE8 /* SentryCrashMachineContext.c in Sources */,
63FE711B20DA4C1000CDBAE8 /* SentryCrashString.c in Sources */,
F4A2702B2EFC868E00C2364C /* SentrySessionReplayIntegration.swift in Sources */,
7B14089824878F950035403D /* SentryCrashStackEntryMapper.m in Sources */,
63FE711720DA4C1000CDBAE8 /* SentryCrashStackCursor_Backtrace.c in Sources */,
63FE70CB20DA4C1000CDBAE8 /* SentryCrashReportFixer.c in Sources */,
Expand Down Expand Up @@ -5006,7 +5000,6 @@
62E59A5A2E8FB85300DB7A7B /* SentryTracePropagation.m in Sources */,
0A2D8D5B289815C0008720F6 /* SentryBaseIntegration.m in Sources */,
639FCF991EBC7B9700778193 /* SentryEvent.m in Sources */,
D820CDB72BB1895F00BA339D /* SentrySessionReplayIntegration.m in Sources */,
FAAB964C2EA688E50030A2DB /* SentryANRStoppedResultInternal.m in Sources */,
632F43521F581D5400A18A36 /* SentryCrashExceptionApplication.m in Sources */,
620379DD2AFE1432005AC0C1 /* SentryBuildAppStartSpans.m in Sources */,
Expand Down
4 changes: 0 additions & 4 deletions SentryTestUtils/Sources/TestDisplayLinkWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,3 @@ public enum FrameRate: UInt64 {
}

#endif

#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
extension TestDisplayLinkWrapper: SentryReplayDisplayLinkWrapper {}
#endif
5 changes: 3 additions & 2 deletions SentryTestUtils/Sources/TestHub.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ public class TestHub: SentryHubInternal {

public var onReplayCapture: (() -> Void)?
@_spi(Private) public var capturedReplayRecordingVideo = Invocations<(replay: SentryReplayEvent, recording: SentryReplayRecording, video: URL)>()
@_spi(Private) public override func capture(_ replayEvent: SentryReplayEvent, replayRecording: SentryReplayRecording, video videoURL: URL) {
capturedReplayRecordingVideo.record((replayEvent, replayRecording, videoURL))

@_spi(Private) public override func captureReplayEvent(_ replayEvent: Any, replayRecording: Any, video videoURL: URL) {
capturedReplayRecordingVideo.record((replayEvent as! SentryReplayEvent, replayRecording as! SentryReplayRecording, videoURL))
onReplayCapture?()
}
#if canImport(UIKit) && !SENTRY_NO_UIKIT
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/PrivateSentrySDKOnly.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#import "SentryProfileCollector.h"
#import "SentrySDK+Private.h"
#import "SentrySerialization.h"
#import "SentrySessionReplayIntegration+Private.h"
#import "SentrySwift.h"
#import "SentryUser+Private.h"
#import <SentryBreadcrumb.h>
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/Public/PrivateSentrySDKOnly.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@class SentryEnvelope;
@class SentryId;
@class SentrySpanId;
@class SentrySessionReplayIntegration;
@class UIView;

@protocol SentryReplayBreadcrumbConverter;
Expand Down
6 changes: 3 additions & 3 deletions Sources/Sentry/SentryHub.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#import "SentrySamplingContext.h"
#import "SentryScope+Private.h"
#import "SentrySerialization.h"
#import "SentrySessionReplayIntegration+Private.h"
#import "SentrySwift.h"
#import "SentryTime.h"
#import "SentryTraceOrigin.h"
Expand Down Expand Up @@ -129,7 +128,8 @@ - (void)startSession
endSessionExitedWithTimestamp:[SentryDependencyContainer.sharedInstance.dateProvider date]];
[self captureSession:lastSession];

[_sessionListener sentrySessionStarted:SENTRY_UNWRAP_NULLABLE(SentrySession, _session)];
[_sessionListener
sentrySessionStartedWithSession:SENTRY_UNWRAP_NULLABLE(SentrySession, _session)];
}

- (void)endSession
Expand All @@ -154,7 +154,7 @@ - (void)endSessionWithTimestamp:(NSDate *)timestamp
[currentSession endSessionExitedWithTimestamp:timestamp];
[self captureSession:currentSession];

[_sessionListener sentrySessionEnded:currentSession];
[_sessionListener sentrySessionEndedWithSession:currentSession];
}

- (void)storeCurrentSession:(SentrySession *)session
Expand Down
16 changes: 11 additions & 5 deletions Sources/Sentry/SentryReplayApi.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# import "SentryInternalDefines.h"
# import "SentryLogC.h"
# import "SentrySDK+Private.h"
# import "SentrySessionReplayIntegration+Private.h"
# import "SentrySwift.h"
# import <UIKit/UIKit.h>

Expand Down Expand Up @@ -59,19 +58,26 @@ - (void)start SENTRY_DISABLE_THREAD_SANITIZER("double-checked lock produce false
if (replayIntegration == nil && SentrySDKInternal.currentHub.client.options) {
SentryOptions *currentOptions = SENTRY_UNWRAP_NULLABLE(
SentryOptions, SentrySDKInternal.currentHub.client.options);
if (![SentrySessionReplayIntegration shouldEnableForOptions:currentOptions]) {
SentryDependencyContainer *sharedContainer =
[SentryDependencyContainer sharedInstance];
if (![SentrySessionReplay
shouldEnableSessionReplayWithEnvironmentChecker:
[sharedContainer sessionReplayEnvironmentChecker]
experimentalOptions:currentOptions
.experimental]) {
SENTRY_LOG_ERROR(@"[Session Replay] Session replay is disabled due to "
@"environment potentially causing PII leaks.");
return;
}
SENTRY_LOG_DEBUG(@"[Session Replay] Initializing replay integration");

replayIntegration =
[[SentrySessionReplayIntegration alloc] initForManualUse:currentOptions];
[[SentrySessionReplayIntegration alloc] initForManualUseWith:currentOptions
dependencies:sharedContainer];

[SentrySDKInternal.currentHub
addInstalledIntegration:replayIntegration
name:NSStringFromClass(SentrySessionReplay.class)];
addInstalledIntegration:(id<SentryIntegrationProtocol>)replayIntegration
name:[SentrySessionReplayIntegration name]];
}
}
}
Expand Down
7 changes: 1 addition & 6 deletions Sources/Sentry/SentrySDKInternal.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#import "SentrySamplingContext.h"
#import "SentryScope.h"
#import "SentrySerialization.h"
#import "SentrySessionReplayIntegration.h"
#import "SentrySpanInternal.h"
#import "SentrySwift.h"
#import "SentryTransactionContext.h"
Expand Down Expand Up @@ -500,13 +499,9 @@ + (void)endSession
+ (NSArray<Class> *)defaultIntegrationClasses
{
// The order of integrations here is important.
// SentrySessionReplayIntegration needs to be initialized before SentryCrashIntegration.
NSMutableArray<Class> *defaultIntegrations = [NSMutableArray<Class> arrayWithObjects:
#if SENTRY_TARGET_REPLAY_SUPPORTED
[SentrySessionReplayIntegration class],
#endif // SENTRY_TARGET_REPLAY_SUPPORTED
#if SENTRY_HAS_UIKIT
[SentryAppStartTrackingIntegration class], [SentryPerformanceTrackingIntegration class],
[SentryAppStartTrackingIntegration class], [SentryPerformanceTrackingIntegration class],
[SentryUIEventTrackingIntegration class],
#endif // SENTRY_HAS_UIKIT
[SentryAutoBreadcrumbTrackingIntegration class], [SentryCoreDataTrackingIntegration class],
Expand Down
Loading
Loading