Skip to content

Commit 859db68

Browse files
authored
🤝 Merge pull request #4 from Instabug/feature/2.8_release
Feature/2.8 release
2 parents d9a86a4 + 239bb20 commit 859db68

File tree

57 files changed

+223
-148
lines changed

Some content is hidden

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

57 files changed

+223
-148
lines changed

android/build.gradle

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

2222
dependencies {
2323
compile 'com.facebook.react:react-native:0.20.+'
24-
compile ('com.instabug.library:instabug:4.11.2'){
24+
compile ('com.instabug.library:instabug:4.12.0'){
2525
exclude group: 'com.android.support'
2626
}
2727

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,37 @@ public void setSuccessDialogEnabled(boolean enabled) {
13111311
}
13121312
}
13131313

1314+
/**
1315+
* Set after how many sessions should the dismissed survey would show again.
1316+
*
1317+
* @param sessionsCount number of sessions that the dismissed survey will be shown after.
1318+
* @param daysCount number of days that the dismissed survey will show after
1319+
*
1320+
*/
1321+
@ReactMethod
1322+
public void setThresholdForReshowingSurveyAfterDismiss(int sessionsCount, int daysCount) {
1323+
try {
1324+
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionsCount, daysCount);
1325+
} catch (Exception e) {
1326+
e.printStackTrace();
1327+
}
1328+
}
1329+
1330+
/**
1331+
* Set Surveys auto-showing state, default state auto-showing enabled
1332+
*
1333+
* @param autoShowingSurveysEnabled whether Surveys should be auto-showing or not
1334+
*
1335+
*/
1336+
@ReactMethod
1337+
public void setAutoShowingSurveysEnabled(boolean autoShowingSurveysEnabled) {
1338+
try {
1339+
Instabug.setSurveysAutoShowing(autoShowingSurveysEnabled);
1340+
} catch (Exception e) {
1341+
e.printStackTrace();
1342+
}
1343+
}
1344+
13141345
/**
13151346
* Set whether new in app notification received will play a small sound notification
13161347
* or not (Default is {@code false})

index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,28 @@ module.exports = {
901901
Instabug.setVideoRecordingFloatingButtonPosition(position);
902902
},
903903

904+
/**
905+
* Sets a threshold for numbers of sessions and another for number of days
906+
* required before a survey, that has been dismissed once, would show again.
907+
* @param {number} sessionCount Number of sessions required to be
908+
* initialized before a dismissed survey can be shown again.
909+
* @param {number} daysCount Number of days required to pass before a
910+
* dismissed survey can be shown again.
911+
*/
912+
setThresholdForReshowingSurveyAfterDismiss: function (sessionCount, daysCount) {
913+
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionCount, daysCount);
914+
},
915+
916+
/**
917+
* Sets whether auto surveys showing are enabled or not.
918+
* @param autoShowingSurveysEnabled A boolean to indicate whether the
919+
* surveys auto showing are enabled or not.
920+
*
921+
*/
922+
setAutoShowingSurveysEnabled: function(autoShowingSurveysEnabled) {
923+
Instabug.setAutoShowingSurveysEnabled(autoShowingSurveysEnabled);
924+
},
925+
904926
/**
905927
* The event used to invoke the feedback form
906928
* @readonly

ios/Instabug.framework/Headers/Instabug.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.10.1
8+
Version: 7.11
99
*/
1010

1111
#import <Foundation/Foundation.h>
@@ -1227,6 +1227,16 @@ OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel l
12271227
*/
12281228
+ (BOOL)hasRespondedToSurveyWithToken:(NSString *)surveyToken;
12291229

1230+
/**
1231+
@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.
1232+
1233+
@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.
1234+
1235+
@param sessionCount : Number of sessions required to be initialized before a dismissed survey can be shown again.
1236+
@param daysCount : Number of days required to pass before a dismissed survey can be shown again.
1237+
*/
1238+
+ (void)setThresholdForReshowingSurveyAfterDismiss:(NSInteger)sessionCount daysCount:(NSInteger)daysCount;
1239+
12301240
/// ------------------------
12311241
/// @name SDK Debugging
12321242
/// ------------------------
927 Bytes
Binary file not shown.

ios/Instabug.framework/Info.plist

-2 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

2.69 MB
Binary file not shown.

ios/Instabug.framework/_CodeSignature/CodeResources

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
<dict>
77
<key>Headers/Instabug.h</key>
88
<data>
9-
FXGwngWRcYOFi0T4tL2KdxlGUjw=
9+
KaktP0mCVLTY/kzvHoEBfHLBujs=
10+
</data>
11+
<key>IBGMessagesView.nib</key>
12+
<data>
13+
CYbGQMMcOnrlg/w6IYt6NGC4SVQ=
1014
</data>
1115
<key>Info.plist</key>
1216
<data>
13-
j7YBrXxPdubzZ6bNCoQpUGSt9Ps=
17+
71A+oD0n9+MCTnb5V89W32YiBI8=
1418
</data>
1519
<key>Modules/module.modulemap</key>
1620
<data>
@@ -23,11 +27,22 @@
2327
<dict>
2428
<key>hash</key>
2529
<data>
26-
FXGwngWRcYOFi0T4tL2KdxlGUjw=
30+
KaktP0mCVLTY/kzvHoEBfHLBujs=
31+
</data>
32+
<key>hash2</key>
33+
<data>
34+
yzPKqqwzYv2dyr9Q/ZP/cI6xi+GOlkLBfdpLMpfJMkM=
35+
</data>
36+
</dict>
37+
<key>IBGMessagesView.nib</key>
38+
<dict>
39+
<key>hash</key>
40+
<data>
41+
CYbGQMMcOnrlg/w6IYt6NGC4SVQ=
2742
</data>
2843
<key>hash2</key>
2944
<data>
30-
q5gMkf8yDUe0ic4LGgKu6eHW6DceEAnkLcLrx6H5/TA=
45+
jDmmUWWXSku8H+K4DA414ePcR9v9D1uDbM+iIVj/+Jk=
3146
</data>
3247
</dict>
3348
<key>Modules/module.modulemap</key>

ios/InstabugCore.framework/Headers/IBGTypes.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.10.1
8+
Version: 7.11
99
*/
1010

1111
#import <UIKit/UIKit.h>
@@ -78,6 +78,10 @@ extern NSString * const kIBGSurveyThankYouTitleText;
7878
extern NSString * const kIBGSurveyThankYouDescriptionText;
7979
extern NSString * const kIBGSurveysNPSLeastLikelyStringName;
8080
extern NSString * const kIBGSurveysNPSMostLikelyStringName;
81+
extern NSString * const kIBGSurveyNextButtonTitle;
82+
extern NSString * const kIBGSurveySubmitButtonTitle;
83+
extern NSString * const kIBGSurveyAppStoreThankYouTitle;
84+
extern NSString * const kIBGSurveyAppStoreButtonTitle;
8185
extern NSString * const kIBGExpectedResultsStringName;
8286
extern NSString * const kIBGActualResultsStringName;
8387
extern NSString * const kIBGStepsToReproduceStringName;

ios/InstabugCore.framework/Headers/InstabugCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.10.1
8+
Version: 7.11
99
*/
1010

1111
#import <Foundation/Foundation.h>
-2 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-3 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.
Binary file not shown.
-132 Bytes
Binary file not shown.
Binary file not shown.
-2.04 KB
Binary file not shown.
41 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.
-96 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ios/InstabugCore.framework/Info.plist

-2 Bytes
Binary file not shown.
264 KB
Binary file not shown.

0 commit comments

Comments
 (0)