Skip to content

Commit 56bdcd7

Browse files
Rename setCrossPlatform to setCurrentPlatform
1 parent bbe4e19 commit 56bdcd7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public RNInstabugReactnativePackage(String androidApplicationToken, Application
5050
this.parseInvocationEvent(invocationEventValues);
5151

5252
setBaseUrlForDeprecationLogs();
53-
setCrossPlatform();
53+
setCurrentPlatform();
5454

5555
new Instabug.Builder(this.androidApplication, this.mAndroidApplicationToken)
5656
.setInvocationEvents(this.invocationEvents.toArray(new InstabugInvocationEvent[0]))
@@ -99,14 +99,14 @@ private void parseInvocationEvent(String[] invocationEventValues) {
9999
}
100100
}
101101

102-
private void setCrossPlatform() {
102+
private void setCurrentPlatform() {
103103
try {
104-
Method method = InstabugUtil.getMethod(Class.forName("com.instabug.library.Instabug"), "setCrossPlatform", int.class);
104+
Method method = InstabugUtil.getMethod(Class.forName("com.instabug.library.Instabug"), "setCurrentPlatform", int.class);
105105
if (method != null) {
106-
Log.i("IB-CP-Bridge", "invoking setCrossPlatform with platform: " + Platform.RN);
106+
Log.i("IB-CP-Bridge", "invoking setCurrentPlatform with platform: " + Platform.RN);
107107
method.invoke(null, Platform.RN);
108108
} else {
109-
Log.e("IB-CP-Bridge", "setCrossPlatform was not found by reflection");
109+
Log.e("IB-CP-Bridge", "setCurrentPlatform was not found by reflection");
110110
}
111111
} catch (Exception e) {
112112
e.printStackTrace();

0 commit comments

Comments
 (0)