Skip to content

Commit d1b9d41

Browse files
authored
🤝 Merge pull request #6 from Instabug/feature/2.9_release
Feature/2.9 release
2 parents 5ca088e + 433e144 commit d1b9d41

File tree

57 files changed

+337
-140
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

+337
-140
lines changed

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ android {
2121

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

2828
}

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,24 @@ public void setEnableInAppNotificationSound(boolean shouldPlaySound) {
13591359
}
13601360
}
13611361

1362+
/**
1363+
* Enable/disable session profiler
1364+
*
1365+
* @param sessionProfilerEnabled desired state of the session profiler feature
1366+
*/
1367+
@ReactMethod
1368+
public void setSessionProfilerEnabled(boolean sessionProfilerEnabled) {
1369+
try {
1370+
if(sessionProfilerEnabled) {
1371+
Instabug.setSessionProfilerState(Feature.State.ENABLED);
1372+
} else {
1373+
Instabug.setSessionProfilerState(Feature.State.DISABLED);
1374+
}
1375+
} catch (Exception e) {
1376+
e.printStackTrace();
1377+
}
1378+
}
1379+
13621380
private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
13631381
switch (key) {
13641382
case SHAKE_HINT:

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ module.exports = {
146146
Instabug.hasRespondedToSurveyWithToken(surveyToken, surveyTokenCallback);
147147
},
148148

149+
/**
150+
* The session profiler is enabled by default and it attaches to the bug and
151+
* crash reports the following information during the last 60 seconds before the report is sent.
152+
* @param {boolean} sessionProfilerEnabled - A boolean parameter to enable or disable the feature.
153+
*
154+
*/
155+
setSessionProfilerEnabled: function (sessionProfilerEnabled) {
156+
Instabug.setSessionProfilerEnabled(sessionProfilerEnabled);
157+
},
158+
149159
/**
150160
* Sets a block of code to be executed just before the SDK's UI is presented.
151161
* This block is executed on the UI thread. Could be used for performing any

ios/Instabug.framework/Headers/Instabug.h

Lines changed: 42 additions & 2 deletions
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.11.1
8+
Version: 7.12.2
99
*/
1010

1111
#import <Foundation/Foundation.h>
@@ -161,6 +161,22 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
161161
*/
162162
+ (void)setUserStepsEnabled:(BOOL)isUserStepsEnabled;
163163

164+
/**
165+
@brief Sets whether the session profiler is enabled or disabled.
166+
167+
@discussion The session profiler is enabled by default and it attaches to the bug and crash reports the following information during the last 60 seconds before the report is sent.
168+
1. CPU load.
169+
2. Dispatch queues latency.
170+
3. Memory usage.
171+
4. Storage usage.
172+
5. Connectivity.
173+
6. Battery percentage and state.
174+
7. Orientation.
175+
176+
@param sessionProfilerEnabled A boolean parameter to enable or disable the feature.
177+
*/
178+
+ (void)setSessionProfilerEnabled:(BOOL)sessionProfilerEnabled;
179+
164180
/**
165181
@brief Sets whether the SDK is recording the screen or not.
166182
@@ -444,12 +460,14 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
444460

445461
/**
446462
@brief Sets whether users are required to enter an email address or not when sending reports.
463+
464+
@deprecated Use setEmailFieldRequired:forAction: instead.
447465
448466
@discussion Defaults to YES.
449467
450468
@param isEmailFieldRequired A boolean to indicate whether email field is required or not.
451469
*/
452-
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired;
470+
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired DEPRECATED_MSG_ATTRIBUTE("Use setEmailFieldRequired:forAction: instead");
453471

454472
/**
455473
@brief Sets whether users are required to enter a comment or not when sending reports.
@@ -769,6 +787,16 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
769787
*/
770788
+ (void)setViewHierarchyEnabled:(BOOL)viewHierarchyEnabled;
771789

790+
/**
791+
@brief Sets whether users are required to enter an email address or not when doing a certain action `IBGActionType`.
792+
793+
@discussion Defaults to YES.
794+
795+
@param isEmailFieldRequired A boolean to indicate whether email field is required or not.
796+
@param actionType An enum that indicates which action types will have the isEmailFieldRequired.
797+
*/
798+
+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired forAction:(IBGActionType)actionType;
799+
772800
/// -------------------
773801
/// @name SDK Reporting
774802
/// -------------------
@@ -1237,6 +1265,18 @@ OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel l
12371265
*/
12381266
+ (void)setThresholdForReshowingSurveyAfterDismiss:(NSInteger)sessionCount daysCount:(NSInteger)daysCount;
12391267

1268+
#pragma mark - Feature Requests
1269+
/// ------------------------
1270+
/// @name Feature Requests
1271+
/// ------------------------
1272+
1273+
/**
1274+
@brief Shows the UI for feature requests list
1275+
*/
1276+
+ (void)showFeatureRequests;
1277+
1278+
#pragma mark - SDK Debugging
1279+
12401280
/// ------------------------
12411281
/// @name SDK Debugging
12421282
/// ------------------------

ios/Instabug.framework/Info.plist

0 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

6.25 MB
Binary file not shown.

ios/Instabug.framework/_CodeSignature/CodeResources

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<dict>
77
<key>Headers/Instabug.h</key>
88
<data>
9-
9liYtaQcf+iz5BGlZc1SAi2xLYo=
9+
XDnWikGFRQ5xwAV0kCorplk1cM4=
1010
</data>
1111
<key>Info.plist</key>
1212
<data>
13-
maoYdO6pduMZ9OtjRkZyF1zIOWk=
13+
PpETNUvcYiBew0OfmP2j/Ibj//Q=
1414
</data>
1515
<key>Modules/module.modulemap</key>
1616
<data>
@@ -23,11 +23,11 @@
2323
<dict>
2424
<key>hash</key>
2525
<data>
26-
9liYtaQcf+iz5BGlZc1SAi2xLYo=
26+
XDnWikGFRQ5xwAV0kCorplk1cM4=
2727
</data>
2828
<key>hash2</key>
2929
<data>
30-
iEpXG6pOBnCyA4rRyjScQmMFHL8jqi/+cDQ/+5g4/ic=
30+
TKuVjgAmDsMC3GkVsXYlJZabb1cCne+zgcEdz+tgm7M=
3131
</data>
3232
</dict>
3333
<key>Modules/module.modulemap</key>

ios/InstabugCore.framework/Headers/IBGTypes.h

Lines changed: 96 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.11.1
8+
Version: 7.12.2
99
*/
1010

1111
#import <UIKit/UIKit.h>
@@ -70,6 +70,50 @@ extern NSString * const kIBGLowDiskStorageMessage;
7070
extern NSString * const kIBGInboundByLineMessage;
7171
extern NSString * const kIBGExtraFieldIsRequiredText;
7272
extern NSString * const kIBGExtraFieldMissingDataText;
73+
extern NSString * const kIBGFeatureRequestsTitle;
74+
extern NSString * const kIBGFeatureDetailsTitle;
75+
extern NSString * const kIBGStringFeatureRequestsRefreshText;
76+
extern NSString * const kIBGFeatureRequestErrorStateTitleLabel;
77+
extern NSString * const kIBGFeatureRequestErrorStateDescriptionLabel;
78+
extern NSString * const kIBGFeatureRequestSortingByRecentlyUpdatedText;
79+
extern NSString * const kIBGFeatureRequestSortingByTopVotesText;
80+
extern NSString * const kIBGStringFeatureRequestAllFeaturesText;
81+
extern NSString * const kIBGAddNewFeatureRequestText;
82+
extern NSString * const kIBGAddNewFeatureRequestToastText;
83+
extern NSString * const kIBGAddNewFeatureRequestErrorToastText;
84+
extern NSString * const kIBGAddNewFeatureRequestLoadingHUDTitle;
85+
extern NSString * const kIBGAddNewFeatureRequestSuccessHUDTitle;
86+
extern NSString * const kIBGAddNewFeatureRequestSuccessHUDMessage;
87+
extern NSString * const kIBGAddNewFeatureRequestTryAgainText;
88+
extern NSString * const kIBGAddNewFeatureRequestCancelPromptTitle;
89+
extern NSString * const kIBGAddNewFeatureRequestCancelPromptYesAction;
90+
extern NSString * const kIBGFeatureRequestInvalidEmailText;
91+
extern NSString * const kIBGFeatureRequestTimelineEmptyText;
92+
extern NSString * const kIBGFeatureRequestTimelineErrorDescriptionLabel;
93+
extern NSString * const kIBGFeatureRequestStatusChangeText;
94+
extern NSString * const kIBGFeatureRequestAddButtonText;
95+
extern NSString * const kIBGFeatureRequestVoteWithCountText;
96+
extern NSString * const kIBGFeatureRequestVoteText;
97+
extern NSString * const kIBGFeatureRequestPostButtonText;
98+
extern NSString * const kIBGFeatureRequestCommentsText;
99+
extern NSString * const kIBGFeatureRequestAuthorText;
100+
extern NSString * const kIBGFeatureRequestEmptyViewTitle;
101+
extern NSString * const kIBGFeatureRequestAddYourIdeaText;
102+
extern NSString * const kIBGFeatureRequestAnonymousText;
103+
extern NSString * const kIBGFeatureRequestStatusPosted;
104+
extern NSString * const kIBGFeatureRequestStatusPlanned;
105+
extern NSString * const kIBGFeatureRequestStatusStarted;
106+
extern NSString * const kIBGFeatureRequestStatusCompleted;
107+
extern NSString * const kIBGFeatureRequestStatusMaybeLater;
108+
extern NSString * const kIBGFeatureRequestStatusMoreText;
109+
extern NSString * const kIBGFeatureRequestStatusLessText;
110+
extern NSString * const kIBGFeatureRequestAddYourThoughtsText;
111+
extern NSString * const kIBGEmailRequiredText;
112+
extern NSString * const kIBGNameText;
113+
extern NSString * const kIBGEmailText;
114+
extern NSString * const kIBGTitleText;
115+
extern NSString * const kIBGDescriptionText;
116+
extern NSString * const kIBGStringFeatureRequestMyFeaturesText;
73117
extern NSString * const kIBGSurveyIntroTitleText;
74118
extern NSString * const kIBGSurveyIntroDescriptionText;
75119
extern NSString * const kIBGSurveyIntroTakeSurveyButtonText;
@@ -265,6 +309,50 @@ typedef NS_ENUM(NSInteger, IBGString) {
265309
IBGStringLowDiskStorageMessage,
266310
IBGStringExtraFieldIsRequiredText,
267311
IBGStringExtraFieldMissingDataText,
312+
IBGStringFeatureRequestsTitle,
313+
IBGStringFeatureDetailsTitle,
314+
IBGStringFeatureRequestsRefreshText,
315+
IBGStringFeatureRequestSortingByRecentlyUpdatedText,
316+
IBGStringFeatureRequestSortingByTopVotesText,
317+
IBGStringFeatureRequestErrorStateTitleText,
318+
IBGStringFeatureRequestErrorStateDescriptionText,
319+
IBGStringFeatureRequestAllFeaturesText,
320+
IBGStringFeatureRequestMyFeaturesText,
321+
IBGStringAddNewFeatureRequestText,
322+
IBGStringAddNewFeatureRequestToastText,
323+
IBGStringAddNewFeatureRequestErrorToastText,
324+
IBGStringAddNewFeatureRequestLoadingHUDTitle,
325+
IBGStringAddNewFeatureRequestSuccessHUDTitle,
326+
IBGStringAddNewFeatureRequestSuccessHUDMessage,
327+
IBGStringAddNewFeatureRequestTryAgainText,
328+
IBGStringAddNewFeatureRequestCancelPromptTitle,
329+
IBGStringAddNewFeatureRequestCancelPromptYesAction,
330+
IBGStringFeatureRequestInvalidEmailText,
331+
IBGStringFeatureRequestStatusChangeText,
332+
IBGStringFeatureRequestAddButtonText,
333+
IBGStringFeatureRequestVoteWithCountText,
334+
IBGStringFeatureRequestVoteText,
335+
IBGStringFeatureRequestPostButtonText,
336+
IBGStringFeatureRequestCommentsText,
337+
IBGStringFeatureRequestAuthorText,
338+
IBGStringFeatureRequestEmptyViewTitle,
339+
IBGStringFeatureRequestAddYourIdeaText,
340+
IBGStringFeatureRequestAnonymousText,
341+
IBGStringFeatureRequestStatusPosted,
342+
IBGStringFeatureRequestStatusPlanned,
343+
IBGStringFeatureRequestStatusStarted,
344+
IBGStringFeatureRequestStatusCompleted,
345+
IBGStringFeatureRequestStatusMaybeLater,
346+
IBGFeatureRequestTimelineEmptyCommentText,
347+
IBGFeatureRequestTimelineErrorDescriptionText,
348+
IBGStringFeatureRequestStatusMoreText,
349+
IBGStringFeatureRequestStatusLessText,
350+
IBGStringFeatureRequestAddYourThoughtsText,
351+
IBGStringEmailRequiredText,
352+
IBGStringNameText,
353+
IBGStringEmailText,
354+
IBGStringTitleText,
355+
IBGStringDescriptionText,
268356
IBGStringSurveyIntroTitleText,
269357
IBGStringSurveyIntroDescriptionText,
270358
IBGStringSurveyIntroTakeSurveyButtonText,
@@ -336,6 +424,13 @@ typedef NS_ENUM(NSInteger, IBGExtendedBugReportMode) {
336424
IBGExtendedBugReportModeDisabled
337425
};
338426

427+
typedef enum : NSUInteger {
428+
IBGActionAllActions = 1 << 0,
429+
IBGActionReportBug = 1 << 1,
430+
IBGActionRequestNewFeature = 1 << 2,
431+
IBGActionAddCommentToFeature = 1 << 3,
432+
} IBGActionType;
433+
339434
@interface UIView (Instabug)
340435

341436
/**

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.11.1
8+
Version: 7.12.2
99
*/
1010

1111
#import <Foundation/Foundation.h>
-5 Bytes
Binary file not shown.
Binary file not shown.
-120 Bytes
Binary file not shown.
-9 Bytes
Binary file not shown.
Binary file not shown.
-2 Bytes
Binary file not shown.
Binary file not shown.
5 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.
13 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

0 Bytes
Binary file not shown.
1.68 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)