Closed jaredsburrows closed 1 year ago
@jaredsburrows
I was able to add intl
package in firebase_ui_auth
plugin example.
Can you provide the error log you are getting ?
Here is the issue I am seeing:
❯ flutter upgrade
flutter pub get
flutter pub upgrade
Flutter is already up to date on channel stable
Flutter 3.10.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 682aa387cf (8 days ago) • 2023-06-05 18:04:56 -0500
Engine • revision 2a3401c9bb
Tools • Dart 3.0.3 • DevTools 2.23.1
Resolving dependencies...
Because every version of firebase_ui_auth depends on flutter_localizations from sdk which depends on intl 0.18.0, every
version of firebase_ui_auth requires intl 0.18.0.
So, because your-project depends on both firebase_ui_auth ^1.4.1 and intl ^0.18.1, version solving failed.
Resolving dependencies...
Because every version of firebase_ui_auth depends on flutter_localizations from sdk which depends on intl 0.18.0, every
version of firebase_ui_auth requires intl 0.18.0.
So, because your-project depends on both firebase_ui_auth ^1.4.1 and intl ^0.18.1, version solving failed.
pubspec.yaml
dependencies:
# Official
flutter:
sdk: flutter
cupertino_icons: ^1.0.2 # https://pub.dev/packages/cupertino_icons
firebase_core: ^2.13.0 # https://pub.dev/packages/firebase_core
firebase_analytics: ^10.4.0 # https://pub.dev/packages/firebase_analytics
firebase_auth: ^4.6.1 # https://pub.dev/packages/firebase_auth
firebase_ui_auth: ^1.4.1 # https://pub.dev/packages/firebase_ui_auth
firebase_ui_oauth: ^1.1.0 # https://pub.dev/packages/firebase_ui_oauth
firebase_ui_oauth_google: ^1.2.1 # https://pub.dev/packages/firebase_ui_oauth_google
intl: ^0.18.1 # https://pub.dev/packages/intl, can't upgrade to 0.18.1 because of firebase_ui_auth
Please check https://github.com/firebase/flutterfire/issues/10199#issuecomment-1543482398 and see if it helps in your case.
Also, https://github.com/firebase/flutterfire/issues/10199#issuecomment-1544138565
Using dependency_overrides
sort of hides the problem. Is firebase_auth
forcing the package intl
to be 0.18.0
?
I am already using a newer version of firebase_auth
, I am using firebase_auth: ^4.6.1
not firebase_auth: ^4.6.0
.
Thanks for the feedback. I tried with the said dependencies in plugin's example running on latest master but haven't been able to see the reported behavior. Although I do see below log upon running flutter pub get
:
! intl 0.18.0 (overridden in ./pubspec_overrides.yaml) (0.18.1 available)
Overriding does work but without doing this you cannot upgrade it. Can't we prevent a reliance on 0.18.0 or upgrade it in this project?
Firebase UI no longer depends on intl package.
Can't upgrade to 0.18.1 because of
firebase_ui_auth