From 6cd77d1a3b6d17ff101cce8c8e162aca7e9c1326 Mon Sep 17 00:00:00 2001 From: DavidMina96 Date: Sun, 15 Jan 2023 16:39:21 +0200 Subject: [PATCH] Add `IBGReportType` iOS enum mapping --- ios/RNInstabug/ArgsRegistry.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ios/RNInstabug/ArgsRegistry.m b/ios/RNInstabug/ArgsRegistry.m index 09317194a..8256141d8 100644 --- a/ios/RNInstabug/ArgsRegistry.m +++ b/ios/RNInstabug/ArgsRegistry.m @@ -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]; @@ -112,6 +113,15 @@ + (ArgsDictionary *) reportTypes { }; } ++ (ArgsDictionary *) sdkDimissReportTypes { + return @{ + @"bugReportingReportTypeBug": @(IBGReportTypeBug), + @"bugReportingReportTypeFeedback": @(IBGReportTypeFeedback), + @"bugReportingReportTypeQuestion": @(IBGReportTypeQuestion), + @"bugReportingReportTypeOther": @(IBGReportTypeOther), + }; +} + + (ArgsDictionary *) dismissTypes { return @{ @"dismissTypeSubmit": @(IBGDismissTypeSubmit),