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 authored and TheBuggedYRN committed Mar 16, 2023
1 parent d21024c commit 97eac9e
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 97eac9e

Please sign in to comment.