fresh-guitar-29838
03/19/2025, 11:19 PMforcedFeatures broke in the latest version of the kotlin SDK.
forcedFeatures recently changed from Map<String, Any> to Map<String, GBValue>. The problem is that GBFeatureEvaluator wasn't updated, and it's still using Any here. That means than when actually evaluating a forced feature, it's expecting a JsonElement instead of a GBValue over here. Instead of returning the forced value, it instead returns GBValue.Unknown.
Further, there is another bug where GBValue.Unknown is parsed as isOn=true, instead of false. That is happening over here. The default should be false, not true, so this logic is incorrect.
You can see where I printed out the `GBFeatureResult`:
GBFeatureResult(gbValue=Unknown, on=true, off=false, source=override, experiment=null, experimentResult=null)
Thank you!ancient-car-96302
03/20/2025, 8:16 AMancient-car-96302
03/20/2025, 8:20 AMfresh-guitar-29838
03/20/2025, 5:02 PMbrave-controller-43565
05/22/2025, 10:34 AMGrowthBookSDK called forceFeatures still with type Map<String, GBValue> and never is gonna be