Skip to content

Commit 30c3722

Browse files
SalmaAliSalmaAli
authored andcommitted
📝 rename all deprecated methods in android to the new apis
1 parent 1f76c2f commit 30c3722

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ public void disable() {
707707
@ReactMethod
708708
public void showFeatureRequests() {
709709
try {
710-
FeatureRequests.showFeatureRequests();
710+
FeatureRequests.show();
711711
} catch (Exception e) {
712712
e.printStackTrace();
713713
}
@@ -912,9 +912,9 @@ public void reportJsException(ReadableArray stack, String message, String errorI
912912
Throwable throwable = new Throwable(message);
913913
throwable.setStackTrace(stackTraceElements);
914914
if (errorIdentifier != null)
915-
mInstabug.reportException(throwable);
915+
CrashReporting.reportException(throwable);
916916
else
917-
mInstabug.reportException(throwable, errorIdentifier);
917+
CrashReporting.reportException(throwable, errorIdentifier);
918918

919919
} catch (Exception e) {
920920
e.printStackTrace();
@@ -1607,7 +1607,7 @@ public void getAvailableSurveys(Callback availableSurveysCallback) {
16071607
@ReactMethod
16081608
public void setAutoShowingSurveysEnabled(boolean autoShowingSurveysEnabled) {
16091609
try {
1610-
Instabug.setSurveysAutoShowing(autoShowingSurveysEnabled);
1610+
Surveys.setAutoShowingEnabled(autoShowingSurveysEnabled);
16111611
} catch (Exception e) {
16121612
e.printStackTrace();
16131613
}

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ module.exports = {
4242
* @param {invocationMode} invocationMode Specifies which mode the
4343
* SDK is going to start with.
4444
*/
45-
invokeWithInvocationMode: function (invocationMode) {
46-
Instabug.invokeWithInvocationMode(invocationMode);
45+
invokeWithInvocationMode: function (invocationMode, invocationOptions) {
46+
Instabug.invokeWithInvocationMode(invocationMode, invocationOptions);
4747
},
4848

4949
/**

0 commit comments

Comments
 (0)