LtbLightning / bdk-flutter

Bitcoin Development Kit - Flutter Package
MIT License
63 stars 28 forks source link

Match ldk node rust bridge version + rename librust to avoid conflicts with other packages #77

Closed kumulynja closed 1 year ago

kumulynja commented 1 year ago

As explained in https://github.com/LtbLightning/ldk-node-flutter/issues/13 some issues arise when trying to use bdk_flutter and ldk_node_flutter in the same app because they both use flutter_rust_bridge but with different versions and they both generate the native rust code to a library called librust, which gives conflicts in the app that imports them both.

This PR solves this by updating the flutter_rust_bridge of bdk_flutter to the same version range of ldk_node_flutter and by renaming librust.a and librust.so to librustbdk.a and librustbdk.so respectively.

kumulynja commented 1 year ago

Do not review yet, with the new build, it is not working for iOS anymore, I will comment again when it is fixed.