Skip to content

Commit e26887a

Browse files
committed
💎 Bump version to 8.0.2
2 parents 4ec783c + 5f6629d commit e26887a

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,16 @@ - (dispatch_queue_t)methodQueue {
5555
[IBGBugReporting invoke];
5656
}
5757

58-
RCT_EXPORT_METHOD(invokeWithInvocationMode:(IBGInvocationMode)invocationMode options:(IBGBugReportingInvocationOption)options) {
59-
[IBGBugReporting invokeWithMode:invocationMode options:options];
58+
RCT_EXPORT_METHOD(invokeWithInvocationMode:(IBGInvocationMode)invocationMode) {
59+
[Instabug invokeWithInvocationMode:invocationMode];
60+
}
61+
62+
RCT_EXPORT_METHOD(invokeWithInvocationModeAndOptions:(IBGInvocationMode)invocationMode options:(NSArray*)options) {
63+
IBGBugReportingInvocationOption invocationOptions = 0;
64+
for (NSNumber *boxedValue in options) {
65+
invocationOptions |= [boxedValue intValue];
66+
}
67+
[IBGBugReporting invokeWithMode:invocationMode options:invocationOptions];
6068
}
6169

6270
RCT_EXPORT_METHOD(dismiss) {
@@ -625,10 +633,10 @@ - (NSDictionary *)constantsToExport
625633
@"localeTurkish": @(IBGLocaleTurkish),
626634

627635

628-
@"invocationOptionsEmailFieldHidden": @(IBGBugReportingInvocationOptionEmailFieldHidden),
629-
@"invocationOptionsEmailFieldOptional": @(IBGBugReportingInvocationOptionEmailFieldOptional),
630-
@"invocationOptionsCommentFieldRequired": @(IBGBugReportingInvocationOptionCommentFieldRequired),
631-
@"invocationOptionsDisablePostSendingDialog": @(IBGBugReportingInvocationOptionDisablePostSendingDialog),
636+
@"emailFieldHidden": @(IBGBugReportingInvocationOptionEmailFieldHidden),
637+
@"emailFieldOptional": @(IBGBugReportingInvocationOptionEmailFieldOptional),
638+
@"commentFieldRequired": @(IBGBugReportingInvocationOptionCommentFieldRequired),
639+
@"disablePostSendingDialog": @(IBGBugReportingInvocationOptionDisablePostSendingDialog),
632640

633641
@"colorThemeLight": @(IBGColorThemeLight),
634642
@"colorThemeDark": @(IBGColorThemeDark),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "8.0.1",
3+
"version": "8.0.2",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)