mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-16 19:51:57 +08:00
server url pls
This commit is contained in:
@@ -73,7 +73,7 @@ public class CodePush implements ReactPackage {
|
||||
private String appVersion;
|
||||
private int buildVersion;
|
||||
private String deploymentKey;
|
||||
private final String serverUrl = "https://codepush.azurewebsites.net/";
|
||||
private String serverUrl = "https://codepush.azurewebsites.net/";
|
||||
|
||||
private Activity mainActivity;
|
||||
private Context applicationContext;
|
||||
@@ -111,6 +111,11 @@ public class CodePush implements ReactPackage {
|
||||
clearDebugCacheIfNeeded();
|
||||
}
|
||||
|
||||
public CodePush(String deploymentKey, Activity mainActivity, boolean isDebugMode, String serverUrl) {
|
||||
this(deploymentKey, mainActivity, isDebugMode);
|
||||
this.serverUrl = serverUrl;
|
||||
}
|
||||
|
||||
private void clearDebugCacheIfNeeded() {
|
||||
if (isDebugMode && isPendingUpdate(null)) {
|
||||
// This needs to be kept in sync with https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManager.java#L78
|
||||
|
||||
Reference in New Issue
Block a user