Skip to content

Commit

Permalink
Merge 77f76c0 into 7fe37ab
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin authored Mar 12, 2024
2 parents 7fe37ab + 77f76c0 commit b3f2b49
Show file tree
Hide file tree
Showing 36 changed files with 71 additions and 41 deletions.
18 changes: 14 additions & 4 deletions Sentry.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,6 @@
7DB3A687238EA75E00A2D442 /* SentryHttpTransport.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DB3A684238EA75E00A2D442 /* SentryHttpTransport.m */; };
7DC27EC523997EB7006998B5 /* SentryAutoBreadcrumbTrackingIntegration.h in Headers */ = {isa = PBXBuildFile; fileRef = 7DC27EC323997EB7006998B5 /* SentryAutoBreadcrumbTrackingIntegration.h */; };
7DC27EC723997EB7006998B5 /* SentryAutoBreadcrumbTrackingIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DC27EC423997EB7006998B5 /* SentryAutoBreadcrumbTrackingIntegration.m */; };
7DC83100239826280043DD9A /* SentryIntegrationProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 7DC830FF239826280043DD9A /* SentryIntegrationProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; };
7DC8310A2398283C0043DD9A /* SentryCrashIntegration.h in Headers */ = {isa = PBXBuildFile; fileRef = 7DC831082398283C0043DD9A /* SentryCrashIntegration.h */; };
7DC8310C2398283C0043DD9A /* SentryCrashIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DC831092398283C0043DD9A /* SentryCrashIntegration.m */; };
840A11122B61E27500650D02 /* SentrySamplerDecision.m in Sources */ = {isa = PBXBuildFile; fileRef = 840A11102B61E27500650D02 /* SentrySamplerDecision.m */; };
Expand Down Expand Up @@ -825,6 +824,8 @@
D8C66A372A77B1F70015696A /* SentryPropagationContext.m in Sources */ = {isa = PBXBuildFile; fileRef = D8C66A352A77B1F70015696A /* SentryPropagationContext.m */; };
D8C67E9B28000E24007E326E /* SentryUIApplication.h in Headers */ = {isa = PBXBuildFile; fileRef = D8C67E9928000E23007E326E /* SentryUIApplication.h */; };
D8C67E9C28000E24007E326E /* SentryScreenshot.h in Headers */ = {isa = PBXBuildFile; fileRef = D8C67E9A28000E23007E326E /* SentryScreenshot.h */; };
D8CAC0412BA0984500E38F34 /* SentryIntegrationProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8CAC0402BA0984500E38F34 /* SentryIntegrationProtocol.swift */; };
D8CAC0502BA0AF3900E38F34 /* SentryIntegrationProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = D8CAC04F2BA0AE3E00E38F34 /* SentryIntegrationProtocol.h */; };
D8CB74152947246600A5F964 /* SentryEnvelopeAttachmentHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = D8CB74142947246600A5F964 /* SentryEnvelopeAttachmentHeader.h */; };
D8CB7417294724CC00A5F964 /* SentryEnvelopeAttachmentHeader.m in Sources */ = {isa = PBXBuildFile; fileRef = D8CB7416294724CC00A5F964 /* SentryEnvelopeAttachmentHeader.m */; };
D8CB74192947285A00A5F964 /* SentryEnvelopeItemHeader.h in Headers */ = {isa = PBXBuildFile; fileRef = D8CB74182947285A00A5F964 /* SentryEnvelopeItemHeader.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -1546,7 +1547,6 @@
7DC27E9823995F97006998B5 /* Sentry.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; name = Sentry.modulemap; path = ../Resources/Sentry.modulemap; sourceTree = "<group>"; };
7DC27EC323997EB7006998B5 /* SentryAutoBreadcrumbTrackingIntegration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryAutoBreadcrumbTrackingIntegration.h; path = include/SentryAutoBreadcrumbTrackingIntegration.h; sourceTree = "<group>"; };
7DC27EC423997EB7006998B5 /* SentryAutoBreadcrumbTrackingIntegration.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryAutoBreadcrumbTrackingIntegration.m; sourceTree = "<group>"; };
7DC830FF239826280043DD9A /* SentryIntegrationProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryIntegrationProtocol.h; path = Public/SentryIntegrationProtocol.h; sourceTree = "<group>"; };
7DC831082398283C0043DD9A /* SentryCrashIntegration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryCrashIntegration.h; path = include/SentryCrashIntegration.h; sourceTree = "<group>"; };
7DC831092398283C0043DD9A /* SentryCrashIntegration.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCrashIntegration.m; sourceTree = "<group>"; };
840A11092B5F47F700650D02 /* SentryAppLaunchProfilingTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryAppLaunchProfilingTests.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1796,6 +1796,8 @@
D8C66A352A77B1F70015696A /* SentryPropagationContext.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryPropagationContext.m; sourceTree = "<group>"; };
D8C67E9928000E23007E326E /* SentryUIApplication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryUIApplication.h; path = include/SentryUIApplication.h; sourceTree = "<group>"; };
D8C67E9A28000E23007E326E /* SentryScreenshot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryScreenshot.h; path = include/SentryScreenshot.h; sourceTree = "<group>"; };
D8CAC0402BA0984500E38F34 /* SentryIntegrationProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryIntegrationProtocol.swift; sourceTree = "<group>"; };
D8CAC04F2BA0AE3E00E38F34 /* SentryIntegrationProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryIntegrationProtocol.h; path = include/SentryIntegrationProtocol.h; sourceTree = "<group>"; };
D8CB74142947246600A5F964 /* SentryEnvelopeAttachmentHeader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryEnvelopeAttachmentHeader.h; path = include/SentryEnvelopeAttachmentHeader.h; sourceTree = "<group>"; };
D8CB7416294724CC00A5F964 /* SentryEnvelopeAttachmentHeader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryEnvelopeAttachmentHeader.m; sourceTree = "<group>"; };
D8CB74182947285A00A5F964 /* SentryEnvelopeItemHeader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryEnvelopeItemHeader.h; path = Public/SentryEnvelopeItemHeader.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1985,7 +1987,6 @@
6360850B1ED2AFE100E8599E /* SentryBreadcrumb.h */,
6360850C1ED2AFE100E8599E /* SentryBreadcrumb.m */,
92672BB529C9A2A9006B021C /* SentryBreadcrumb+Private.h */,
7DC830FF239826280043DD9A /* SentryIntegrationProtocol.h */,
7B4E24FB251C97B400060D68 /* SentrySession.h */,
15E0A8F12411A45A00F044E3 /* SentrySession.m */,
7BE1E32624F7AE08009D3AD0 /* SentrySession+Private.h */,
Expand All @@ -2006,6 +2007,7 @@
7BC9A20528F41781001E7C4C /* SentryMeasurementUnit.m */,
A8F17B2D2901765900990B25 /* SentryRequest.m */,
A8AFFCCE2906C03700967CD7 /* SentryRequest.h */,
D8CAC04F2BA0AE3E00E38F34 /* SentryIntegrationProtocol.h */,
);
name = Protocol;
sourceTree = "<group>";
Expand Down Expand Up @@ -3498,6 +3500,7 @@
isa = PBXGroup;
children = (
D8F016B22B9622D6007B9AFB /* SentryId.swift */,
D8CAC0402BA0984500E38F34 /* SentryIntegrationProtocol.swift */,
);
path = Protocol;
sourceTree = "<group>";
Expand Down Expand Up @@ -3678,6 +3681,7 @@
7B610D602512390E00B0B5D9 /* SentrySDK+Private.h in Headers */,
62A456E12B03704A003F19A1 /* SentryUIEventTrackerMode.h in Headers */,
03F84D2327DD414C008FE43F /* SentryThreadHandle.hpp in Headers */,
D8CAC0502BA0AF3900E38F34 /* SentryIntegrationProtocol.h in Headers */,
7B6C5EE0264E8E050010D138 /* SentryFramesTracker.h in Headers */,
63FE715720DA4C1100CDBAE8 /* SentryCrashThread.h in Headers */,
7BF9EF862722D10600B5BBEF /* SentryTestObjCRuntimeWrapper.h in Headers */,
Expand Down Expand Up @@ -3791,7 +3795,6 @@
7BC5B6FA290BCDE500D99477 /* SentryHttpStatusCodeRange+Private.h in Headers */,
7B04A9AF24EAC02C00E710B1 /* SentryRetryAfterHeaderParser.h in Headers */,
9286059529A5096600F96038 /* SentryGeo.h in Headers */,
7DC83100239826280043DD9A /* SentryIntegrationProtocol.h in Headers */,
7B98D7BC25FB607300C5A389 /* SentryWatchdogTerminationTracker.h in Headers */,
7BA61CB9247BC57B00C130A8 /* SentryCrashDefaultBinaryImageProvider.h in Headers */,
8E4E7C7D25DAB287006AB9E2 /* SentryTracer.h in Headers */,
Expand Down Expand Up @@ -4278,6 +4281,7 @@
7B14089824878F950035403D /* SentryCrashStackEntryMapper.m in Sources */,
63FE711720DA4C1000CDBAE8 /* SentryCrashStackCursor_Backtrace.c in Sources */,
63FE70CB20DA4C1000CDBAE8 /* SentryCrashReportFixer.c in Sources */,
D8CAC0412BA0984500E38F34 /* SentryIntegrationProtocol.swift in Sources */,
63FE710F20DA4C1000CDBAE8 /* NSError+SentrySimpleConstructor.m in Sources */,
8ECC674925C23A20000E2BF6 /* SentrySpanId.m in Sources */,
6344DDB51EC309E000D9160D /* SentryCrashReportSink.m in Sources */,
Expand Down Expand Up @@ -4884,6 +4888,7 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_OBJC_BRIDGING_HEADER = "Tests/SentryTests/SentryTests-Bridging-Header.h";
SWIFT_OBJC_INTEROP_MODE = objc;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -4919,6 +4924,7 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_OBJC_BRIDGING_HEADER = "Tests/SentryTests/SentryTests-Bridging-Header.h";
SWIFT_OBJC_INTEROP_MODE = objc;
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 13.0;
Expand Down Expand Up @@ -5061,6 +5067,7 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_OBJC_BRIDGING_HEADER = "Tests/SentryTests/SentryTests-Bridging-Header.h";
SWIFT_OBJC_INTEROP_MODE = objc;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -5200,6 +5207,7 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_OBJC_BRIDGING_HEADER = "Tests/SentryTests/SentryTests-Bridging-Header.h";
SWIFT_OBJC_INTEROP_MODE = objc;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -5688,6 +5696,7 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_OBJC_BRIDGING_HEADER = "Tests/SentryTests/SentryTests-Bridging-Header.h";
SWIFT_OBJC_INTEROP_MODE = objc;
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 13.0;
Expand Down Expand Up @@ -5928,6 +5937,7 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_OBJC_BRIDGING_HEADER = "Tests/SentryTests/SentryTests-Bridging-Header.h";
SWIFT_OBJC_INTEROP_MODE = objc;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 5.0;
Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/PrivateSentrySDKOnly.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "SentryInstallation.h"
#import "SentryInternalDefines.h"
#import "SentryMeta.h"
#import "SentryOptions.h"
#import "SentryProfiledTracerConcurrency.h"
#import "SentryProfiler.h"
#import "SentrySDK+Private.h"
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/Public/Sentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[];
#import "SentryGeo.h"
#import "SentryHttpStatusCodeRange.h"
#import "SentryHub.h"
#import "SentryIntegrationProtocol.h"
#import "SentryMeasurementUnit.h"
#import "SentryMechanism.h"
#import "SentryMechanismMeta.h"
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/Public/SentryHub.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "SentryDefines.h"
#import "SentryIntegrationProtocol.h"
#import "SentrySpanProtocol.h"

