Skip to content

Commit e5a582c

Browse files
author
Ali Abdelfattah
authored
Merge pull request #423 from Instabug/fix/main-views-title-locale-key
Fix/main views title locales
2 parents abb52f9 + 7edf6ab commit e5a582c

File tree

7 files changed

+10
-3
lines changed

7 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## master
22

33
* Fixes the automatic uploading of the source map files in some cases due to incorrect regex.
4+
* Add a new string reportQuestion to replace the deprecated string startChats.
45

56
## v8.7.1 (2019-10-02)
67

android/build.gradle

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

2828
dependencies {
2929
implementation 'com.facebook.react:react-native:+'
30-
api('com.instabug.library:instabug:8.7.0.0') {
30+
api('com.instabug.library:instabug:8.7.0.3') {
3131
exclude group: 'com.android.support:appcompat-v7'
3232
}
3333
testImplementation 'org.mockito:mockito-core:1.10.19'

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ static void registerCustomTextPlaceHolderKeysArgs(Map<String, Object> args) {
171171
args.put("invalidCommentMessage", InstabugCustomTextPlaceHolder.Key.INVALID_COMMENT_MESSAGE);
172172
args.put("invocationHeader", InstabugCustomTextPlaceHolder.Key.INVOCATION_HEADER);
173173
args.put("startChats", InstabugCustomTextPlaceHolder.Key.START_CHATS);
174+
args.put("reportQuestion", InstabugCustomTextPlaceHolder.Key.REPORT_QUESTION);
174175
args.put("reportBug", InstabugCustomTextPlaceHolder.Key.REPORT_BUG);
175176
args.put("reportFeedback", InstabugCustomTextPlaceHolder.Key.REPORT_FEEDBACK);
176177
args.put("emailFieldHint", InstabugCustomTextPlaceHolder.Key.EMAIL_FIELD_HINT);
@@ -183,8 +184,6 @@ static void registerCustomTextPlaceHolderKeysArgs(Map<String, Object> args) {
183184
args.put("conversationsListTitle", InstabugCustomTextPlaceHolder.Key.CONVERSATIONS_LIST_TITLE);
184185
args.put("audioRecordingPermissionDenied", InstabugCustomTextPlaceHolder.Key.AUDIO_RECORDING_PERMISSION_DENIED);
185186
args.put("conversationTextFieldHint", InstabugCustomTextPlaceHolder.Key.CONVERSATION_TEXT_FIELD_HINT);
186-
// args.put("bugReportHeader", InstabugCustomTextPlaceHolder.Key.BUG_REPORT_HEADER);
187-
// args.put("feedbackReportHeader", InstabugCustomTextPlaceHolder.Key.FEEDBACK_REPORT_HEADER);
188187
args.put("voiceMessagePressAndHoldToRecord", InstabugCustomTextPlaceHolder.Key.VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD);
189188
args.put("voiceMessageReleaseToAttach", InstabugCustomTextPlaceHolder.Key.VOICE_MESSAGE_RELEASE_TO_ATTACH);
190189
args.put("reportSuccessfullySent", InstabugCustomTextPlaceHolder.Key.REPORT_SUCCESSFULLY_SENT);

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
158158

159159
private final String INVOCATION_HEADER = "invocationHeader";
160160
private final String START_CHATS = "startChats";
161+
private final String REPORT_QUESTION = "reportQuestion";
161162
private final String REPORT_BUG = "reportBug";
162163
private final String REPORT_FEEDBACK = "reportFeedback";
163164

@@ -2264,6 +2265,8 @@ private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
22642265
return InstabugCustomTextPlaceHolder.Key.INVOCATION_HEADER;
22652266
case START_CHATS:
22662267
return InstabugCustomTextPlaceHolder.Key.START_CHATS;
2268+
case REPORT_QUESTION:
2269+
return InstabugCustomTextPlaceHolder.Key.REPORT_QUESTION;
22672270
case REPORT_BUG:
22682271
return InstabugCustomTextPlaceHolder.Key.REPORT_BUG;
22692272
case REPORT_FEEDBACK:
@@ -2454,6 +2457,7 @@ public Map<String, Object> getConstants() {
24542457
constants.put("commentFieldHintForQuestion", COMMENT_FIELD_HINT_FOR_QUESTION);
24552458
constants.put("invocationHeader", INVOCATION_HEADER);
24562459
constants.put("startChats", START_CHATS);
2460+
constants.put("reportQuestion", REPORT_QUESTION);
24572461
constants.put("reportBug", REPORT_BUG);
24582462
constants.put("reportFeedback", REPORT_FEEDBACK);
24592463
constants.put("conversationsHeaderTitle", CONVERSATIONS_LIST_TITLE);

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ export enum strings {
293293
invalidCommentTitle,
294294
invocationHeader,
295295
talkToUs,
296+
reportQuestion,
296297
reportBug,
297298
reportFeedback,
298299
emailFieldHint,

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ const InstabugModule = {
919919
invalidCommentTitle: Instabug.invalidCommentTitle,
920920
invocationHeader: Instabug.invocationHeader,
921921
startChats: Instabug.startChats,
922+
reportQuestion: Instabug.reportQuestion,
922923
reportBug: Instabug.reportBug,
923924
reportFeedback: Instabug.reportFeedback,
924925
emailFieldHint: Instabug.emailFieldHint,

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ - (NSDictionary *)constantsToExport
476476
@"invocationHeader": kIBGInvocationTitleStringName,
477477
//@"talkToUs": kIBGTalkToUsStringName,
478478
@"startChats": kIBGAskAQuestionStringName,
479+
@"reportQuestion": kIBGAskAQuestionStringName,
479480
@"reportBug": kIBGReportBugStringName,
480481
@"reportFeedback": kIBGReportFeedbackStringName,
481482
@"emailFieldHint": kIBGEmailFieldPlaceholderStringName,

0 commit comments

Comments
 (0)