Skip to content

Commit

Permalink
fix: Docs - Bring the code examples in-line with the latest SDK (#3456)
Browse files Browse the repository at this point in the history
  • Loading branch information
gazreese authored Feb 23, 2024
1 parent 3bc1bd8 commit 1270b18
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 1270b18

Please sign in to comment.