From 9026dbd5cb3c22b72c876d0529e6d6aefd80e683 Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Thu, 19 May 2016 15:05:55 -0700 Subject: [PATCH] Remove "More than one CodePush instance" message --- .../main/java/com/microsoft/codepush/react/CodePush.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java index 7bbd414..2c68754 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java @@ -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 createViewManagers(ReactApplicationContext reactApplicationContext) { return new ArrayList<>(); } -} \ No newline at end of file +}