LtbLightning / bdk-flutter

Bitcoin Development Kit - Flutter Package
MIT License
60 stars 27 forks source link

Execute Rust compile script when building iOS App #3

Closed BitcoinZavior closed 1 year ago

BitcoinZavior commented 1 year ago

Android build executes a Cargo compile task in build.gradle. This creates compiles the rust code and also created flutter rust bindings which are used by both Android and iOS.

As only build.gradle has the trigger to run this task, Android has to be built at-least once so that iOS app can be built and run.

A task is required for iOS so that the same task is executed with iOS build.

build.gradle task: https://github.com/LtbLightning/bdk-flutter/blob/142772b6aacf8d91524874610877a36da9a5b36c/android/build.gradle#L66

BitcoinZavior commented 1 year ago

This is not an issue anymore as bdk-flutter now downloads a pre compiled binary.