Skip to content

Commit 8de88fc

Browse files
authored
Bumping to v8.3 (#64)
* 💎 Bump Android to v8.3.0.0 * 📝 Network Interceptor Fix * 📝 Adding v8.3 and changing apis accordingly * 📝 Fixing network logger duration
1 parent 4a0fff7 commit 8de88fc

File tree

62 files changed

+282
-218
lines changed

Some content is hidden

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

62 files changed

+282
-218
lines changed

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.2.2.1'){
30+
api ('com.instabug.library:instabug:8.3.0.0'){
3131
exclude group: 'com.android.support:appcompat-v7'
3232
}
3333
}

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public void appendTags(ReadableArray tags) {
338338
@ReactMethod
339339
public void setAutoScreenRecordingEnabled(boolean autoScreenRecordingEnabled) {
340340
try {
341-
Instabug.setAutoScreenRecordingEnabled(autoScreenRecordingEnabled);
341+
BugReporting.setAutoScreenRecordingEnabled(autoScreenRecordingEnabled);
342342
} catch (Exception e) {
343343
e.printStackTrace();
344344
}
@@ -406,10 +406,9 @@ public void setExtendedBugReportMode(String extendedBugReportMode) {
406406
public void setViewHierarchyEnabled(boolean enabled) {
407407
try {
408408
if (enabled) {
409-
Instabug.setViewHierarchyState(Feature.State.ENABLED);
409+
BugReporting.setViewHierarchyState(Feature.State.ENABLED);
410410
} else {
411-
412-
Instabug.setViewHierarchyState(Feature.State.DISABLED);
411+
BugReporting.setViewHierarchyState(Feature.State.DISABLED);
413412
}
414413
} catch (Exception e) {
415414
e.printStackTrace();
@@ -1550,14 +1549,11 @@ public void setReproStepsMode(String reproStepsMode) {
15501549
case ENABLED_WITH_NO_SCREENSHOTS:
15511550
Instabug.setReproStepsState(State.ENABLED_WITH_NO_SCREENSHOTS);
15521551
break;
1553-
case ENABLED:
1554-
Instabug.setReproStepsState(State.ENABLED);
1555-
break;
15561552
case DISABLED:
15571553
Instabug.setReproStepsState(State.DISABLED);
15581554
break;
15591555
default:
1560-
Instabug.setReproStepsState(State.ENABLED);
1556+
Instabug.setReproStepsState(State.ENABLED_WITH_NO_SCREENSHOTS);
15611557
}
15621558

15631559
} catch (Exception e) {
@@ -2032,6 +2028,7 @@ public void networkLog(String jsonObject) throws JSONException {
20322028
networkLog.setResponseCode(newJSONObject.getInt("responseCode"));
20332029
networkLog.setRequestHeaders(newJSONObject.getString("requestHeaders"));
20342030
networkLog.setResponseHeaders(newJSONObject.getString("responseHeaders"));
2031+
networkLog.setTotalDuration(newJSONObject.getLong("duration"));
20352032
networkLog.insert();
20362033
}
20372034

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const InstabugModule = {
7171
},
7272

7373
/**
74-
* @deprecated
74+
* @deprecated use {@link BugReporting.setAutoScreenRecordingEnabled}
7575
* Enable/Disable screen recording
7676
* @param {boolean} autoScreenRecordingEnabled boolean for enable/disable
7777
* screen recording on crash feature
@@ -81,7 +81,7 @@ const InstabugModule = {
8181
},
8282

8383
/**
84-
* @deprecated
84+
* @deprecated use {@link BugReporting.setAutoScreenRecordingMaxDuration}
8585
* Sets auto screen recording maximum duration
8686
*
8787
* @param autoScreenRecordingMaxDuration maximum duration of the screen recording video
@@ -588,6 +588,7 @@ const InstabugModule = {
588588
},
589589

590590
/**
591+
* @deprecated use {@link BugReporting.setViewHierarchyEnabled}
591592
* @summary Enables/disables inspect view hierarchy when reporting a bug/feedback.
592593
* @param {boolean} viewHierarchyEnabled A boolean to set whether view hierarchy are enabled
593594
* or disabled.
@@ -828,7 +829,6 @@ const InstabugModule = {
828829
* @enum {number}
829830
*/
830831
reproStepsMode: {
831-
enabled: Instabug.reproStepsEnabled,
832832
disabled: Instabug.reproStepsDisabled,
833833
enabledWithNoScreenshots: Instabug.reproStepsEnabledWithNoScreenshots
834834
},

ios/Instabug.framework/Headers/IBGBugReporting.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,27 @@ NS_SWIFT_NAME(BugReporting)
145145
*/
146146
+ (void)dismiss;
147147

148+
/**
149+
@brief Enables/disables inspect view hierarchy when reporting a bug/feedback.
150+
*/
151+
@property (class, atomic, assign) BOOL shouldCaptureViewHierarchy;
152+
153+
/**
154+
@brief Sets whether the SDK is recording the screen or not.
155+
156+
@discussion Enabling auto screen recording would give you an insight on the scenario a user has performed before encountering a bug. screen recording is attached with each bug being sent.
157+
158+
Auto screen recording is disabled by default.
159+
*/
160+
@property (class, atomic, assign) BOOL autoScreenRecordingEnabled;
161+
162+
/**
163+
@brief Sets maximum auto screen recording video duration.
164+
165+
@discussion sets maximum auto screen recording video duration with max value 30 seconds and min value greater than 1 sec.
166+
*/
167+
@property (class, atomic, assign) CGFloat autoScreenRecordingDuration;
168+
148169
/*
149170
+------------------------------------------------------------------------+
150171
| Deprecated APIs |

ios/Instabug.framework/Headers/IBGLog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ OBJC_EXTERN void IBGLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2) ;
127127
/**
128128
@brief Used to reroute all your NSLogs to Instabug to be able to automatically include them with reports.
129129
130-
@discussion For details on how to reroute your NSLogs to Instabug, see http://docs.instabug.com/docs/logging
130+
@discussion For details on how to reroute your NSLogs to Instabug, see https://docs.instabug.com/docs/ios-logging
131131
132132
@param format Format string.
133133
@param args Arguments list.

ios/Instabug.framework/Headers/IBGTypes.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ extern NSString * const kIBGDiscardAlertCancel;
164164
extern NSString * const kIBGVideoGalleryErrorMessageStringName;
165165
extern NSString * const kIBGVideoDurationErrorTitle;
166166
extern NSString * const kIBGVideoDurationErrorMessage;
167-
167+
extern NSString * const kIBGAutoScreenRecordingAlertAllowText;
168+
extern NSString * const kIBGAutoScreenRecordingAlertAlwaysAllowText;
169+
extern NSString * const kIBGAutoScreenRecordingAlertDenyText;
170+
extern NSString * const kIBGAutoScreenRecordingAlertTitleText;
171+
extern NSString * const kIBGAutoScreenRecordingAlertBodyText;
168172

169173
/// -----------
170174
/// @name Enums
@@ -332,7 +336,6 @@ typedef NS_ENUM(NSInteger, IBGLogLevel) {
332336
The user steps option.
333337
*/
334338
typedef NS_ENUM(NSInteger, IBGUserStepsMode) {
335-
IBGUserStepsModeEnable __attribute__((deprecated)),
336339
IBGUserStepsModeEnabledWithNoScreenshots,
337340
IBGUserStepsModeDisable
338341
};

ios/Instabug.framework/Headers/Instabug.h

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ NS_ASSUME_NONNULL_BEGIN
3131

3232
@interface Instabug : NSObject
3333

34-
/**
35-
@brief Sets whether the SDK is recording the screen or not.
36-
37-
@discussion Enabling auto screen recording would give you an insight on the scenario a user has performed before encountering a bug or a crash. screen recording is attached with each report being sent.
38-
39-
Auto screen recording is disabled by default.
40-
*/
41-
@property (class, atomic, assign) BOOL autoScreenRecordingEnabled DEPRECATED_MSG_ATTRIBUTE("AutoScreen recording is disabled please contact support for further details.");
42-
4334
/**
4435
@brief Sets whether the session profiler is enabled or disabled.
4536
@@ -59,12 +50,12 @@ NS_ASSUME_NONNULL_BEGIN
5950
6051
@discussion sets maximum auto screen recording video duration with max value 30 seconds and min value greater than 1 sec.
6152
*/
62-
@property (class, atomic, assign) CGFloat autoScreenRecordingDuration;
53+
@property (class, atomic, assign) CGFloat autoScreenRecordingDuration DEPRECATED_MSG_ATTRIBUTE("'autoScreenRecordingDuration' is deprecated: first deprecated in SDK 8.2.3 - autoScreenRecordingDuration is deprecated. Use IBGBugReporting.autoScreenRecordingDuration instead.");
6354

6455
/**
6556
@brief Enables/disables inspect view hierarchy when reporting a bug/feedback.
6657
*/
67-
@property (class, atomic, assign) BOOL shouldCaptureViewHierarchy;
58+
@property (class, atomic, assign) BOOL shouldCaptureViewHierarchy DEPRECATED_MSG_ATTRIBUTE("'shouldCaptureViewHierarchy' is deprecated: first deprecated in SDK 8.2.3 - shouldCaptureViewHierarchy is deprecated. Use IBGBugReporting.shouldCaptureViewHierarchy instead.");
6859

6960
/**
7061
@brief Sets the primary color of the SDK's UI.
@@ -335,7 +326,7 @@ NS_ASSUME_NONNULL_BEGIN
335326
| in a future release. |
336327
| |
337328
| To adopt the new changes, please refer to our migration guide at: |
338-
| https://docs.instabug.com/docs/ios-sdk-8-1-migration-guide |
329+
| https://docs.instabug.com/docs/ios-migration-guide |
339330
+------------------------------------------------------------------------+
340331
*/
341332

ios/Instabug.framework/Info.plist

-1 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

3.14 MB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)