Skip to content

Instantly share code, notes, and snippets.

@sohamtriveous
Last active January 24, 2016 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sohamtriveous/938d85011cdd5a914f6e to your computer and use it in GitHub Desktop.
Save sohamtriveous/938d85011cdd5a914f6e to your computer and use it in GitHub Desktop.
changed the 'state' key/value to support non-boolean values
{"name": "jsappbasics", "features":
[
{"name":"video", "state":"disabled", "default": "enabled", "rules":[
{"state": "disabled", "value":
{"apilevel_min": 21, "apilevel_max": 23, "appversion_min": 11, "appversion_max": 13, "date_min": 1452766668000, "date_max": 1455566668000, "buildtype":"debug", "device":[{"manufacturer":"xiaomi","model":"mi3"}, {"manufacturer":"samsung", "model":"s4"}]}
},
{"state": "disabled", "value": {"appversion_max": 13}}
]},
{"name":"crash_reporting", "rules":[
{"state": "disabled", "value":
{"appversion": 11, "buildtype": "false"}
}
]
},
{"name":"mixpanel","default": "enabled", "rules":[
{"state": "disabled", "value":
{"device":[{"model":"Google Nexus 5 - 5.1.0 - API 22 - 1080x1920"}, {"manufacturer":"samsung", "model":"s4"}]}
}
]}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment