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

fix: allow to overwrite flutter version #2306

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

- name: Generate FFI bindings
if: matrix.bin == 'webapp'
run: just gen
run: just gen beta

- name: Build ${{ matrix.bin }}
run: cargo build --release --bin ${{ matrix.bin }} --target-dir ./target --target=${{ matrix.target }}
Expand Down
12 changes: 10 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,19 @@ deps-ios:
cargo install cargo-lipo
rustup target add aarch64-apple-ios x86_64-apple-ios

gen:
gen flutter_channel="":
#!/usr/bin/env bash
set -euxo pipefail
cd mobile
fvm flutter pub get

if [ -n "{{flutter_channel}}" ]; then
echo "Flutter channel is set to: {{flutter_channel}}"
fvm spawn {{flutter_channel}} pub get
else
echo "Flutter channel is default"
fvm flutter pub get
fi

RUST_LOG={{ rust_log_for_frb }} flutter_rust_bridge_codegen \
--rust-input native/src/api.rs \
--c-output ios/Runner/bridge_generated.h \
Expand Down
Loading