Skip to content

Commit aa5de0f

Browse files
committed
Update to latest cargo-flutter.
1 parent a5d5098 commit aa5de0f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ jobs:
101101
- name: Checkout sources
102102
uses: actions/checkout@v1
103103

104+
- name: Cache cargo folder
105+
uses: actions/cache@v1
106+
with:
107+
path: ~/.cargo
108+
key: lint-cargo
109+
104110
- name: Install rust toolchain
105111
uses: hecrj/setup-rust-action@v1
106112
with:

src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ fn main() {
88

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

11-
let mut args = Vec::with_capacity(1);
11+
let mut args = Vec::with_capacity(3);
12+
13+
if let Ok(observatory_port) = std::env::var("DART_OBSERVATORY_PORT") {
14+
args.push("--disable-service-auth-codes".to_string());
15+
args.push(format!("--observatory-port={}", observatory_port));
16+
}
1217

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

0 commit comments

Comments
 (0)