Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 16b2803

Browse files
committed
Merge pull request #341 from Microsoft/remove-multiple-instance-message
Remove "More than one CodePush instance" message
2 parents ca54741 + 9026dbd commit 16b2803

File tree

1 file changed

+1
-5
lines changed
  • android/app/src/main/java/com/microsoft/codepush/react

1 file changed

+1
-5
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ public CodePush(String deploymentKey, Activity mainActivity, boolean isDebugMode
104104
throw new CodePushUnknownException("Unable to get package info for " + applicationContext.getPackageName(), e);
105105
}
106106

107-
if (currentInstance != null) {
108-
CodePushUtils.log("More than one CodePush instance has been initialized. Please use the instance method codePush.getBundleUrlInternal() to get the correct bundleURL for a particular instance.");
109-
}
110-
111107
currentInstance = this;
112108

113109
clearDebugCacheIfNeeded();
@@ -780,4 +776,4 @@ public List<Class<? extends JavaScriptModule>> createJSModules() {
780776
public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {
781777
return new ArrayList<>();
782778
}
783-
}
779+
}

0 commit comments

Comments
 (0)