growthbook / growthbook-sdk-java

The Java SDK for GrowthBook (JVM, Android)
https://docs.growthbook.io/lib/java
MIT License
8 stars 10 forks source link

ConditionEvaluator, GrowthBookUtils #7

Closed tinahollygb closed 1 year ago

tinahollygb commented 1 year ago

These change add the new ConditionEvaluator class and all tests for evaluateCondition which takes a string representation of the JSON and condition query.

A lot of helper methods, enums, etc. were added to support this as well.

All tests pass. I left some commented-out code to help with test debugging.

A bunch more GrowthBookUtils helper methods for variations, bucket ranges, and BucketRange class improvements as well to work better with variations.