@class SentryEvent, SentryClient, SentryScope, SentryUser, SentryBreadcrumb, SentryId,
Expand Down
23 changes: 0 additions & 23 deletions Sources/Sentry/Public/SentryIntegrationProtocol.h

This file was deleted.

1 change: 1 addition & 0 deletions Sources/Sentry/SentryAppStartTrackingIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# import "SentryAppStartTracker.h"
# import "SentryLog.h"
# import "SentryOptions.h"
# import <Foundation/Foundation.h>
# import <PrivateSentrySDKOnly.h>
# import <SentryAppStateManager.h>
Expand Down
4 changes: 4 additions & 0 deletions Sources/Sentry/SentryBaseIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ - (SentryIntegrationOption)integrationOptions
return kIntegrationOptionNone;
}

- (void)uninstall
{
}

@end

NS_ASSUME_NONNULL_END
1 change: 1 addition & 0 deletions Sources/Sentry/SentryCrashIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#import "SentryEvent.h"
#import "SentryHub.h"
#import "SentryInAppLogic.h"
#import "SentryOptions.h"
#import "SentrySDK+Private.h"
#import "SentryScope+Private.h"
#import "SentrySessionCrashedHandler.h"
Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentryHub.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import "SentryLevelMapper.h"
#import "SentryLog.h"
#import "SentryNSTimerFactory.h"
#import "SentryOptions.h"
#import "SentryPerformanceTracker.h"
#import "SentryProfilingConditionals.h"
#import "SentrySDK+Private.h"
Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentryMetricKitIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#if SENTRY_HAS_METRIC_KIT

