Skip to content

Commit

Permalink
Merge pull request #2306 from get10101/fix/use-beta-channel
Browse files Browse the repository at this point in the history
fix: allow to overwrite flutter version
  • Loading branch information
bonomat authored Mar 22, 2024
2 parents 492babb + 3000179 commit 68cae96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
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

0 comments on commit 68cae96

Please sign in to comment.