Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 3069ba3

Browse files
krunalsshahalexandergoncharov-zz
authored andcommitted
[Android]add serverUrl documentation (#1338)
1 parent ba151ef commit 3069ba3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/api-android.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ 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`.
22+
2123
##### Builder
2224

2325
As an alternative to constructors *you can also use `CodePushBuilder`* to setup a CodePush instance configured with *only parameters you want*.
@@ -30,6 +32,7 @@ As an alternative to constructors *you can also use `CodePushBuilder`* to setup
3032
new CodePushBuilder("deployment-key-here",getApplicationContext())
3133
.setIsDebugMode(BuildConfig.DEBUG)
3234
.setPublicKeyResourceDescriptor(R.string.publicKey)
35+
.setServerUrl("https://yourcodepush.server.com")
3336
.build() //return configured CodePush instance
3437
);
3538
}

0 commit comments

Comments
 (0)