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

flutter_rust_bridge version incompatibility #150

Open
ethicnology opened this issue Nov 14, 2024 · 6 comments
Open

flutter_rust_bridge version incompatibility #150

ethicnology opened this issue Nov 14, 2024 · 6 comments

Comments

@ethicnology
Copy link

Hey there,

I would like to ask if there is any reason to restrict flutter_rust_bridge between >=2.0.0 and <2.1.0 instead of ^2.0.0 or ^2.1.0 ?

This create incompatibility with packages that rely on more updated versions of flutter_rust_bridge, currently ^2.6.0

Example:

flutter pub add bip85

Because every version of bip85 depends on flutter_rust_bridge ^2.6.0 and every version of bdk_flutter
  from git depends on flutter_rust_bridge >=2.0.0 <2.1.0, bip85 is incompatible with bdk_flutter from
  git.
@Hamaad-coder
Copy link

Simple remove version from flutter_rust_bridge: ^version to flutter_rust_bridge: empty in pubspec.yaml file. It will automatically pick version.

@ice-tychon
Copy link

@Hamaad-coder It doesn't help, in runtime I get:

flutter_rust_bridge's codegen version (2.0.0) should be the same as runtime version (2.7.0)

@ice-tychon
Copy link

I created a PR to solve the issue: #158

In a meanwhile you can use my branch in pubspec.yaml:

  bdk_flutter:
    git:
        url: https://github.com/ice-tychon/bdk-flutter.git
        ref: chore/update-flutter-rust-bridge

@ethicnology
Copy link
Author

@ice-tychon it doesn't solve the issue since all others dependencies (boltz, lwk, bip85, payjoin…) relying on another flutter_rust_bridge version will become incompatible.

I wonder how flutter_rust_bridge maintainer will address this problem, we can't expect all maintainer of all packages to have the exact same version.

@ice-tychon
Copy link

@ethicnology are you sure? It works in my app.

@ethicnology
Copy link
Author

@ice-tychon
Do you have other dependencies packages that rely on flutter_rust_bridge ?

You can give a try with bip85

You should have an incompatibility between your bdk 2.7.0 and bip85 2.0.0

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

3 participants