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