dio-http-cache
dio-http-cache copied to clipboard
Solving version fail
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.)
来信已收到
Hello @youtraders ,
Issue resolved for me by this fork https://pub.dev/packages/dio_http_cache_lts
thanks @XternalSoft thats solve my issue, but yet, need this repo to bump their dependecies too
来信已收到
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.
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