Skip to content

Commit

Permalink
Update to latest cargo-flutter.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Jan 18, 2020
1 parent a5d5098 commit aa5de0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v1

- name: Cache cargo folder
uses: actions/cache@v1
with:
path: ~/.cargo
key: lint-cargo

- name: Install rust toolchain
uses: hecrj/setup-rust-action@v1
with:
Expand Down
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ fn main() {

let assets_dir = std::env::var("FLUTTER_ASSET_DIR").expect("FLUTTER_ASSET_DIR");

let mut args = Vec::with_capacity(1);
let mut args = Vec::with_capacity(3);

if let Ok(observatory_port) = std::env::var("DART_OBSERVATORY_PORT") {
args.push("--disable-service-auth-codes".to_string());
args.push(format!("--observatory-port={}", observatory_port));
}

if let Ok(snapshot) = std::env::var("FLUTTER_AOT_SNAPSHOT") {
if Path::new(&snapshot).exists() {
Expand Down

0 comments on commit aa5de0f

Please sign in to comment.