SmartCache 2.9.0 is supposed to work with Retrofit 2.9.0! To use it, change implementation in your Gradle file:
implementation 'com.github.fikisipi:SmartCache:2.9.0' # NOTE: owner/username of repo
# has been changed!
- A new demo app has been added.
- To check if response is preloaded, now there's
SmartCache.isResponseFromNetwork(response) - Each caching system must provide
clearCache()that you can use. - Argument
filterhas been added:SmartCallFactory.createBasic(this, filter). It can be used to supply(request) -> boolfilter, which returnstrueonly if the request should be cached.