mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-13 01:18:56 +08:00
Remove "More than one CodePush instance" message
This commit is contained in:
@@ -104,10 +104,6 @@ public class CodePush implements ReactPackage {
|
||||
throw new CodePushUnknownException("Unable to get package info for " + applicationContext.getPackageName(), e);
|
||||
}
|
||||
|
||||
if (currentInstance != null) {
|
||||
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.");
|
||||
}
|
||||
|
||||
currentInstance = this;
|
||||
|
||||
clearDebugCacheIfNeeded();
|
||||
@@ -780,4 +776,4 @@ public class CodePush implements ReactPackage {
|
||||
public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user