|
| 1 | +#import <Foundation/Foundation.h> |
| 2 | +#import "SentryIntegrationProtocol.h" |
| 3 | + |
| 4 | +NS_ASSUME_NONNULL_BEGIN |
| 5 | + |
| 6 | +typedef NS_OPTIONS(NSUInteger, SentryIntegrationOption) { |
| 7 | + kIntegrationOptionNone = 0, |
| 8 | + kIntegrationOptionEnableAutoSessionTracking = 1 << 0, |
| 9 | + kIntegrationOptionEnableWatchdogTerminationTracking = 1 << 1, |
| 10 | + kIntegrationOptionEnableAutoPerformanceTracing = 1 << 2, |
| 11 | + kIntegrationOptionEnableUIViewControllerTracing = 1 << 3, |
| 12 | + kIntegrationOptionAttachScreenshot = 1 << 4, |
| 13 | + kIntegrationOptionEnableUserInteractionTracing = 1 << 5, |
| 14 | + kIntegrationOptionEnableAppHangTracking = 1 << 6, |
| 15 | + kIntegrationOptionEnableNetworkTracking = 1 << 7, |
| 16 | + kIntegrationOptionEnableFileIOTracing = 1 << 8, |
| 17 | + kIntegrationOptionEnableNetworkBreadcrumbs = 1 << 9, |
| 18 | + kIntegrationOptionEnableCoreDataTracing = 1 << 10, |
| 19 | + kIntegrationOptionEnableSwizzling = 1 << 11, |
| 20 | + kIntegrationOptionEnableAutoBreadcrumbTracking = 1 << 12, |
| 21 | + kIntegrationOptionIsTracingEnabled = 1 << 13, |
| 22 | + kIntegrationOptionDebuggerNotAttached = 1 << 14, |
| 23 | + kIntegrationOptionAttachViewHierarchy = 1 << 15, |
| 24 | + kIntegrationOptionEnableCrashHandler = 1 << 16, |
| 25 | + kIntegrationOptionEnableMetricKit = 1 << 17, |
| 26 | + kIntegrationOptionEnableReplay = 1 << 18, |
| 27 | + kIntegrationOptionStartFramesTracker = 1 << 19, |
| 28 | +}; |
| 29 | + |
| 30 | +@class SentryOptions; |
| 31 | + |
| 32 | +@interface SentryBaseIntegration : NSObject <SentryIntegrationProtocol> |
| 33 | + |
| 34 | +- (NSString *)integrationName; |
| 35 | +- (BOOL)installWithOptions:(SentryOptions *)options; |
| 36 | +- (void)logWithOptionName:(NSString *)optionName; |
| 37 | +- (void)logWithReason:(NSString *)reason; |
| 38 | +- (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options; |
| 39 | +- (SentryIntegrationOption)integrationOptions; |
| 40 | +- (void)uninstall; |
| 41 | +@end |
| 42 | + |
| 43 | +NS_ASSUME_NONNULL_END |
0 commit comments