Skip to content

Commit

Permalink
Update kotlin.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohdan-Kim committed Jul 3, 2024
1 parent a1cd1a3 commit 4f024be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/lib/kotlin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ repositories {
}
dependencies {
implementation 'io.growthbook.sdk:GrowthBook:1.1.59'
implementation 'io.growthbook.sdk:DefaultNetworkDispatcher:1.0.0'
implementation 'io.growthbook.sdk:GrowthBook:1.1.60'
implementation 'io.growthbook.sdk:NetworkDispatcherKtor:1.0.2'
}
```
`DefaultNetworkDispatcher` artifact provides `NetworkDispatcher` implementation based on `ktor` network client. If you are using other network client for example `OkHttp` and don't want to have any other network client in your application, you can provide your own implementation of `NetworkDispatcher` for example based on `OkHttp` client. You will not need to include `DefaultNetworkDispatcher` artifact in this case.
`NetworkDispatcherKtor` artifact provides `NetworkDispatcher` implementation based on `ktor` network client. If you want to use implementation based on `OkHttp` network client you can use `NetworkDispatcherOkHttp` artifact.

## Quick Usage

Expand All @@ -46,7 +46,7 @@ val gb = GBSDKBuilder(
print("Experiment Id: " + gbExperiment.key)
print("Variation Id: " + gbExperimentResult.variationId)
},
networkDispatcher = DefaultGBNetworkDispatcher(),
networkDispatcher = GBNetworkDispatcherKtor(),
encryptionKey = "insert_your_encription_key_if_you_are_using_encryption",
).initialize()
```
Expand Down

0 comments on commit 4f024be

Please sign in to comment.