puree-android v3.0.0 Release Notes
Release Date: 2015-06-16 // almost 9 years ago-
Puree v3 is not compatible with v2, which uses Gson for the fundamental JSON framework, instead of org.json.JSONObject used before v3.
Gson
hasJsonObject
class which is functionally compatible withorg.json.JSONObject
so migration is really easy.Here is the diff between v2 and v3 for the SamplingFilter example:
@Override - public JSONObject apply(JSONObject jsonLog) throws JSONException { + public JsonObject apply(JsonObject jsonLog) { return (samplingRate < Math.random() ? null : jsonLog); } }
The main development branch is here: https://github.com/cookpad/puree-android/pull/32