Skip to content

Commit e83c453

Browse files
Merge pull request #3 from justin-doordash/justinlennox/FixImport
Fix broken import
2 parents 0b7af79 + f8b3db7 commit e83c453

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

Sources/Sentry/Public/SentryOptions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ NS_SWIFT_NAME(Options)
102102
*/
103103
@property (nullable, nonatomic, copy) SentryBeforeCrashCallback beforeCrash;
104104

105-
106105
/**
107106
* When enabled, and when the beforeCrash handler is not null, this allows the callee
108107
* an opportunity to run a function before we crash.

Sources/Sentry/SentryBeforeCrashIntegration.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
static void (^g_beforeCrashOptionsCallback)(NSString *) = nil;
1313

1414
// Define a callback function
15-
void beforeCrashCallback(const char *eventID) {
15+
void
16+
beforeCrashCallback(const char *eventID)
17+
{
1618
if (g_beforeCrashOptionsCallback) {
1719
g_beforeCrashOptionsCallback([NSString stringWithUTF8String:eventID]);
1820
}
@@ -25,12 +27,12 @@ - (BOOL)installWithOptions:(nonnull SentryOptions *)options
2527
if (![super installWithOptions:options]) {
2628
return NO;
2729
}
28-
30+
2931
if (options.enableBeforeCrashHandler) {
3032
g_beforeCrashOptionsCallback = options.beforeCrash;
3133
sentrycrash_setBeforeCrashCallback(&beforeCrashCallback);
3234
}
33-
35+
3436
return options.enableBeforeCrashHandler;
3537
}
3638

Sources/Sentry/SentryOptions.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#import "SentryANRTrackingIntegration.h"
33
#import "SentryAutoBreadcrumbTrackingIntegration.h"
44
#import "SentryAutoSessionTrackingIntegration.h"
5+
#import "SentryBeforeCrashIntegration.h"
56
#import "SentryCoreDataTrackingIntegration.h"
67
#import "SentryCrashIntegration.h"
78
#import "SentryDsn.h"
@@ -19,7 +20,6 @@
1920
#import "SentrySwift.h"
2021
#import "SentrySwiftAsyncIntegration.h"
2122
#import "SentryTracer.h"
22-
#import "SentryBeforeCrashIntegration.h"
2323
#import <objc/runtime.h>
2424

2525
#if SENTRY_HAS_UIKIT
@@ -451,10 +451,10 @@ - (BOOL)validateOptions:(NSDictionary<NSString *, id> *)options
451451
if ([self isBlock:options[@"tracesSampler"]]) {
452452
self.tracesSampler = options[@"tracesSampler"];
453453
}
454-
454+
455455
[self setBool:options[@"enableBeforeCrashHandler"]
456456
block:^(BOOL value) { self->_enableBeforeCrashHandler = value; }];
457-
457+
458458
if ([self isBlock:options[@"beforeCrash"]]) {
459459
self.beforeCrash = options[@"beforeCrash"];
460460
}

Sources/Sentry/include/SentryBeforeCrashIntegration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "SentryBaseIntegration.h"
2-
#import "SentryIntegrationProtocol.h"
2+
#import "SentrySwift.h"
33
#import <Foundation/Foundation.h>
44

55
NS_ASSUME_NONNULL_BEGIN

Sources/SentryCrash/Recording/SentryCrashC.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ onCrash(struct SentryCrash_MonitorContext *monitorContext)
107107
}
108108
}
109109
}
110-
110+
111111
if (g_beforeCrashCallback) {
112112
g_beforeCrashCallback(monitorContext->eventID);
113113
}

0 commit comments

Comments
 (0)