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

Move binary scripts to build.rs #357

Open
vivianjeng opened this issue Mar 6, 2025 · 0 comments
Open

Move binary scripts to build.rs #357

vivianjeng opened this issue Mar 6, 2025 · 0 comments

Comments

@vivianjeng
Copy link
Collaborator

Problem

Now we use CLI to generate bindings for iOS and Android

but if it could be moved to build.rs instead of running cargo run --bin ios
It would make the building easier

Details

Ideally we just move the script to mopro-ffi/build.rs
and when users activate

[build-dependencies]
mopro-ffi = {version = "0.1", features = ["ios"]}

the current app_config/ios.rs scripts executed and the bindings are generated

Question
The current uniffi needs to build first and execute binary after building
e.g.

cargo build --release
cargo run --bin uniffi-bindgen generate --library target/release/libmath.so --language kotlin --out-dir out

not sure if it can be executed in the same build script

Acceptance criteria

Run the scripts

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

1 participant