Skip to content

Commit 409d478

Browse files
2 parents 35b1db4 + 6cfc088 commit 409d478

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66
buildToolsVersion "24.0.2"
77

88
defaultConfig {
9-
minSdkVersion 10
9+
minSdkVersion 16
1010
targetSdkVersion 24
1111
versionCode 1
1212
versionName "1.0"

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,23 @@ public void setPrimaryColor(int primaryColor) {
211211
}
212212
}
213213

214+
/**
215+
* Sets whether attachments in bug reporting and in-app messaging are enabled or not.
216+
* @param {boolean} screenShot A boolean to enable or disable screenshot attachments.
217+
* @param {boolean} extraScreenShot A boolean to enable or disable extra screenshot attachments.
218+
* @param {boolean} galleryImage A boolean to enable or disable gallery image attachments.
219+
* @param {boolean} voiceNote A boolean to enable or disable voice note attachments.
220+
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments.
221+
*/
222+
@ReactMethod
223+
public void setAttachmentTypesEnabled(boolean screenshot, boolean extraScreenshot, boolean galleryImage, boolean voiceNote, boolean screenRecording) {
224+
try {
225+
mInstabug.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage, voiceNote, screenRecording);
226+
} catch (Exception e) {
227+
e.printStackTrace();
228+
}
229+
}
230+
214231
/**
215232
* Appends a log message to Instabug internal log
216233
* <p>

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ - (NSDictionary *)constantsToExport
216216

217217
@"invocationModeNA": @(IBGInvocationModeNA),
218218
@"invocationModeNewBug": @(IBGInvocationModeNewBug),
219-
@"invocationModeNewFeedbac": @(IBGInvocationModeNewFeedback),
219+
@"invocationModeNewFeedback": @(IBGInvocationModeNewFeedback),
220220
@"invocationModeNewChat": @(IBGInvocationModeNewChat),
221221
@"invocationModeChatsList": @(IBGInvocationModeChatsList),
222222

0 commit comments

Comments
 (0)