📝 Change the title of the visual user steps enum to enabledWithNoScreenshots

This commit is contained in:
Salma ElTarzi 2018-03-05 20:23:06 +02:00
parent 68f4ec41cc
commit a62dd4c3a3
4 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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,
}, },
/** /**

View File

@ -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),

View File

@ -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, (@{