# import "SentryInternalDefines.h"
# import "SentryOptions.h"
# import "SentryScope.h"
# import <Foundation/Foundation.h>
# import <SentryDebugMeta.h>
Expand Down
2 changes: 2 additions & 0 deletions Sources/Sentry/SentryNSURLRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
#import "SentryHub.h"
#import "SentryLog.h"
#import "SentryMeta.h"
#import "SentryOptions.h"
#import "SentrySDK+Private.h"
#import "SentrySerialization.h"
#import "SentrySwift.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentryNetworkTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import "SentryLog.h"
#import "SentryMechanism.h"
#import "SentryNoOpSpan.h"
#import "SentryOptions.h"
#import "SentryPropagationContext.h"
#import "SentryRequest.h"
#import "SentrySDK+Private.h"
Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentryPerformanceTrackingIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# import "SentryDispatchQueueWrapper.h"
# import "SentryLog.h"
# import "SentryNSProcessInfoWrapper.h"
# import "SentryOptions.h"
# import "SentrySubClassFinder.h"
# import "SentryUIViewControllerPerformanceTracker.h"
# import "SentryUIViewControllerSwizzling.h"
Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentryProfiler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# import "SentryNSNotificationCenterWrapper.h"
# import "SentryNSProcessInfoWrapper.h"
# import "SentryNSTimerFactory.h"
# import "SentryOptions.h"
# import "SentryProfileTimeseries.h"
# import "SentryProfiledTracerConcurrency.h"
# import "SentryProfilerState+ObjCpp.h"
Expand Down
2 changes: 2 additions & 0 deletions Sources/Sentry/SentryRequestOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#import "SentryError.h"
#import "SentryHub.h"
#import "SentryLog.h"
#import "SentryOptions.h"
#import "SentrySDK+Private.h"
#import "SentrySwift.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentrySessionTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#import "SentryInternalNotificationNames.h"
#import "SentryLog.h"
#import "SentryNSNotificationCenterWrapper.h"
#import "SentryOptions.h"
#import "SentrySDK+Private.h"
#import "SentrySwift.h"

Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentrySwiftAsyncIntegration.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#import "SentrySwiftAsyncIntegration.h"
#import "SentryCrashStackCursor_SelfThread.h"
#import "SentryOptions.h"

