Skip to content

Commit 7f14055

Browse files
authored
🤝 Merge pull request #3 from Instabug/feature/1.9.1_release
Feature/1.9.1 release
2 parents ba6663d + 39e650e commit 7f14055

35 files changed

+100
-71
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ android {
2121
}
2222

2323
dependencies {
24-
compile 'com.instabug.library:instabug:4.11.1'
24+
compile 'com.instabug.library:instabug:4.11.2'
2525
compile 'com.android.support:multidex:1.0.0'
2626
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-cordova",
3-
"version": "1.8.3",
3+
"version": "1.9.0",
44
"description": "The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interfacing with the SDK through JavaScript.",
55
"main": "index.js",
66
"repository": {

src/android/IBGPlugin.java

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.instabug.library.invocation.InstabugInvocationEvent;
1212
import com.instabug.library.invocation.InstabugInvocationMode;
1313
import com.instabug.library.invocation.util.InstabugVideoRecordingButtonCorner;
14+
import com.instabug.library.visualusersteps.State;
1415

1516
import org.apache.cordova.CallbackContext;
1617
import org.apache.cordova.CordovaInterface;
@@ -173,7 +174,10 @@ public boolean execute(final String action, JSONArray args, final CallbackContex
173174
} else if ("setExtendedBugReportMode".equals(action)) {
174175
setExtendedBugReportMode(callbackContext, args.optString(0));
175176

176-
}else {
177+
} else if ("setReproStepsMode".equals(action)) {
178+
setReproStepsMode(callbackContext, args.optString(0));
179+
180+
} else {
177181
// Method not found.
178182
return false;
179183
}
@@ -734,6 +738,31 @@ private void setExtendedBugReportMode(final CallbackContext callbackContext, Str
734738
}
735739
}
736740

741+
/**
742+
* Sets whether user steps tracking is visual, non visual or disabled.
743+
* User Steps tracking is enabled by default if it's available
744+
* in your current plan.
745+
*
746+
* @param callbackContext
747+
* Used when calling back into JavaScript
748+
* @param reproStepsMode
749+
* A string to set user steps tracking to be enabled,
750+
* non visual or disabled.
751+
*/
752+
private void setReproStepsMode(final CallbackContext callbackContext, String reproStepsMode) {
753+
try {
754+
if(reproStepsMode.equals("enabledWithNoScreenshots")) {
755+
Instabug.setReproStepsState(State.ENABLED_WITH_NO_SCREENSHOTS);
756+
} else if(reproStepsMode.equals("enabled")) {
757+
Instabug.setReproStepsState(State.ENABLED);
758+
} else if(reproStepsMode.equals("disabled")) {
759+
Instabug.setReproStepsState(State.DISABLED);
760+
}
761+
} catch (IllegalStateException e) {
762+
callbackContext.error(errorMsg);
763+
}
764+
}
765+
737766
/**
738767
* Adds intent extras for all options passed to activate().
739768
*/

src/ios/IBGPlugin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ - (void) setLocale:(CDVInvokedUrlCommand*)command
395395
}
396396

397397
/**
398-
* Sets whether user steps tracking is visual, non visula or disabled.
398+
* Sets whether user steps tracking is visual, non visual or disabled.
399399
*
400400
* @param {CDVInvokedUrlCommand*} command
401401
* The command sent from JavaScript
@@ -757,7 +757,7 @@ - (IBGUserStepsMode) parseReproStepsMode:(NSString*)mode
757757
return IBGUserStepsModeEnable;
758758
} else if ([mode isEqualToString:@"disabled"]) {
759759
return IBGUserStepsModeDisable;
760-
} else if ([mode isEqualToString:@"enabledWithNoScreenshot"]) {
760+
} else if ([mode isEqualToString:@"enabledWithNoScreenshots"]) {
761761
return IBGUserStepsModeEnabledWithNoScreenshots;
762762
} else return 0;
763763
}

src/ios/Instabug.framework/Headers/Instabug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.10
8+
Version: 7.10.1
99
*/
1010

1111
#import <Foundation/Foundation.h>
2 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

src/ios/Instabug.framework/_CodeSignature/CodeResources

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<dict>
77
<key>Headers/Instabug.h</key>
88
<data>
9-
EW0LawU2ocbTJXyXab6eGuYBqIg=
9+
FXGwngWRcYOFi0T4tL2KdxlGUjw=
1010
</data>
1111
<key>Info.plist</key>
1212
<data>
13-
uPr3dFdFtDxfIr/Z4Ak4dMZUtXU=
13+
j7YBrXxPdubzZ6bNCoQpUGSt9Ps=
1414
</data>
1515
<key>Modules/module.modulemap</key>
1616
<data>
@@ -23,11 +23,11 @@
2323
<dict>
2424
<key>hash</key>
2525
<data>
26-
EW0LawU2ocbTJXyXab6eGuYBqIg=
26+
FXGwngWRcYOFi0T4tL2KdxlGUjw=
2727
</data>
2828
<key>hash2</key>
2929
<data>
30-
1QgezJN+NvpRWcOOsFWXKUZJT723WvQT5vRR6J+lA/Y=
30+
q5gMkf8yDUe0ic4LGgKu6eHW6DceEAnkLcLrx6H5/TA=
3131
</data>
3232
</dict>
3333
<key>Modules/module.modulemap</key>

src/ios/InstabugCore.framework/Headers/IBGTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.10
8+
Version: 7.10.1
99
*/
1010

1111
#import <UIKit/UIKit.h>

src/ios/InstabugCore.framework/Headers/InstabugCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved.
77
8-
Version: 7.10
8+
Version: 7.10.1
99
*/
1010

1111
#import <Foundation/Foundation.h>

0 commit comments

Comments
 (0)