Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving version fail #121

Open
youtraders opened this issue Sep 8, 2022 · 6 comments
Open

Solving version fail #121

youtraders opened this issue Sep 8, 2022 · 6 comments

Comments

@youtraders
Copy link

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
Copy link

TianyongWang commented Sep 8, 2022 via email

@XternalSoft
Copy link

Hello @youtraders ,

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

@vortechron
Copy link

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

@TianyongWang
Copy link

TianyongWang commented Nov 9, 2022 via email

@vtisnado
Copy link

vtisnado commented May 3, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants