mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-01 13:40:42 +00:00
commit
6cfc088bf5
@ -6,7 +6,7 @@ android {
|
|||||||
buildToolsVersion "24.0.2"
|
buildToolsVersion "24.0.2"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 10
|
minSdkVersion 16
|
||||||
targetSdkVersion 24
|
targetSdkVersion 24
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
|
@ -211,6 +211,23 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether attachments in bug reporting and in-app messaging are enabled or not.
|
||||||
|
* @param {boolean} screenShot A boolean to enable or disable screenshot attachments.
|
||||||
|
* @param {boolean} extraScreenShot A boolean to enable or disable extra screenshot attachments.
|
||||||
|
* @param {boolean} galleryImage A boolean to enable or disable gallery image attachments.
|
||||||
|
* @param {boolean} voiceNote A boolean to enable or disable voice note attachments.
|
||||||
|
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments.
|
||||||
|
*/
|
||||||
|
@ReactMethod
|
||||||
|
public void setAttachmentTypesEnabled(boolean screenshot, boolean extraScreenshot, boolean galleryImage, boolean voiceNote, boolean screenRecording) {
|
||||||
|
try {
|
||||||
|
mInstabug.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage, voiceNote, screenRecording);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Appends a log message to Instabug internal log
|
* Appends a log message to Instabug internal log
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -216,7 +216,7 @@ RCT_EXPORT_METHOD(isInstabugNotification:(NSDictionary *)notification callback:(
|
|||||||
|
|
||||||
@"invocationModeNA": @(IBGInvocationModeNA),
|
@"invocationModeNA": @(IBGInvocationModeNA),
|
||||||
@"invocationModeNewBug": @(IBGInvocationModeNewBug),
|
@"invocationModeNewBug": @(IBGInvocationModeNewBug),
|
||||||
@"invocationModeNewFeedbac": @(IBGInvocationModeNewFeedback),
|
@"invocationModeNewFeedback": @(IBGInvocationModeNewFeedback),
|
||||||
@"invocationModeNewChat": @(IBGInvocationModeNewChat),
|
@"invocationModeNewChat": @(IBGInvocationModeNewChat),
|
||||||
@"invocationModeChatsList": @(IBGInvocationModeChatsList),
|
@"invocationModeChatsList": @(IBGInvocationModeChatsList),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user