From 1270b18a2340962cba46eb3047340a3f74930267 Mon Sep 17 00:00:00 2001 From: Gareth Reese <8297652+gazreese@users.noreply.github.com> Date: Fri, 23 Feb 2024 15:19:48 +0000 Subject: [PATCH] fix: Docs - Bring the code examples in-line with the latest SDK (#3456) --- docs/docs/clients/client-side/android.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/clients/client-side/android.md b/docs/docs/clients/client-side/android.md index ecac84186692..274a6b21794b 100644 --- a/docs/docs/clients/client-side/android.md +++ b/docs/docs/clients/client-side/android.md @@ -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 @@ -127,11 +127,11 @@ flagsmith.getTraits(identity = "test@test.com") { 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) }) } ```