mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
tests work on android, mostly on iOS
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user