Skip to content

Commit e1a03fd

Browse files
committed
🐛 Add missing mapping for welcomeMessageMode strings for Android
1 parent 3fa2120 commit e1a03fd

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
178178
private final String REPORT_SUCCESSFULLY_SENT = "thankYouText";
179179
private final String THANK_YOU_ALERT_TEXT = "thankYouAlertText";
180180

181+
private final String WELCOME_MESSAGE_BETA_WELCOME_STEP_TITLE = "welcomeMessageBetaWelcomeStepTitle";
182+
private final String WELCOME_MESSAGE_BETA_WELCOME_STEP_CONTENT = "welcomeMessageBetaWelcomeStepContent";
183+
private final String WELCOME_MESSAGE_HOW_TO_REPORT_STEP_TITLE = "welcomeMessageBetaHowToReportStepTitle";
184+
private final String WELCOME_MESSAGE_HOW_TO_REPORT_STEP_CONTENT = "welcomeMessageBetaHowToReportStepContent";
185+
private final String WELCOME_MESSAGE_FINISH_STEP_TITLE = "welcomeMessageBetaFinishStepTitle";
186+
private final String WELCOME_MESSAGE_FINISH_STEP_CONTENT = "welcomeMessageBetaFinishStepContent";
187+
private final String WELCOME_MESSAGE_LIVE_WELCOME_STEP_TITLE = "welcomeMessageLiveWelcomeStepTitle";
188+
private final String WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT = "welcomeMessageLiveWelcomeStepContent";
189+
181190
private final String VIDEO_PLAYER_TITLE = "video";
182191

183192
private final String CONVERSATION_TEXT_FIELD_HINT = "conversationTextFieldHint";
@@ -2023,6 +2032,22 @@ private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
20232032
return InstabugCustomTextPlaceHolder.Key.VIDEO_PLAYER_TITLE;
20242033
case THANK_YOU_ALERT_TEXT:
20252034
return InstabugCustomTextPlaceHolder.Key.REPORT_SUCCESSFULLY_SENT;
2035+
case WELCOME_MESSAGE_BETA_WELCOME_STEP_TITLE:
2036+
return InstabugCustomTextPlaceHolder.Key.BETA_WELCOME_MESSAGE_WELCOME_STEP_TITLE;
2037+
case WELCOME_MESSAGE_BETA_WELCOME_STEP_CONTENT:
2038+
return InstabugCustomTextPlaceHolder.Key.BETA_WELCOME_MESSAGE_WELCOME_STEP_CONTENT;
2039+
case WELCOME_MESSAGE_HOW_TO_REPORT_STEP_TITLE:
2040+
return InstabugCustomTextPlaceHolder.Key.BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_TITLE;
2041+
case WELCOME_MESSAGE_HOW_TO_REPORT_STEP_CONTENT:
2042+
return InstabugCustomTextPlaceHolder.Key.BETA_WELCOME_MESSAGE_HOW_TO_REPORT_STEP_CONTENT;
2043+
case WELCOME_MESSAGE_FINISH_STEP_TITLE:
2044+
return InstabugCustomTextPlaceHolder.Key.BETA_WELCOME_MESSAGE_FINISH_STEP_TITLE;
2045+
case WELCOME_MESSAGE_FINISH_STEP_CONTENT:
2046+
return InstabugCustomTextPlaceHolder.Key.BETA_WELCOME_MESSAGE_FINISH_STEP_CONTENT;
2047+
case WELCOME_MESSAGE_LIVE_WELCOME_STEP_TITLE:
2048+
return InstabugCustomTextPlaceHolder.Key.LIVE_WELCOME_MESSAGE_TITLE;
2049+
case WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT:
2050+
return InstabugCustomTextPlaceHolder.Key.LIVE_WELCOME_MESSAGE_CONTENT;
20262051
default:
20272052
return null;
20282053
}
@@ -2209,6 +2234,15 @@ public Map<String, Object> getConstants() {
22092234
constants.put("conversationTextFieldHint", CONVERSATION_TEXT_FIELD_HINT);
22102235
constants.put("thankYouAlertText", THANK_YOU_ALERT_TEXT);
22112236

2237+
constants.put("welcomeMessageBetaWelcomeStepTitle", WELCOME_MESSAGE_BETA_WELCOME_STEP_TITLE);
2238+
constants.put("welcomeMessageBetaWelcomeStepContent", WELCOME_MESSAGE_BETA_WELCOME_STEP_CONTENT);
2239+
constants.put("welcomeMessageBetaHowToReportStepTitle", WELCOME_MESSAGE_HOW_TO_REPORT_STEP_TITLE);
2240+
constants.put("welcomeMessageBetaHowToReportStepContent", WELCOME_MESSAGE_HOW_TO_REPORT_STEP_CONTENT);
2241+
constants.put("welcomeMessageBetaFinishStepTitle", WELCOME_MESSAGE_FINISH_STEP_TITLE);
2242+
constants.put("welcomeMessageBetaFinishStepContent", WELCOME_MESSAGE_FINISH_STEP_CONTENT);
2243+
constants.put("welcomeMessageLiveWelcomeStepTitle", WELCOME_MESSAGE_LIVE_WELCOME_STEP_TITLE);
2244+
constants.put("welcomeMessageLiveWelcomeStepContent", WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT);
2245+
22122246
return constants;
22132247
}
22142248
}

0 commit comments

Comments
 (0)