- Allow purging of old buffered logs in the storage
- We have made a major upgrade, because the changes in v4.1.7 are so disruptive.
- Revert publishing dsl
- Remove Gson dependency and PureeLog interface
- Fix empty jar artifact publishing
- Fix classes.jar path to packaged-classes
- Integrate PureeSQLiteStorage with androidx.sqlite
- Migrate demo to AndroidX
- Retry or reset when storage is locked, and records is empty
- Fix sending logs multiple times in PureeOutput#flushSync()
- Avoid sending logs multiple times in Puree.flush()
- Output errors during execution of BufferedOutput
- Add
Puree#truncateBufferedLogs(int)
- Remove deprecated classes
-
Use
ScheduledExecutorService
to run tasks in backkground, instead ofAsyncTask
. The defaultAsycTask
executor is executed in serial soPuree
might affect execution of other application tasks if it usedAsyncTask
. -
https://github.com/cookpad/puree-android/compare/v3.3.0...v4.0.0
-
Introduce
PureeLogger
, removingPureeLogRegistry
to mockPuree
easily- See PureeTest.java to see how to mock
Puree
static methods.
- See PureeTest.java to see how to mock
-
https://github.com/cookpad/puree-android/compare/v3.2.0...v3.3.0
-
Introduce
PureeLogRegistry
and removePure.serilaizeLog()
andPuree.getRegisteredOutputPlugins()
-
https://github.com/cookpad/puree-android/compare/v3.1.0...v3.2.0
-
Add
Puree.serializeLog()
andPuree.getRegisteredOutputPlugins()
to test the use of Puree -
Optimize internals
-
https://github.com/cookpad/puree-android/compare/v3.0.0...v3.1.0
Puree v3 is not compatible with v2, which uses Gson for the fundamental JSON framework, instead of org.json.JSONObject used before v3.
Gson
has JsonObject
class which is functionally compatible with org.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: #32
Puree v2 is not compatible with v1; you can now connect a log classes with output plugins.
The main development branch is here: #22
- The first tagged version