Remove "More than one CodePush instance" message

This commit is contained in:
Geoffrey Goh
2016-05-19 15:05:55 -07:00
parent 9ccc651a77
commit 9026dbd5cb

View File

@@ -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<>();
}
}
}