Skip to content

Commit

Permalink
Merge pull request #1477 from Unleash/docs/update-android-docs
Browse files Browse the repository at this point in the history
docs: change android docs to use `clientKey`, not `clientSecret`
  • Loading branch information
thomasheartman committed Apr 6, 2022
2 parents f4bfb86 + 41485ec commit a96cb0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/sdks/android-proxy.md
Expand Up @@ -58,7 +58,7 @@ val myAppContext = UnleashContext.newBuilder()

To create a client, use the `UnleashConfig.newBuilder` method. When building a configuration, you'll need to provide it with:
- `proxyUrl`: the URL your proxy is available at
- `clientSecret`: the [proxy secret](/sdks/unleash-proxy#configuration-variables) you wish to use
- `clientKey`: the [proxy client key](/sdks/unleash-proxy#configuration-variables) you wish to use (this method was known as `clientSecret` prior to version 0.4.0)
- `pollMode`: how you want to load the toggle status

As of v0.1 the SDK supports an automatic polling with an adjustable poll period or loading the state from disk. Most users will probably want to use the polling client, but it's nice to know that you can instantiate your client without actually needing Internet if you choose loading from File
Expand All @@ -73,7 +73,7 @@ import io.getunleash.polling.PollingModes

val unleashConfig = UnleashConfig.newBuilder()
.proxyUrl("URL to your proxy installation")
.clientSecret("yourProxySecret")
.clientKey("yourProxySecret")
.pollMode(PollingModes.autoPoll(Duration.ofSeconds(60)) {
// This lambda will be called every time polling the server updates the toggle state
featuresUpdated()
Expand All @@ -94,7 +94,7 @@ val pollingMode = PollingModes.fileMode(toggles)

val unleashConfig = UnleashConfig.newBuilder()
.proxyUrl("Doesn't matter since we don't use it when sent a file")
.clientSecret("Doesn't matter since we don't use it when sent a file")
.clientKey("Doesn't matter since we don't use it when sent a file")
.pollMode(pollingMode)
.build()
```
Expand Down

0 comments on commit a96cb0c

Please sign in to comment.