juliansteenbakker / flutter_secure_storage

A Flutter plugin to store data in secure storage
https://pub.dartlang.org/packages/flutter_secure_storage
BSD 3-Clause "New" or "Revised" License
1.13k stars 389 forks source link

requires js ^0.6.3 depends on js ^0.7.1 #728

Closed Ali-Solak closed 5 months ago

Ali-Solak commented 5 months ago

Any plans to update the js deps with the web package. It's at odds with other dependencies for me

flutter_secure_storage ^9.1.1 which depends on flutter_secure_storage_web ^1.2.1, every version of __
  from path requires flutter_secure_storage_web ^1.2.1.
Because flutter_secure_storage_web 1.2.1 depends on js ^0.6.3 and no versions of flutter_secure_storage_web match >1.2.1 <2.0.0, flutter_secure_storage_web ^1.2.1
  requires js ^0.6.3.
Thus, every version of  from path requires js ^0.6.3.
And because pdf_render >=1.4.7 depends on js ^0.7.1
Daniel-Cong commented 5 months ago

A lot of my packages got stuck on old version as well, because flutter_secure_storage defined an old outdated js package as it's dependency.

Ali-Solak commented 5 months ago

I guess this should be resolved with the release of the 2.0.0 web package, since it's going to use the web package without the js dep

flutter_secure_storage_web: ^2.0.0-beta.1

itismejy commented 5 months ago

still not solved yet. using this: flutter_secure_storage: ^9.2.1 flutter_secure_storage_web: ^2.0.0-beta.1

AlexMobile-l commented 5 months ago

Because depends on flutter_secure_storage ^9.2.1 which depends on flutter_secure_storage_web ^1.2.1, flutter_secure_storage_web ^1.2.1 is required. So, because depends on flutter_secure_storage_web ^2.0.0-beta.1, version solving failed.

juliansteenbakker commented 5 months ago

Use it as a dependency override like so:

dependency_overrides:
  flutter_secure_storage_web: ^2.0.0-beta.1
AlexMobile-l commented 5 months ago

It looks like it's working. Thank you!