mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-01 13:40:42 +00:00
📝 Change the title of the visual user steps enum to enabledWithNoScreenshots
This commit is contained in:
parent
68f4ec41cc
commit
a62dd4c3a3
@ -95,7 +95,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
private final String EXTENDED_BUG_REPORT_DISABLED = "disabled";
|
||||
|
||||
//Instabug repro step modes
|
||||
private final String ENABLED_WITH_NO_SCREENSHOT = "enabledWithNoScreenshot";
|
||||
private final String ENABLED_WITH_NO_SCREENSHOTS = "enabledWithNoScreenshots";
|
||||
private final String ENABLED = "enabled";
|
||||
private final String DISABLED = "disabled";
|
||||
|
||||
@ -1233,7 +1233,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether user steps tracking is visual, non visula or disabled.
|
||||
* Sets whether user steps tracking is visual, non visual or disabled.
|
||||
*
|
||||
* @param reproStepsMode A string to set user steps tracking to be
|
||||
* enabled, non visual or disabled.
|
||||
@ -1242,7 +1242,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
public void setReproStepsMode(String reproStepsMode) {
|
||||
try {
|
||||
switch(reproStepsMode) {
|
||||
case ENABLED_WITH_NO_SCREENSHOT:
|
||||
case ENABLED_WITH_NO_SCREENSHOTS:
|
||||
Instabug.setReproStepsState(State.ENABLED_WITH_NO_SCREENSHOTS);
|
||||
break;
|
||||
case ENABLED:
|
||||
@ -1508,7 +1508,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
constants.put("enabledWithOptionalFields", EXTENDED_BUG_REPORT_OPTIONAL_FIELDS);
|
||||
constants.put("disabled", EXTENDED_BUG_REPORT_DISABLED);
|
||||
|
||||
constants.put("reproStepsEnabledWithNoScreenshot", ENABLED_WITH_NO_SCREENSHOT);
|
||||
constants.put("reproStepsEnabledWithNoScreenshots", ENABLED_WITH_NO_SCREENSHOTS);
|
||||
constants.put("reproStepsEnabled", ENABLED);
|
||||
constants.put("reproStepsDisabled", DISABLED);
|
||||
|
||||
|
2
index.js
2
index.js
@ -920,7 +920,7 @@ module.exports = {
|
||||
reproStepsMode: {
|
||||
enabled: Instabug.reproStepsEnabled,
|
||||
disabled: Instabug.reproStepsDisabled,
|
||||
enabledWithNoScreenshot: Instabug.reproStepsEnabledWithNoScreenshot,
|
||||
enabledWithNoScreenshots: Instabug.reproStepsEnabledWithNoScreenshots,
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -406,7 +406,7 @@ RCT_EXPORT_METHOD(isRunningLive:(RCTResponseSenderBlock)callback) {
|
||||
|
||||
@"reproStepsEnabled": @(IBGUserStepsModeEnable),
|
||||
@"reproStepsDisabled": @(IBGUserStepsModeDisable),
|
||||
@"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeEnabledWithNoScreenshots),
|
||||
@"reproStepsEnabledWithNoScreenshots": @(IBGUserStepsModeEnabledWithNoScreenshots),
|
||||
|
||||
@"reportTypeBug": @(IBGReportTypeBug),
|
||||
@"reportTypeFeedback": @(IBGReportTypeFeedback),
|
||||
|
@ -37,7 +37,7 @@ RCT_ENUM_CONVERTER(IBGDismissType, (@{
|
||||
RCT_ENUM_CONVERTER(IBGUserStepsMode, (@{
|
||||
@"reproStepsEnabled": @(IBGUserStepsModeEnable),
|
||||
@"reproStepsDisabled": @(IBGUserStepsModeDisable),
|
||||
@"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeEnabledWithNoScreenshots)
|
||||
@"reproStepsEnabledWithNoScreenshots": @(IBGUserStepsModeEnabledWithNoScreenshots)
|
||||
}), IBGUserStepsModeEnable, integerValue)
|
||||
|
||||
RCT_ENUM_CONVERTER(IBGExtendedBugReportMode, (@{
|
||||
|
Loading…
x
Reference in New Issue
Block a user