hurshi / dio-http-cache

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

Solving version fail #121

Open youtraders opened 2 years ago

youtraders commented 2 years ago

Hi, i receive this error:

Because dio_http_cache >=0.3.0 depends on json_serializable ^4.1.4 which depends on json_annotation >=4.0.1 <4.2.0, dio_http_cache >=0.3.0 requires json_annotation >=4.0.1 <4.2.0. And because purchases_flutter 4.2.1 depends on json_annotation ^4.6.0 and no versions of purchases_flutter match >4.2.1 <5.0.0, dio_http_cache >=0.3.0 is incompatible with purchases_flutter ^4.2.1. So, because myapp depends on both purchases_flutter ^4.2.1 and dio_http_cache ^0.3.0, version solving failed. pub get failed (1; So, because myapp depends on both purchases_flutter ^4.2.1 and dio_http_cache ^0.3.0, version solving failed.)

TianyongWang commented 2 years ago

来信已收到

XternalSoft commented 2 years ago

Hello @youtraders ,

Issue resolved for me by this fork https://pub.dev/packages/dio_http_cache_lts

vortechron commented 1 year ago

thanks @XternalSoft thats solve my issue, but yet, need this repo to bump their dependecies too

TianyongWang commented 1 year ago

来信已收到

vtisnado commented 1 year ago

Hello @youtraders ,

Issue resolved for me by this fork https://pub.dev/packages/dio_http_cache_lts

Hi @XternalSoft just saw this thread. I checked the package dio_http_cache_lts and it has more than 8 months without updates so I wanted to know if you have plans to keep maintaining the project.

XternalSoft commented 1 year ago

Hello,

I decided to upgrade Dio to v5 and drop this package. And to manage the caching I use the package dio_cache_interceptor (https://github.com/llfbandit/dio_cache_interceptor) and I manage the right headers via my API (each endpoint specifies or not the caching duration in the application). It's a much more convenient method because I don't need to make a new build if I want to change the cache duration