Skip to content

Commit 373f8dd

Browse files
ahmedAlaaInstabugHeshamMegid
authored andcommitted
fix hybrid mode code push version init (#1108)
1 parent 94cdc17 commit 373f8dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ public void run() {
144144
.setLogLevel(parsedLogLevel);
145145

146146
if(codePushVersion != null) {
147-
builder.setCodePushVersion(codePushVersion);
147+
if(Instabug.isBuilt()) {
148+
Instabug.setCodePushVersion(codePushVersion);
149+
} else {
150+
builder.setCodePushVersion(codePushVersion);
151+
}
148152
}
149153
builder.build();
150154
}

0 commit comments

Comments
 (0)