@implementation SentrySwiftAsyncIntegration

Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/SentryUIViewControllerPerformanceTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# import "SentryHub.h"
# import "SentryLog.h"
# import "SentryOptions.h"
# import "SentryPerformanceTracker.h"
# import "SentrySDK+Private.h"
# import "SentryScope.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryAppStartTrackingIntegration.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#if SENTRY_HAS_UIKIT

# import "SentryBaseIntegration.h"
# import "SentryIntegrationProtocol.h"
# import "SentrySwift.h"
# import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryBaseIntegration.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef NS_OPTIONS(NSUInteger, SentryIntegrationOption) {
- (void)logWithReason:(NSString *)reason;
- (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options;
- (SentryIntegrationOption)integrationOptions;

- (void)uninstall;
@end

NS_ASSUME_NONNULL_END
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryCoreDataTrackingIntegration.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "SentryBaseIntegration.h"
#import "SentryIntegrationProtocol.h"
#import "SentrySwift.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryFileIOTrackingIntegration.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "SentryBaseIntegration.h"
#import "SentryIntegrationProtocol.h"
#import "SentrySwift.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryFramesTrackingIntegration.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#if SENTRY_HAS_UIKIT

# import "SentryBaseIntegration.h"
# import "SentryIntegrationProtocol.h"
# import "SentrySwift.h"
# import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/include/SentryHub+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@class SentrySession;
@class SentryTracer;
@class SentryTracerConfiguration;
@protocol SentryIntegrationProtocol;

NS_ASSUME_NONNULL_BEGIN

Expand Down
1 change: 1 addition & 0 deletions Sources/Sentry/include/SentryIntegrationProtocol.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#import "SentrySwift.h"
1 change: 0 additions & 1 deletion Sources/Sentry/include/SentryMetricKitIntegration.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# import "SentryBaseIntegration.h"
# import "SentryEvent.h"
# import "SentryIntegrationProtocol.h"
# import "SentrySwift.h"
# import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryNetworkTrackingIntegration.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "SentryBaseIntegration.h"
#import "SentryIntegrationProtocol.h"
#import "SentrySwift.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentrySwiftAsyncIntegration.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "SentryBaseIntegration.h"
#import "SentryIntegrationProtocol.h"
#import "SentrySwift.h"
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentryUIEventTrackingIntegration.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#if SENTRY_HAS_UIKIT

# import "SentryBaseIntegration.h"
# import "SentryIntegrationProtocol.h"
# import "SentrySwift.h"

@interface SentryUIEventTrackingIntegration : SentryBaseIntegration <SentryIntegrationProtocol>

Expand Down
15 changes: 15 additions & 0 deletions Sources/Swift/Protocol/SentryIntegrationProtocol.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Foundation

@objc
public protocol SentryIntegrationProtocol: NSObjectProtocol {

/**
* Installs the integration and returns YES if successful.
*/
@objc(installWithOptions:) func install(with options: Options) -> Bool

/**
* Uninstalls the integration.
*/
@objc func uninstall()
}
1 change: 0 additions & 1 deletion Tests/SentryProfilerTests/SentryProfilerTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#import "SentryProfilerState+ObjCpp.h"
#import "SentryProfilingConditionals.h"
#import "SentryScreenFrames.h"
#import "SentrySwift.h"
#import "SentryThread.h"
#import "SentryTransaction.h"
#import "SentryTransactionContext+Private.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "SentryIntegrationProtocol.h"
#import "Sentry/Sentry-Swift.h"
#import <Foundation/Foundation.h>

@class SentryOptions;
Expand Down
Loading

0 comments on commit b3f2b49

Please sign in to comment.