This relates to setting up split targeting rules around app versions (necessary for mobile iOS/Android apps).
Right now, split targeting rules only allow greater/less than operations on integers. We are able to get around this by converting the app semantic version (in format
MAJOR.MINOR.PATCH - https://semver.org) to an integer. We do this like so:
MAJOR*1,000,000 + MINOR*1,000 + PATCH*1 = APP_VERSION
e.g. an app version of
2*1,000,000 + 12*1,000 + 45*1 = 2012045
It would be great if there was some native support in the split.io targeting rules interface to treat client app versions in a more natural way.
Please sign in to leave a comment.