Skip to content

Commit c40f46b

Browse files
committed
💎 Bump version to 8.2.0
2 parents 899f869 + ee5f2a9 commit c40f46b

File tree

55 files changed

+256
-149
lines changed

Some content is hidden

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

55 files changed

+256
-149
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: 58 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";
@@ -535,6 +541,44 @@ public void run() {
535541
});
536542
}
537543

544+
/**
545+
* Sets whether attachments in bug reporting and in-app messaging are enabled or not.
546+
*
547+
* @param screenshot A boolean to enable or disable screenshot attachments.
548+
* @param {boolean} extraScreenShot A boolean to enable or disable extra screenshot attachments.
549+
* @param {boolean} galleryImage A boolean to enable or disable gallery image attachments.
550+
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments.
551+
*/
552+
@ReactMethod
553+
public void setEnabledAttachmentTypes(boolean screenshot, boolean extraScreenshot, boolean
554+
galleryImage, boolean screenRecording) {
555+
try {
556+
BugReporting.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage,
557+
screenRecording);
558+
} catch (Exception e) {
559+
e.printStackTrace();
560+
}
561+
}
562+
563+
/**
564+
* Sets whether attachments in bug reporting and in-app messaging are enabled or not.
565+
*
566+
* @param screenshot A boolean to enable or disable screenshot attachments.
567+
* @param {boolean} extraScreenShot A boolean to enable or disable extra screenshot attachments.
568+
* @param {boolean} galleryImage A boolean to enable or disable gallery image attachments.
569+
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments.
570+
*/
571+
@ReactMethod
572+
public void setEnabledAttachmentTypes(boolean screenshot, boolean extraScreenshot, boolean
573+
galleryImage, boolean screenRecording) {
574+
try {
575+
BugReporting.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage,
576+
screenRecording);
577+
} catch (Exception e) {
578+
e.printStackTrace();
579+
}
580+
}
581+
538582
/**
539583
* Sets whether attachments in bug reporting and in-app messaging are enabled or not.
540584
*
@@ -1943,6 +1987,14 @@ private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
19431987
return InstabugCustomTextPlaceHolder.Key.LIVE_WELCOME_MESSAGE_TITLE;
19441988
case WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT:
19451989
return InstabugCustomTextPlaceHolder.Key.LIVE_WELCOME_MESSAGE_CONTENT;
1990+
case CUSTOM_SURVEY_THANKS_TITLE:
1991+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_CUSTOM_THANKS_TITLE;
1992+
case CUSTOM_SURVEY_THANKS_SUBTITLE:
1993+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_CUSTOM_THANKS_SUBTITLE;
1994+
case STORE_RATING_THANKS_TITLE:
1995+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_STORE_RATING_THANKS_TITLE;
1996+
case STORE_RATING_THANKS_SUBTITLE:
1997+
return InstabugCustomTextPlaceHolder.Key.SURVEYS_STORE_RATING_THANKS_SUBTITLE;
19461998
default:
19471999
return null;
19482000
}
@@ -2149,6 +2201,12 @@ public Map<String, Object> getConstants() {
21492201
constants.put("welcomeMessageLiveWelcomeStepTitle", WELCOME_MESSAGE_LIVE_WELCOME_STEP_TITLE);
21502202
constants.put("welcomeMessageLiveWelcomeStepContent", WELCOME_MESSAGE_LIVE_WELCOME_STEP_CONTENT);
21512203

2204+
constants.put(CUSTOM_SURVEY_THANKS_TITLE, CUSTOM_SURVEY_THANKS_TITLE);
2205+
constants.put(CUSTOM_SURVEY_THANKS_SUBTITLE, CUSTOM_SURVEY_THANKS_SUBTITLE);
2206+
2207+
constants.put(STORE_RATING_THANKS_TITLE, STORE_RATING_THANKS_TITLE);
2208+
constants.put(STORE_RATING_THANKS_SUBTITLE, STORE_RATING_THANKS_SUBTITLE);
2209+
21522210
return constants;
21532211
}
21542212
}

index.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -946,15 +946,21 @@ const InstabugModule = {
946946
welcomeMessageLiveWelcomeStepTitle:
947947
Instabug.welcomeMessageLiveWelcomeStepTitle,
948948
welcomeMessageLiveWelcomeStepContent:
949-
Instabug.welcomeMessageLiveWelcomeStepContent
949+
Instabug.welcomeMessageLiveWelcomeStepContent,
950+
surveysCustomThanksTitle: Instabug.surveysCustomThanksTitle,
951+
surveysCustomThanksSubTitle: Instabug.surveysCustomThanksSubTitle,
952+
surveysStoreRatingThanksTitle: Instabug.surveysStoreRatingThanksTitle,
953+
surveysStoreRatingThanksSubtitle: Instabug.surveysStoreRatingThanksSubtitle
950954
}
951955
};
952956

953-
InstabugModule.BugReporting = BugReporting;
954-
InstabugModule.Surveys = Surveys;
955-
InstabugModule.FeatureRequests = FeatureRequests;
956-
InstabugModule.Chats = Chats;
957-
InstabugModule.Replies = Replies;
958-
InstabugModule.CrashReporting = CrashReporting;
957+
export {
958+
BugReporting,
959+
Surveys,
960+
FeatureRequests,
961+
Chats,
962+
Replies,
963+
CrashReporting
964+
}
959965

960966
export default InstabugModule;

ios/Instabug.framework/Headers/IBGSurveys.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ NS_SWIFT_NAME(Surveys)
7575
@brief Sets a threshold for numbers of sessions and another for number of days required before a survey, that has been dismissed once, would show again.
7676
7777
@discussion When a survey that has been shown to the user gets dismissed once, it will not reappear to the user unless a certain number of sessions have started AND a certain number of days have passed since the user first dismissed the survey. Note that if a survey is dismissed for a second time, it will not show again, in other words, it will be set to `canceled`. This applies to both surveys with and without tokens.
78+
79+
Please note that this overrides the dashboard configuration for reshowing if called.
7880
7981
@param sessionCount : Number of sessions required to be initialized before a dismissed survey can be shown again.
8082
@param daysCount : Number of days required to pass before a dismissed survey can be shown again.
8183
*/
82-
+ (void)setThresholdForReshowingSurveyAfterDismiss:(NSInteger)sessionCount daysCount:(NSInteger)daysCount;
84+
+ (void)setThresholdForReshowingSurveyAfterDismiss:(NSInteger)sessionCount daysCount:(NSInteger)daysCount DEPRECATED_MSG_ATTRIBUTE("Reshowing the survey can now be controlled from the dashboard for any new survey you create.");
8385

