dio-http-cache icon indicating copy to clipboard operation
dio-http-cache copied to clipboard

Solving version fail

Open youtraders opened this issue 2 years ago • 6 comments

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.)

youtraders avatar Sep 08 '22 04:09 youtraders

来信已收到

TianyongWang avatar Sep 08 '22 04:09 TianyongWang

Hello @youtraders ,

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

XternalSoft avatar Sep 17 '22 16:09 XternalSoft

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

vortechron avatar Nov 09 '22 11:11 vortechron

来信已收到

TianyongWang avatar Nov 09 '22 11:11 TianyongWang

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.

vtisnado avatar May 03 '23 16:05 vtisnado

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

XternalSoft avatar May 10 '23 18:05 XternalSoft