1111import com .instabug .library .InstabugCustomTextPlaceHolder ;
1212import com .instabug .library .extendedbugreport .ExtendedBugReport ;
1313import com .instabug .library .invocation .util .InstabugVideoRecordingButtonPosition ;
14+ import com .instabug .library .visualusersteps .State ;
1415
1516import static com .instabug .library .internal .module .InstabugLocale .ARABIC ;
1617import static com .instabug .library .internal .module .InstabugLocale .CZECH ;
@@ -111,9 +112,9 @@ static void registerInstabugInvocationEventsArgs(Map<String, Object> args) {
111112 }
112113
113114 static void registerWelcomeMessageArgs (Map <String , Object > args ) {
114- args .put ("WelcomeMessageMode.disabled " , DISABLED );
115- args .put ("WelcomeMessageMode.live " , LIVE );
116- args .put ("WelcomeMessageMode.beta " , BETA );
115+ args .put ("welcomeMessageModeDisabled " , DISABLED );
116+ args .put ("welcomeMessageModeLive " , LIVE );
117+ args .put ("welcomeMessageModeBeta " , BETA );
117118 }
118119
119120 static void registerColorThemeArgs (Map <String , Object > args ) {
@@ -134,63 +135,63 @@ static void registerInvocationOptionsArgs(Map<String, Object> args) {
134135 }
135136
136137 static void registerLocaleArgs (Map <String , Object > args ) {
137- args .put ("IBGLocale. chineseTraditional" , new Locale (TRADITIONAL_CHINESE .getCode (), TRADITIONAL_CHINESE .getCountry ()));
138- args .put ("IBGLocale. portuguesePortugal" , new Locale (PORTUGUESE_PORTUGAL .getCode (), PORTUGUESE_PORTUGAL .getCountry ()));
139- args .put ("IBGLocale. chineseSimplified" , new Locale (SIMPLIFIED_CHINESE .getCode (), SIMPLIFIED_CHINESE .getCountry ()));
140- args .put ("IBGLocale. portugueseBrazil" , new Locale (PORTUGUESE_BRAZIL .getCode (), PORTUGUESE_BRAZIL .getCountry ()));
141- args .put ("IBGLocale. indonesian" , new Locale (INDONESIAN .getCode (), INDONESIAN .getCountry ()));
142- args .put ("IBGLocale. dutch" , new Locale (NETHERLANDS .getCode (), NETHERLANDS .getCountry ()));
143- args .put ("IBGLocale. norwegian" , new Locale (NORWEGIAN .getCode (), NORWEGIAN .getCountry ()));
144- args .put ("IBGLocale. japanese" , new Locale (JAPANESE .getCode (), JAPANESE .getCountry ()));
145- args .put ("IBGLocale. english" , new Locale (ENGLISH .getCode (), ENGLISH .getCountry ()));
146- args .put ("IBGLocale. italian" , new Locale (ITALIAN .getCode (), ITALIAN .getCountry ()));
147- args .put ("IBGLocale. russian" , new Locale (RUSSIAN .getCode (), RUSSIAN .getCountry ()));
148- args .put ("IBGLocale. spanish" , new Locale (SPANISH .getCode (), SPANISH .getCountry ()));
149- args .put ("IBGLocale. swedish" , new Locale (SWEDISH .getCode (), SWEDISH .getCountry ()));
150- args .put ("IBGLocale. turkish" , new Locale (TURKISH .getCode (), TURKISH .getCountry ()));
151- args .put ("IBGLocale. arabic" , new Locale (ARABIC .getCode (), ARABIC .getCountry ()));
152- args .put ("IBGLocale. danish" , new Locale (DANISH .getCode (), DANISH .getCountry ()));
153- args .put ("IBGLocale. french" , new Locale (FRENCH .getCode (), FRENCH .getCountry ()));
154- args .put ("IBGLocale. german" , new Locale (GERMAN .getCode (), GERMAN .getCountry ()));
155- args .put ("IBGLocale. korean" , new Locale (KOREAN .getCode (), KOREAN .getCountry ()));
156- args .put ("IBGLocale. polish" , new Locale (POLISH .getCode (), POLISH .getCountry ()));
157- args .put ("IBGLocale. slovak" , new Locale (SLOVAK .getCode (), SLOVAK .getCountry ()));
158- args .put ("IBGLocale. czech" , new Locale (CZECH .getCode (), CZECH .getCountry ()));
138+ args .put ("chineseTraditional" , new Locale (TRADITIONAL_CHINESE .getCode (), TRADITIONAL_CHINESE .getCountry ()));
139+ args .put ("portuguesePortugal" , new Locale (PORTUGUESE_PORTUGAL .getCode (), PORTUGUESE_PORTUGAL .getCountry ()));
140+ args .put ("chineseSimplified" , new Locale (SIMPLIFIED_CHINESE .getCode (), SIMPLIFIED_CHINESE .getCountry ()));
141+ args .put ("portugueseBrazil" , new Locale (PORTUGUESE_BRAZIL .getCode (), PORTUGUESE_BRAZIL .getCountry ()));
142+ args .put ("indonesian" , new Locale (INDONESIAN .getCode (), INDONESIAN .getCountry ()));
143+ args .put ("dutch" , new Locale (NETHERLANDS .getCode (), NETHERLANDS .getCountry ()));
144+ args .put ("norwegian" , new Locale (NORWEGIAN .getCode (), NORWEGIAN .getCountry ()));
145+ args .put ("japanese" , new Locale (JAPANESE .getCode (), JAPANESE .getCountry ()));
146+ args .put ("english" , new Locale (ENGLISH .getCode (), ENGLISH .getCountry ()));
147+ args .put ("italian" , new Locale (ITALIAN .getCode (), ITALIAN .getCountry ()));
148+ args .put ("russian" , new Locale (RUSSIAN .getCode (), RUSSIAN .getCountry ()));
149+ args .put ("spanish" , new Locale (SPANISH .getCode (), SPANISH .getCountry ()));
150+ args .put ("swedish" , new Locale (SWEDISH .getCode (), SWEDISH .getCountry ()));
151+ args .put ("turkish" , new Locale (TURKISH .getCode (), TURKISH .getCountry ()));
152+ args .put ("arabic" , new Locale (ARABIC .getCode (), ARABIC .getCountry ()));
153+ args .put ("danish" , new Locale (DANISH .getCode (), DANISH .getCountry ()));
154+ args .put ("french" , new Locale (FRENCH .getCode (), FRENCH .getCountry ()));
155+ args .put ("german" , new Locale (GERMAN .getCode (), GERMAN .getCountry ()));
156+ args .put ("korean" , new Locale (KOREAN .getCode (), KOREAN .getCountry ()));
157+ args .put ("polish" , new Locale (POLISH .getCode (), POLISH .getCountry ()));
158+ args .put ("slovak" , new Locale (SLOVAK .getCode (), SLOVAK .getCountry ()));
159+ args .put ("czech" , new Locale (CZECH .getCode (), CZECH .getCountry ()));
159160 }
160161
161162 static void registerCustomTextPlaceHolderKeysArgs (Map <String , Object > args ) {
162- args .put ("CustomTextPlaceHolderKey. shakeHint" , InstabugCustomTextPlaceHolder .Key .SHAKE_HINT );
163- args .put ("CustomTextPlaceHolderKey. swipeHint" , InstabugCustomTextPlaceHolder .Key .SWIPE_HINT );
164- args .put ("CustomTextPlaceHolderKey. invalidEmailMessage" , InstabugCustomTextPlaceHolder .Key .INVALID_EMAIL_MESSAGE );
165- args .put ("CustomTextPlaceHolderKey. invalidCommentMessage" , InstabugCustomTextPlaceHolder .Key .INVALID_COMMENT_MESSAGE );
166- args .put ("CustomTextPlaceHolderKey. invocationHeader" , InstabugCustomTextPlaceHolder .Key .INVOCATION_HEADER );
167- args .put ("CustomTextPlaceHolderKey. startChats" , InstabugCustomTextPlaceHolder .Key .START_CHATS );
168- args .put ("CustomTextPlaceHolderKey. reportBug" , InstabugCustomTextPlaceHolder .Key .REPORT_BUG );
169- args .put ("CustomTextPlaceHolderKey. reportFeedback" , InstabugCustomTextPlaceHolder .Key .REPORT_FEEDBACK );
170- args .put ("CustomTextPlaceHolderKey. emailFieldHint" , InstabugCustomTextPlaceHolder .Key .EMAIL_FIELD_HINT );
171- args .put ("CustomTextPlaceHolderKey. commentFieldHintForBugReport" , InstabugCustomTextPlaceHolder .Key .COMMENT_FIELD_HINT_FOR_BUG_REPORT );
172- args .put ("CustomTextPlaceHolderKey. commentFieldHintForFeedback" , InstabugCustomTextPlaceHolder .Key .COMMENT_FIELD_HINT_FOR_FEEDBACK );
173- args .put ("CustomTextPlaceHolderKey. addVoiceMessage" , InstabugCustomTextPlaceHolder .Key .ADD_VOICE_MESSAGE );
174- args .put ("CustomTextPlaceHolderKey. addImageFromGallery" , InstabugCustomTextPlaceHolder .Key .ADD_IMAGE_FROM_GALLERY );
175- args .put ("CustomTextPlaceHolderKey. addExtraScreenshot" , InstabugCustomTextPlaceHolder .Key .ADD_EXTRA_SCREENSHOT );
176- args .put ("CustomTextPlaceHolderKey. conversationsListTitle" , InstabugCustomTextPlaceHolder .Key .CONVERSATIONS_LIST_TITLE );
177- args .put ("CustomTextPlaceHolderKey. audioRecordingPermissionDenied" , InstabugCustomTextPlaceHolder .Key .AUDIO_RECORDING_PERMISSION_DENIED );
178- args .put ("CustomTextPlaceHolderKey. conversationTextFieldHint" , InstabugCustomTextPlaceHolder .Key .CONVERSATION_TEXT_FIELD_HINT );
179- args .put ("CustomTextPlaceHolderKey. bugReportHeader" , InstabugCustomTextPlaceHolder .Key .BUG_REPORT_HEADER );
180- args .put ("CustomTextPlaceHolderKey. feedbackReportHeader" , InstabugCustomTextPlaceHolder .Key .FEEDBACK_REPORT_HEADER );
181- args .put ("CustomTextPlaceHolderKey. voiceMessagePressAndHoldToRecord" , InstabugCustomTextPlaceHolder .Key .VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD );
182- args .put ("CustomTextPlaceHolderKey. voiceMessageReleaseToAttach" , InstabugCustomTextPlaceHolder .Key .VOICE_MESSAGE_RELEASE_TO_ATTACH );
183- args .put ("CustomTextPlaceHolderKey. reportSuccessfullySent" , InstabugCustomTextPlaceHolder .Key .REPORT_SUCCESSFULLY_SENT );
184- args .put ("CustomTextPlaceHolderKey. successDialogHeader" , InstabugCustomTextPlaceHolder .Key .SUCCESS_DIALOG_HEADER );
185- args .put ("CustomTextPlaceHolderKey. addVideo" , InstabugCustomTextPlaceHolder .Key .ADD_VIDEO );
186- args .put ("CustomTextPlaceHolderKey. betaWelcomeMessageWelcomeStepTitle" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_WELCOME_STEP_TITLE );
187- args .put ("CustomTextPlaceHolderKey. betaWelcomeMessageWelcomeStepContent" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_WELCOME_STEP_CONTENT );
188- args .put ("CustomTextPlaceHolderKey. betaWelcomeMessageHowToReportStepTitle" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_TITLE );
189- args .put ("CustomTextPlaceHolderKey. betaWelcomeMessageHowToReportStepContent" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_CONTENT );
190- args .put ("CustomTextPlaceHolderKey. betaWelcomeMessageFinishStepTitle" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_FINISH_STEP_TITLE );
191- args .put ("CustomTextPlaceHolderKey. betaWelcomeMessageFinishStepContent" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_FINISH_STEP_CONTENT );
192- args .put ("CustomTextPlaceHolderKey. liveWelcomeMessageTitle" , InstabugCustomTextPlaceHolder .Key .LIVE_WELCOME_MESSAGE_TITLE );
193- args .put ("CustomTextPlaceHolderKey. liveWelcomeMessageContent" , InstabugCustomTextPlaceHolder .Key .LIVE_WELCOME_MESSAGE_CONTENT );
163+ args .put ("shakeHint" , InstabugCustomTextPlaceHolder .Key .SHAKE_HINT );
164+ args .put ("swipeHint" , InstabugCustomTextPlaceHolder .Key .SWIPE_HINT );
165+ args .put ("invalidEmailMessage" , InstabugCustomTextPlaceHolder .Key .INVALID_EMAIL_MESSAGE );
166+ args .put ("invalidCommentMessage" , InstabugCustomTextPlaceHolder .Key .INVALID_COMMENT_MESSAGE );
167+ args .put ("invocationHeader" , InstabugCustomTextPlaceHolder .Key .INVOCATION_HEADER );
168+ args .put ("startChats" , InstabugCustomTextPlaceHolder .Key .START_CHATS );
169+ args .put ("reportBug" , InstabugCustomTextPlaceHolder .Key .REPORT_BUG );
170+ args .put ("reportFeedback" , InstabugCustomTextPlaceHolder .Key .REPORT_FEEDBACK );
171+ args .put ("emailFieldHint" , InstabugCustomTextPlaceHolder .Key .EMAIL_FIELD_HINT );
172+ args .put ("commentFieldHintForBugReport" , InstabugCustomTextPlaceHolder .Key .COMMENT_FIELD_HINT_FOR_BUG_REPORT );
173+ args .put ("commentFieldHintForFeedback" , InstabugCustomTextPlaceHolder .Key .COMMENT_FIELD_HINT_FOR_FEEDBACK );
174+ args .put ("addVoiceMessage" , InstabugCustomTextPlaceHolder .Key .ADD_VOICE_MESSAGE );
175+ args .put ("addImageFromGallery" , InstabugCustomTextPlaceHolder .Key .ADD_IMAGE_FROM_GALLERY );
176+ args .put ("addExtraScreenshot" , InstabugCustomTextPlaceHolder .Key .ADD_EXTRA_SCREENSHOT );
177+ args .put ("conversationsListTitle" , InstabugCustomTextPlaceHolder .Key .CONVERSATIONS_LIST_TITLE );
178+ args .put ("audioRecordingPermissionDenied" , InstabugCustomTextPlaceHolder .Key .AUDIO_RECORDING_PERMISSION_DENIED );
179+ args .put ("conversationTextFieldHint" , InstabugCustomTextPlaceHolder .Key .CONVERSATION_TEXT_FIELD_HINT );
180+ // args.put("bugReportHeader", InstabugCustomTextPlaceHolder.Key.BUG_REPORT_HEADER);
181+ // args.put("feedbackReportHeader", InstabugCustomTextPlaceHolder.Key.FEEDBACK_REPORT_HEADER);
182+ args .put ("voiceMessagePressAndHoldToRecord" , InstabugCustomTextPlaceHolder .Key .VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD );
183+ args .put ("voiceMessageReleaseToAttach" , InstabugCustomTextPlaceHolder .Key .VOICE_MESSAGE_RELEASE_TO_ATTACH );
184+ args .put ("reportSuccessfullySent" , InstabugCustomTextPlaceHolder .Key .REPORT_SUCCESSFULLY_SENT );
185+ args .put ("successDialogHeader" , InstabugCustomTextPlaceHolder .Key .SUCCESS_DIALOG_HEADER );
186+ args .put ("addVideo" , InstabugCustomTextPlaceHolder .Key .ADD_VIDEO );
187+ args .put ("betaWelcomeMessageWelcomeStepTitle" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_WELCOME_STEP_TITLE );
188+ args .put ("betaWelcomeMessageWelcomeStepContent" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_WELCOME_STEP_CONTENT );
189+ args .put ("betaWelcomeMessageHowToReportStepTitle" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_TITLE );
190+ args .put ("betaWelcomeMessageHowToReportStepContent" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_CONTENT );
191+ args .put ("betaWelcomeMessageFinishStepTitle" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_FINISH_STEP_TITLE );
192+ args .put ("betaWelcomeMessageFinishStepContent" , InstabugCustomTextPlaceHolder .Key .BETA_WELCOME_MESSAGE_FINISH_STEP_CONTENT );
193+ args .put ("liveWelcomeMessageTitle" , InstabugCustomTextPlaceHolder .Key .LIVE_WELCOME_MESSAGE_TITLE );
194+ args .put ("liveWelcomeMessageContent" , InstabugCustomTextPlaceHolder .Key .LIVE_WELCOME_MESSAGE_CONTENT );
194195 }
195196
196197 static void registerInstabugReportTypesArgs (Map <String , Object > args ) {
@@ -217,4 +218,10 @@ static void registerInstabugVideoRecordingFloatingButtonPositionArgs(Map<String,
217218 args .put ("bottomRight" , InstabugVideoRecordingButtonPosition .BOTTOM_RIGHT );
218219 args .put ("bottomLeft" , InstabugVideoRecordingButtonPosition .BOTTOM_LEFT );
219220 }
221+
222+ static void registerReproStepsModeArgs (Map <String , Object > args ) {
223+ args .put ("enabledWithNoScreenshots" , State .ENABLED_WITH_NO_SCREENSHOTS );
224+ args .put ("enabled" , State .ENABLED );
225+ args .put ("disabled" , State .DISABLED );
226+ }
220227}
0 commit comments