Skip to content

Commit

Permalink
💎 Bump version to 8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
salmamali committed Jul 24, 2018
2 parents 4ec783c + 5f6629d commit e26887a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions ios/RNInstabug/InstabugReactBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,16 @@ - (dispatch_queue_t)methodQueue {
[IBGBugReporting invoke];
}

RCT_EXPORT_METHOD(invokeWithInvocationMode:(IBGInvocationMode)invocationMode options:(IBGBugReportingInvocationOption)options) {
[IBGBugReporting invokeWithMode:invocationMode options:options];
RCT_EXPORT_METHOD(invokeWithInvocationMode:(IBGInvocationMode)invocationMode) {
[Instabug invokeWithInvocationMode:invocationMode];
}

RCT_EXPORT_METHOD(invokeWithInvocationModeAndOptions:(IBGInvocationMode)invocationMode options:(NSArray*)options) {
IBGBugReportingInvocationOption invocationOptions = 0;
for (NSNumber *boxedValue in options) {
invocationOptions |= [boxedValue intValue];
}
[IBGBugReporting invokeWithMode:invocationMode options:invocationOptions];
}

RCT_EXPORT_METHOD(dismiss) {
Expand Down Expand Up @@ -625,10 +633,10 @@ - (NSDictionary *)constantsToExport
@"localeTurkish": @(IBGLocaleTurkish),


@"invocationOptionsEmailFieldHidden": @(IBGBugReportingInvocationOptionEmailFieldHidden),
@"invocationOptionsEmailFieldOptional": @(IBGBugReportingInvocationOptionEmailFieldOptional),
@"invocationOptionsCommentFieldRequired": @(IBGBugReportingInvocationOptionCommentFieldRequired),
@"invocationOptionsDisablePostSendingDialog": @(IBGBugReportingInvocationOptionDisablePostSendingDialog),
@"emailFieldHidden": @(IBGBugReportingInvocationOptionEmailFieldHidden),
@"emailFieldOptional": @(IBGBugReportingInvocationOptionEmailFieldOptional),
@"commentFieldRequired": @(IBGBugReportingInvocationOptionCommentFieldRequired),
@"disablePostSendingDialog": @(IBGBugReportingInvocationOptionDisablePostSendingDialog),

@"colorThemeLight": @(IBGColorThemeLight),
@"colorThemeDark": @(IBGColorThemeDark),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "instabug-reactnative",
"version": "8.0.1",
"version": "8.0.2",
"description": "React Native plugin for integrating the Instabug SDK",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit e26887a

Please sign in to comment.