@@ -37,13 +37,14 @@ - (dispatch_queue_t)methodQueue {
37
37
38
38
RCT_EXPORT_METHOD (startWithToken:(NSString *)token invocationEvents:(NSArray *)invocationEventsArray) {
39
39
IBGInvocationEvent invocationEvents = 0 ;
40
+ NSLog (@" invocation events: %ld " ,(long )invocationEvents);
40
41
for (NSNumber *boxedValue in invocationEventsArray) {
41
42
invocationEvents |= [boxedValue intValue ];
42
43
}
43
44
[Instabug startWithToken: token invocationEvents: invocationEvents];
44
45
RCTAddLogFunction (InstabugReactLogFunction);
45
46
RCTSetLogThreshold (RCTLogLevelInfo);
46
- [ IBGNetworkLogger.enabled = NO ] ;
47
+ IBGNetworkLogger.enabled = NO ;
47
48
SEL setCrossPlatformSEL = NSSelectorFromString (@" setCrossPlatform:" );
48
49
if ([[Instabug class ] respondsToSelector: setCrossPlatformSEL]) {
49
50
[[Instabug class ] performSelector: setCrossPlatformSEL withObject: @(true )];
@@ -126,11 +127,12 @@ - (dispatch_queue_t)methodQueue {
126
127
127
128
RCT_EXPORT_METHOD (setPreSendingHandler:(RCTResponseSenderBlock)callBack) {
128
129
if (callBack != nil ) {
129
- IBGBugReporting .willSendReportHandler = ^{
130
+ Instabug .willSendReportHandler = ^(IBGReport* report) {
130
131
[self sendEventWithName: @" IBGpreSendingHandler" body: nil ];
132
+ return report;
131
133
};
132
134
} else {
133
- IBGBugReporting .willSendReportHandler = nil ;
135
+ Instabug .willSendReportHandler = nil ;
134
136
}
135
137
}
136
138
@@ -170,7 +172,7 @@ - (dispatch_queue_t)methodQueue {
170
172
}
171
173
172
174
RCT_EXPORT_METHOD (showIntroMessage) {
173
- [IBGBugReporting showIntroMessage ];
175
+ // [IBGBugReporting showIntroMessage];
174
176
}
175
177
176
178
RCT_EXPORT_METHOD (setUserEmail:(NSString *)userEmail) {
@@ -240,7 +242,7 @@ - (dispatch_queue_t)methodQueue {
240
242
}
241
243
242
244
RCT_EXPORT_METHOD (setIntroMessageEnabled:(BOOL )isIntroMessageEnabled) {
243
- IBGBugReporting.introMessageEnabled = isIntroMessageEnabled;
245
+ // IBGBugReporting.introMessageEnabled = isIntroMessageEnabled;
244
246
}
245
247
246
248
RCT_EXPORT_METHOD (setColorTheme:(IBGColorTheme)colorTheme) {
@@ -441,7 +443,7 @@ - (dispatch_queue_t)methodQueue {
441
443
}
442
444
443
445
RCT_EXPORT_METHOD (setVideoRecordingFloatingButtonPosition:(IBGPosition)position) {
444
- IBGBugReporting.videoRecordingFloatingButtonPosition = position;
446
+ // IBGBugReporting.videoRecordingFloatingButtonPosition = position;
445
447
}
446
448
447
449
RCT_EXPORT_METHOD (setThresholdForReshowingSurveyAfterDismiss:(NSInteger )sessionCount daysCount:(NSInteger )daysCount) {
@@ -462,7 +464,7 @@ - (dispatch_queue_t)methodQueue {
462
464
463
465
RCT_EXPORT_METHOD (setEmailFieldRequiredForActions:(BOOL )isEmailFieldRequired
464
466
forAction:(NSArray *)actionTypesArray) {
465
- IBGActionType actionTypes = 0 ;
467
+ IBGAction actionTypes = 0 ;
466
468
467
469
for (NSNumber *boxedValue in actionTypesArray) {
468
470
actionTypes |= [boxedValue intValue ];
@@ -547,10 +549,7 @@ - (NSDictionary *)constantsToExport
547
549
@" localeSwedish" : @(IBGLocaleSwedish),
548
550
@" localeTurkish" : @(IBGLocaleTurkish),
549
551
550
- @" invocationOptionNewBug" : @(IBGBugReportingInvocationOptionNewBug),
551
- @" invocationOptionNewFeedback" : @(IBGBugReportingInvocationOptionNewFeedback),
552
- @" invocationOptionNewChat" : @(IBGBugReportingInvocationOptionNewChat),
553
- @" invocationOptionsChatsList" : @(IBGBugReportingInvocationOptionChatsList),
552
+
554
553
@" invocationOptionsEmailFieldHidden" : @(IBGBugReportingInvocationOptionEmailFieldHidden),
555
554
@" invocationOptionsEmailFieldOptional" : @(IBGBugReportingInvocationOptionEmailFieldOptional),
556
555
@" invocationOptionsCommentFieldRequired" : @(IBGBugReportingInvocationOptionCommentFieldRequired),
0 commit comments