Skip to content

Commit 9f2f195

Browse files
Update server url (#1658)
1 parent c799445 commit 9f2f195

File tree

7 files changed

+158
-126
lines changed

7 files changed

+158
-126
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class CodePush implements ReactPackage {
3939

4040
// Config properties.
4141
private String mDeploymentKey;
42-
private static String mServerUrl = "https://codepush.azurewebsites.net/";
42+
private static String mServerUrl = "https://codepush.appcenter.ms/";
4343

4444
private Context mContext;
4545
private final boolean mIsDebugMode;

docs/api-android.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Constructs the CodePush client runtime and represents the `ReactPackage` instanc
1818

1919
- __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.
2020

21-
- __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`.
21+
- __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`.
2222

2323
##### Builder
2424

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

4545
* __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`.
4646

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

4949
* __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.
5050

docs/setup-ios.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ In order to effectively make use of the `Staging` and `Production` deployments t
178178

179179
CodePush plugin makes HTTPS requests to the following domains:
180180

181-
- codepush.azurewebsites.net
181+
- codepush.appcenter.ms
182182
- codepush.blob.core.windows.net
183183
- codepushupdates.azureedge.net
184184

@@ -193,7 +193,7 @@ If you want to change the default HTTP security configuration for any of these d
193193
<dict>
194194
<key>NSExceptionDomains</key>
195195
<dict>
196-
<key>codepush.azurewebsites.net</key>
196+
<key>codepush.appcenter.ms</key>
197197
<dict><!-- read the ATS Apple Docs for available options --></dict>
198198
</dict>
199199
</dict>

ios/CodePush/CodePushConfig.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ - (instancetype)init
4646
}
4747

4848
if (!serverURL) {
49-
serverURL = @"https://codepush.azurewebsites.net/";
49+
serverURL = @"https://codepush.appcenter.ms/";
5050
}
5151

5252
_configDictionary = [NSMutableDictionary dictionary];

0 commit comments

Comments
 (0)