From 6f61291b45d87421ab5021b84e82f7354d5e2449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 15 Oct 2024 10:46:24 +0200 Subject: [PATCH] fix: variant enabled should be false by default This complies with other SDKs. For reference we use NodeJS: ```typescript const defaultVariant: IVariant = { name: 'disabled', enabled: false, feature_enabled: false, }; ``` --- .../src/main/java/io/getunleash/android/data/Variant.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unleashandroidsdk/src/main/java/io/getunleash/android/data/Variant.kt b/unleashandroidsdk/src/main/java/io/getunleash/android/data/Variant.kt index 5ebba6e..0ea95ba 100644 --- a/unleashandroidsdk/src/main/java/io/getunleash/android/data/Variant.kt +++ b/unleashandroidsdk/src/main/java/io/getunleash/android/data/Variant.kt @@ -4,7 +4,7 @@ import com.squareup.moshi.Json data class Variant( val name: String, - val enabled: Boolean = true, + val enabled: Boolean = false, @Json(name = "feature_enabled") val featureEnabled: Boolean = false, val payload: Payload? = null -) \ No newline at end of file +)