tests work on android, mostly on iOS

This commit is contained in:
scottbommarito
2016-05-25 14:26:35 -07:00
parent 5260dc1550
commit e87f1977d0
7 changed files with 1131 additions and 976 deletions

View File

@@ -114,6 +114,7 @@ public class CodePush implements ReactPackage {
initializeUpdateAfterRestart();
}
// USED FOR TESTING SO THAT IT CAN CONNECT TO DEBUG SERVER
public CodePush(String deploymentKey, Activity mainActivity, boolean isDebugMode, String serverUrl) {
this(deploymentKey, mainActivity, isDebugMode);
this.serverUrl = serverUrl;
@@ -515,6 +516,10 @@ public class CodePush implements ReactPackage {
e.printStackTrace();
saveFailedUpdate(updatePackage);
promise.reject(e);
} catch (CodePushMalformedDataException e) {
e.printStackTrace();
saveFailedUpdate(updatePackage);
promise.reject(e);
}
return null;