hurshi / dio-http-cache

http cache lib for Flutter dio like RxCache
Apache License 2.0
274 stars 223 forks source link

Upgrade to Support Flutter 2.0 #82

Open SmarterVision opened 3 years ago

SmarterVision commented 3 years ago

The package dependencies do not support the current stable version of Flutter 2.0.x

pratikbaid3 commented 3 years ago

Yes please

ghenry commented 3 years ago

Here too

haydgately commented 3 years ago

Yes please, same here!

slavap commented 3 years ago

That's updated pubspec.yaml The only change in code needed is replacing MD5 to Hash in CacheManager

name: dio_http_cache
description: http cache lib for Flutter dio like RxCache.It use sqflite as disk cache,and google/quiver-dart/LRU strategy as memory cache.
version: 0.2.11
authors:
  - Hurshi <ihsruh@gmail.com>
homepage: https://github.com/hurshi/dio-http-cache

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  quiver: ^3.0.0
  json_serializable: ^4.0.2
  json_annotation: ^4.0.0
  dio: ^4.0.0-beta7
  sqflite: ^2.0.0+2
  path: ^1.8.0
  crypto: ^3.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  build_runner: ^1.11.5

flutter:
  module:
    androidX: true

@hurshi Please fix dependencies, it is quick and painless task.

deadsoul44 commented 3 years ago

Any update? Thank you.

erickok commented 3 years ago

See #84 for a PR.

muhammadsaddamnur commented 3 years ago

up

deadsoul44 commented 3 years ago

https://pub.dev/packages/dio_cache_interceptor