diff --git a/samples/android/app/build.gradle b/samples/android/app/build.gradle index ec6348c..971481d 100644 --- a/samples/android/app/build.gradle +++ b/samples/android/app/build.gradle @@ -57,7 +57,7 @@ dependencies { implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' //implementation 'io.getunleash:unleash-android-proxy-sdk:0.5.0' - implementation "io.getunleash:unleash-android:0.1.2-beta.1" + implementation "io.getunleash:unleash-android:0.1.2-beta.3" testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' diff --git a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt index 08ce47f..fee8ca7 100644 --- a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt +++ b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt @@ -42,7 +42,7 @@ class FirstFragment : Fragment() { if (unleashClient.isEnabled("android-sdk-first-fragment-demo")) { val bundle = Bundle() val variant = unleashClient.getVariant("android-sdk-first-fragment-demo") - bundle.putString("argName", variant.payload?.value ?: variant.name) + bundle.putString("argName", variant.payload?.getValueAsString() ?: variant.name) findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment, bundle) } }