Skip to content

Commit

Permalink
Update server url (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergoncharov-zz authored Aug 19, 2019
1 parent c799445 commit 9f2f195
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class CodePush implements ReactPackage {

// Config properties.
private String mDeploymentKey;
private static String mServerUrl = "https://codepush.azurewebsites.net/";
private static String mServerUrl = "https://codepush.appcenter.ms/";

private Context mContext;
private final boolean mIsDebugMode;
Expand Down
4 changes: 2 additions & 2 deletions docs/api-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Constructs the CodePush client runtime and represents the `ReactPackage` instanc

- __CodePush(String deploymentKey, Context context, boolean isDebugMode, Integer publicKeyResourceDescriptor)__ - Equivalent to the previous constructor, but allows you to specify the public key resource descriptor needed to read public key content. Please refer to [Code Signing](setup-android.md#code-signing) section for more details about Code Signing Feature.

- __CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl)__ Constructor allows you to specify CodePush Server Url. The Default value: `"https://codepush.azurewebsites.net/"` is overridden by value specfied in `serverUrl`.
- __CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl)__ Constructor allows you to specify CodePush Server Url. The Default value: `"https://codepush.appcenter.ms/"` is overridden by value specfied in `serverUrl`.

##### Builder

Expand All @@ -44,7 +44,7 @@ As an alternative to constructors *you can also use `CodePushBuilder`* to setup

* __public CodePushBuilder setIsDebugMode(boolean isDebugMode)__ - allows you to specify whether you want the CodePush runtime to be in debug mode or not. Default value: `false`.

* __public CodePushBuilder setServerUrl(String serverUrl)__ - allows you to specify CodePush Server Url. Default value: `"https://codepush.azurewebsites.net/"`.
* __public CodePushBuilder setServerUrl(String serverUrl)__ - allows you to specify CodePush Server Url. Default value: `"https://codepush.appcenter.ms/"`.

* __public CodePushBuilder setPublicKeyResourceDescriptor(int publicKeyResourceDescriptor)__ - allows you to specify Public Key resource descriptor which will be used for reading Public Key content for `strings.xml` file. Please refer to [Code Signing](#code-signing) section for more detailed information about purpose of this parameter.

Expand Down
4 changes: 2 additions & 2 deletions docs/setup-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ In order to effectively make use of the `Staging` and `Production` deployments t

CodePush plugin makes HTTPS requests to the following domains:

- codepush.azurewebsites.net
- codepush.appcenter.ms
- codepush.blob.core.windows.net
- codepushupdates.azureedge.net

Expand All @@ -193,7 +193,7 @@ If you want to change the default HTTP security configuration for any of these d
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>codepush.azurewebsites.net</key>
<key>codepush.appcenter.ms</key>
<dict><!-- read the ATS Apple Docs for available options --></dict>
</dict>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion ios/CodePush/CodePushConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ - (instancetype)init
}

if (!serverURL) {
serverURL = @"https://codepush.azurewebsites.net/";
serverURL = @"https://codepush.appcenter.ms/";
}

_configDictionary = [NSMutableDictionary dictionary];
Expand Down
Loading

0 comments on commit 9f2f195

Please sign in to comment.