Skip to content

Commit 2380c72

Browse files
authored
🤝 Merge pull request #1 from Instabug/feature/2.6_new_apis
Feature/2.6 new apis
2 parents d2126d0 + c96223d commit 2380c72

36 files changed

+170
-93
lines changed

android/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
apply plugin: 'com.android.library'
33

44
android {
5-
compileSdkVersion 24
6-
buildToolsVersion "25.0.3"
5+
compileSdkVersion 26
6+
buildToolsVersion "26.0.2"
77

88
defaultConfig {
99
minSdkVersion 16
10-
targetSdkVersion 24
10+
targetSdkVersion 26
1111
versionCode 1
1212
versionName "1.0"
1313
ndk {
@@ -21,6 +21,8 @@ android {
2121

2222
dependencies {
2323
compile 'com.facebook.react:react-native:0.20.+'
24-
compile 'com.instabug.library:instabug:4.10.0'
24+
compile ('com.instabug.library:instabug:4.10.2'){
25+
exclude group: 'com.android.support'
26+
}
2527

2628
}

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,38 @@ public void appendTags(ReadableArray tags) {
233233
}
234234
}
235235

236+
/**
237+
* Enable/Disable screen recording
238+
*
239+
* @param autoScreenRecordingEnabled boolean for enable/disable
240+
* screen recording on crash feature
241+
*/
242+
@ReactMethod
243+
public void setAutoScreenRecordingEnabled(boolean autoScreenRecordingEnabled) {
244+
try {
245+
Instabug.setAutoScreenRecordingEnabled(autoScreenRecordingEnabled);
246+
} catch (Exception e) {
247+
e.printStackTrace();
248+
}
249+
}
250+
251+
/**
252+
* Sets auto screen recording maximum duration
253+
*
254+
* @param autoScreenRecordingMaxDuration maximum duration of the screen recording video
255+
* in milliseconds
256+
* The maximum duration is 30000 milliseconds
257+
*/
258+
@ReactMethod
259+
public void setAutoScreenRecordingMaxDuration(int autoScreenRecordingMaxDuration) {
260+
try {
261+
int durationInMilli = autoScreenRecordingMaxDuration*1000;
262+
Instabug.setAutoScreenRecordingMaxDuration(durationInMilli);
263+
} catch (Exception e) {
264+
e.printStackTrace();
265+
}
266+
}
267+
236268
/**
237269
* Change Locale of Instabug UI elements(defaults to English)
238270
*

index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,26 @@ module.exports = {
6060
Instabug.setUserData(userData);
6161
},
6262

63+
/**
64+
* Enable/Disable screen recording
65+
* @param {boolean} autoScreenRecordingEnabled boolean for enable/disable
66+
* screen recording on crash feature
67+
*/
68+
setAutoScreenRecordingEnabled: function(autoScreenRecordingEnabled) {
69+
Instabug.setAutoScreenRecordingEnabled(autoScreenRecordingEnabled);
70+
},
71+
72+
/**
73+
* Sets auto screen recording maximum duration
74+
*
75+
* @param autoScreenRecordingMaxDuration maximum duration of the screen recording video
76+
* in seconds
77+
* The maximum duration is 30 seconds
78+
*/
79+
setAutoScreenRecordingMaxDuration: function(autoScreenRecordingMaxDuration) {
80+
Instabug.setAutoScreenRecordingMaxDuration(autoScreenRecordingMaxDuration)
81+
},
82+
6383
/**
6484
* Adds custom logs that will be sent with each report.
6585
* @param {string} log Message to be logged.

ios/Instabug.framework/Headers/Instabug.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.9.1
8+
Version: 7.9.2
99
*/
1010

1111
#import <Foundation/Foundation.h>

ios/Instabug.framework/Info.plist

0 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

-48.5 KB
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-
QBpq+Ij2Wm2lDnacn3+fsy3X0pE=
9+
4kxZEeE00REbmUfGg94C3NULVvw=
1010
</data>
1111
<key>Info.plist</key>
1212
<data>
13-
wS/j0NU/yNgCQFnGCA2MArLdDfA=
13+
VKe9NgIDfUhBqsBVFqPK7wnZNKg=
1414
</data>
1515
<key>Modules/module.modulemap</key>
1616
<data>
@@ -23,11 +23,11 @@
2323
<dict>
2424
<key>hash</key>
2525
<data>
26-
QBpq+Ij2Wm2lDnacn3+fsy3X0pE=
26+
4kxZEeE00REbmUfGg94C3NULVvw=
2727
</data>
2828
<key>hash2</key>
2929
<data>
30-
LBpl5bfRVAvQGontLB4zAKs7MNCxFVAFEQgw1lpFNSI=
30+
jm2cECRm9S/pqpKmkItxvSLqsykctBM5sYtNF2GHj0o=
3131
</data>
3232
</dict>
3333
<key>Modules/module.modulemap</key>

ios/InstabugCore.framework/Headers/IBGTypes.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.9.1
8+
Version: 7.9.2
99
*/
1010

1111
#import <UIKit/UIKit.h>

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

1111
#import <Foundation/Foundation.h>
-8 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 Bytes
Binary file not shown.
-5 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
3 Bytes
Binary file not shown.
-4 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.
Binary file not shown.

ios/InstabugCore.framework/Info.plist

0 Bytes
Binary file not shown.
213 KB
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)