Skip to content

Commit 899f869

Browse files
committed
💎Bump Version to v8.1.6
1 parent b185985 commit 899f869

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,25 @@ public void run() {
535535
});
536536
}
537537

538+
/**
539+
* Sets whether attachments in bug reporting and in-app messaging are enabled or not.
540+
*
541+
* @param screenshot A boolean to enable or disable screenshot attachments.
542+
* @param {boolean} extraScreenShot A boolean to enable or disable extra screenshot attachments.
543+
* @param {boolean} galleryImage A boolean to enable or disable gallery image attachments.
544+
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments.
545+
*/
546+
@ReactMethod
547+
public void setEnabledAttachmentTypes(boolean screenshot, boolean extraScreenshot, boolean
548+
galleryImage, boolean screenRecording) {
549+
try {
550+
BugReporting.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage,
551+
screenRecording);
552+
} catch (Exception e) {
553+
e.printStackTrace();
554+
}
555+
}
556+
538557
/**
539558
* Gets tags.
540559
*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "8.1.5",
3+
"version": "8.1.6",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)