8486
/**
8587
@brief Returns true if the survey with a specific token was answered before .

ios/Instabug.framework/Headers/IBGTypes.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,12 @@ extern NSString * const kIBGSurveyIntroTitleText;
140140
extern NSString * const kIBGSurveyIntroDescriptionText;
141141
extern NSString * const kIBGSurveyIntroTakeSurveyButtonText;
142142
extern NSString * const kIBGSurveyIntroDismissButtonText;
143-
extern NSString * const kIBGSurveyThankYouTitleText;
144-
extern NSString * const kIBGSurveyThankYouDescriptionText;
143+
extern NSString * const kIBGSurveyThankYouTitleText DEPRECATED_MSG_ATTRIBUTE("kIBGSurveyThankYouTitleText is deprecated. You can edit this string from the dashboard, and use kIBGCustomSurveyThankYouTitleText for Custom surveys.");
144+
extern NSString * const kIBGSurveyThankYouDescriptionText DEPRECATED_MSG_ATTRIBUTE("kIBGSurveyThankYouDescriptionText is deprecated. You can edit this string from the dashboard, and use kIBGCustomSurveyThankYouDescriptionText for Custom surveys.");
145+
extern NSString * const kIBGStoreRatingThankYouTitleText;
146+
extern NSString * const kIBGStoreRatingThankYouDescriptionText;
147+
extern NSString * const kIBGCustomSurveyThankYouTitleText;
148+
extern NSString * const kIBGCustomSurveyThankYouDescriptionText;
145149
extern NSString * const kIBGSurveysNPSLeastLikelyStringName;
146150
extern NSString * const kIBGSurveysNPSMostLikelyStringName;
147151
extern NSString * const kIBGSurveyNextButtonTitle;

ios/Instabug.framework/Info.plist

0 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

2.44 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)