breez / breez-sdk-liquid

MIT License
18 stars 4 forks source link

Re-add convenience Flutter gen command #514

Closed dangeross closed 4 days ago

dangeross commented 5 days ago

Re-add the convenience Flutter gen command to generate code/FFI bindings and softlink C headers

dangeross commented 4 days ago

Where is this being used?

@erdemyerebasmaz we need a single command people can run to generate everything needed for Flutter when developing the SDK. What do you suggest to add?

erdemyerebasmaz commented 4 days ago

we need a single command people can run to generate everything needed for Flutter when developing the SDK.

That command is just bootstrap false true.

What do you suggest to add?

I'd decouple uniFFI C header file generation from just build-uniffi-swift / make bindings-swift scripts if possible and make it part of gen / bootstrap recipes.

erdemyerebasmaz commented 4 days ago

I'd decouple uniFFI C header file generation from just build-uniffi-swift / make bindings-swift scripts if possible and make it part of gen / bootstrap recipes.

Decoupled uniFFI C header file generation from just build-uniffi-swift / make bindings-swift scripts.

we need a single command people can run to generate everything needed for Flutter when developing the SDK.

Created a single command, just build recipe to build the uniFFI library & generate Dart/Flutter & FFI bindings.

just gen can be used without rebuilding the libraries if there are no structural changes to save development time. It also has an option to skip building iOS framework, just gen false.