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

Update intl dependency #8

Closed
arnab opened this issue Jan 20, 2025 · 4 comments
Closed

Update intl dependency #8

arnab opened this issue Jan 20, 2025 · 4 comments

Comments

@arnab
Copy link

arnab commented Jan 20, 2025

Hi @amugofjava - thanks for both podcast_search and rss_dart! We are using these in the Metacast app.

Trying to update intl and I see:

Because podcast_search >=0.7.4 depends on rss_dart ^1.0.12 which depends on intl ^0.19.0, podcast_search >=0.7.4 requires intl ^0.19.0.

Could you please update the dependencies?

@amugofjava
Copy link
Collaborator

Hi @arnab,

Which version of Flutter are you currently using to build Metacast?

I am still on 0.19.0 of intl because it is pinned to that version in Flutter (currently 3.27.2). If I attempt to upgrade to 0.20.1 I get:

Note: intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK.

Which can cause issues with applications that depend upon podcast_search which also use flutter_localizations from the SDK. Do you use flutter_localizations within Metacast?

@arnab
Copy link
Author

arnab commented Jan 21, 2025

Interesting. Is it here: https://github.com/flutter/flutter/blob/f5a13cacb0529d49dae798872d7ca30c8a58fe41/packages/flutter/pubspec.yaml#L42

I am indeed seeing this while trying to move to 3.27.2

@amugofjava
Copy link
Collaborator

Yes that's it. There is more information about that here:

https://github.com/dart-lang/sdk/blob/main/docs/Flutter-Pinned-Packages.md

If you need to move to a later version of intl you could add an override to your pubspec.yaml:

dependency_overrides:
  intl: ^0.20.1

@arnab
Copy link
Author

arnab commented Jan 23, 2025

Ok I'm also going to default to whatever Flutter SDK has the version pinned at.

Resolving this!

@arnab arnab closed this as completed Jan 23, 2025
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

2 participants