Skip to content

Commit

Permalink
Add IBGReportType iOS enum mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMina96 committed Jan 15, 2023
1 parent d29ced4 commit 75420d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ios/RNInstabug/ArgsRegistry.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ + (NSMutableDictionary *) getAll {
[all addEntriesFromDictionary:ArgsRegistry.recordButtonPositions];
[all addEntriesFromDictionary:ArgsRegistry.welcomeMessageStates];
[all addEntriesFromDictionary:ArgsRegistry.reportTypes];
[all addEntriesFromDictionary:ArgsRegistry.sdkDimissReportTypes];
[all addEntriesFromDictionary:ArgsRegistry.dismissTypes];
[all addEntriesFromDictionary:ArgsRegistry.actionTypes];
[all addEntriesFromDictionary:ArgsRegistry.extendedBugReportStates];
Expand Down Expand Up @@ -112,6 +113,15 @@ + (ArgsDictionary *) reportTypes {
};
}

+ (ArgsDictionary *) sdkDimissReportTypes {
return @{
@"bugReportingReportTypeBug": @(IBGReportTypeBug),
@"bugReportingReportTypeFeedback": @(IBGReportTypeFeedback),
@"bugReportingReportTypeQuestion": @(IBGReportTypeQuestion),
@"bugReportingReportTypeOther": @(IBGReportTypeOther),
};
}

+ (ArgsDictionary *) dismissTypes {
return @{
@"dismissTypeSubmit": @(IBGDismissTypeSubmit),
Expand Down

0 comments on commit 75420d3

Please sign in to comment.