FirebaseExtended / flutterfire_desktop

An early-stage, experimental pure-Dart implementation of Firebase SDKs.
Other
406 stars 58 forks source link

🐛 [firebase_auth_desktop] Dependency issues #130

Open zgast opened 1 year ago

zgast commented 1 year ago

Bug report

Describe the bug Depedency Issues after upgrading Flutter Stable 3.10

    Because firebase_auth >=3.1.5 <3.2.0 depends on firebase_auth_web ^3.1.4 and firebase_auth >=3.1.4 <3.1.5 depends on firebase_auth_web ^3.1.3, firebase_auth >=3.1.4 <3.2.0 requires firebase_auth_web ^3.1.3.
(1) So, because firebase_auth_desktop <0.1.1-dev.1 depends on firebase_auth ^3.1.4 and firebase_auth_desktop >=0.1.1-dev.1 <0.1.1-dev.4 depends on firebase_auth ^3.2.0, firebase_auth_desktop <0.1.1-dev.4 requires firebase_auth_web ^3.1.3 or firebase_auth ^3.2.0.
Patrick386 commented 1 year ago
Because firebase_auth_desktop >=1.0.2 depends on firebase_core ^1.20.0 and aaaa depends on firebase_core ^2.13.1, firebase_auth_desktop >=1.0.2 is forbidden.
So, because aaaa depends on firebase_auth_desktop ^1.0.2, version solving failed.

firebase_core: ^2.13.1 firebase_storage: ^11.2.2 firebase_auth: ^4.6.2 firebase_core_desktop: ^1.0.2 firebase_auth_desktop: ^1.0.2 firebase_ui_auth: ^1.3.0 firebase_ui_oauth_google: ^1.1.5 firebase_ui_firestore: ^1.5.2

medjai commented 1 year ago

Any movement on this or known workarounds?

DoublEffe commented 1 year ago

I have the same issue as @Patrick386 . It's a mystery to me why there is no support for windows officially.

laurencetroyv commented 1 year ago

same issue as of 09/20/2023

davidmartos96 commented 1 year ago

This PR would fix it: https://github.com/FirebaseExtended/flutterfire_desktop/pull/131

DoublEffe commented 1 year ago

I was reading about this pr, do u know when it will be merged?

davidmartos96 commented 1 year ago

I was reading about this pr, do u know when it will be merged?

Unfortunately I do not, I'm just the author of the PR.

TMDR commented 1 year ago

As this issue hampered the development of my apps, I had to find a solution (although pretty stupid and temporary), I admit its not a replacement but It gets things to work. I was stuck on this issue for 3 days straight, but I did eventually get it working, but I had to edit the libraries, so you're going to have to edit them anywhere you want to build (thus it being a temporary fix) Here's the fix: -first, I used this combination of dependencies: image -second, I added this dependency override: image -If you build now, you'll be greeted by a familiar error: image -This is where you have to edit the native libs, as suggested in here I had to edit FallThroughError() with throw UnsupportedError('Unknown LoadBundleTaskState value: $state.'); (any valid statement should work, since FallThroughError simply doesnt exist and has to be changed) -build again, and it should work :)

I repeat, PLEASE dont stop asking for a legitimate fix, this method is extremely stupid and should not be relied on, counting on this library to be fixed in the future.

JaredEzz commented 1 year ago

This PR would fix it: #131

@Ehesp please prioritize merging this PR

sunilguptasg commented 11 months ago

I am on 3.13.6 and after 20+ hours had to do this to get things working - may help you: (My app builds for Web, IOS, Windows, Android, MacOS)

firebase_auth: firebase_core:
firebase_core_web: 2.8.1 cloud_functions:

firebase_functions_desktop: ^0.2.0+2 firebase_core_desktop: firebase_crashlytics: firebase_database: firebase_messaging: firebase_performance:

dependency_overrides: intl: any << you may not need this win32: any << you may not need this http: any << you may not need this firebase_core_platform_interface: ^5.0.0 firebase_core: 2.18.0

also changed file firebase_functions_desktop.dart line 74: ) : super(functions, origin, name, options, null); << added null line 98: name ?? '', << added ?? ''