Skip to content

Commit ee5f2a9

Browse files
authored
✨ Add new keys and update native sdks to include custom surveys and store rating surveys (#52)
1 parent 7c0d2c0 commit ee5f2a9

File tree

54 files changed

+209
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+209
-142
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525

2626
dependencies {
2727
implementation 'com.facebook.react:react-native:+'
28-
api ('com.instabug.library:instabug:8.1.2'){
28+
api ('com.instabug.library:instabug:8.2.0'){
2929
exclude group: 'com.android.support:appcompat-v7'
3030
}
3131
}

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
195195
private final String WELCOME_MESSAGE_LIVE_WELCOME_STEP_TITLE = "welcomeMessageLiveWelcomeStepTitle";
196196
private final String WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT = "welcomeMessageLiveWelcomeStepContent";
197197

198+
private final String CUSTOM_SURVEY_THANKS_TITLE = "surveysCustomThanksTitle";
199+
private final String CUSTOM_SURVEY_THANKS_SUBTITLE = "surveysCustomThanksSubTitle";
200+
201+
private final String STORE_RATING_THANKS_TITLE = "surveysStoreRatingThanksTitle";
202+
private final String STORE_RATING_THANKS_SUBTITLE = "surveysStoreRatingThanksSubtitle";
203+
198204
private final String VIDEO_PLAYER_TITLE = "video";
199205

200206
private final String CONVERSATION_TEXT_FIELD_HINT = "conversationTextFieldHint";
@@ -1962,6 +1968,14 @@ private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
19621968
return InstabugCustomTextPlaceHolder.Key.LIVE_WELCOME_MESSAGE_TITLE;
19631969
case WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT:
19641970
return InstabugCustomTextPlaceHolder.Key.LIVE_WELCOME_MESSAGE_CONTENT;
1971+
case CUSTOM_SURVEY_THANKS_TITLE:
1972+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_CUSTOM_THANKS_TITLE;
1973+
case CUSTOM_SURVEY_THANKS_SUBTITLE:
1974+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_CUSTOM_THANKS_SUBTITLE;
1975+
case STORE_RATING_THANKS_TITLE:
1976+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_STORE_RATING_THANKS_TITLE;
1977+
case STORE_RATING_THANKS_SUBTITLE:
1978+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_STORE_RATING_THANKS_SUBTITLE;
19651979
default:
19661980
return null;
19671981
}
@@ -2168,6 +2182,12 @@ public Map<String, Object> getConstants() {
21682182
constants.put("welcomeMessageLiveWelcomeStepTitle", WELCOME_MESSAGE_LIVE_WELCOME_STEP_TITLE);
21692183
constants.put("welcomeMessageLiveWelcomeStepContent", WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT);
21702184

2185+
constants.put(CUSTOM_SURVEY_THANKS_TITLE, CUSTOM_SURVEY_THANKS_TITLE);
2186+
constants.put(CUSTOM_SURVEY_THANKS_SUBTITLE, CUSTOM_SURVEY_THANKS_SUBTITLE);
2187+
2188+
constants.put(STORE_RATING_THANKS_TITLE, STORE_RATING_THANKS_TITLE);
2189+
constants.put(STORE_RATING_THANKS_SUBTITLE, STORE_RATING_THANKS_SUBTITLE);
2190+
21712191
return constants;
21722192
}
21732193
}

0 commit comments

Comments
 (0)