Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Docs - Bring the code examples in-line with the latest SDK #3456

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docs/clients/client-side/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In your project path `app/build.gradle` add a new dependence

```groovy
//flagsmith
implementation 'com.github.Flagsmith:flagsmith-kotlin-android-client:1.0.1'
implementation 'com.github.Flagsmith:flagsmith-kotlin-android-client:1.5.0'
```

You should be able to find the latest version in the
Expand Down Expand Up @@ -127,11 +127,11 @@ flagsmith.getTraits(identity = "[email protected]") { result ->
result.fold(
onSuccess = { traits ->
traits.forEach {
Log.i("Flagsmith", "Trait - ${it.key} : ${it.value}")
Log.i("Flagsmith", "Trait - ${it.key} : ${it.traitValue}")
}
},
onFailure = { err ->
Log.e("Flagsmith", "Error setting trait", err)
Log.e("Flagsmith", "Error getting traits", err)
})
}
```
Expand Down