Skip to content

2.9.0

Latest
Compare
Choose a tag to compare
@fikisipi fikisipi released this 26 Apr 12:22
· 15 commits to master since this release

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 filter has been added: SmartCallFactory.createBasic(this, filter). It can be used to supply (request) -> bool filter, which returns true only if the request should be cached.