Update flutter_tools/bin/*.(dart|sh) to provide, if set, --local-engine-host. (#132336)

Partial work towards https://github.com/flutter/flutter/issues/132245.

Other than updating error messages, and passing `$LOCAL_ENGINE_HOST`
downwards, this PR should not change the behavior of any existing
workflows or code (i.e. it's purely additive).
This commit is contained in:
Matan Lurey
2023-08-10 15:25:57 -07:00
committed by GitHub
parent 7dff527be5
commit b4d5c8f425
4 changed files with 61 additions and 4 deletions

View File

@@ -345,6 +345,10 @@ class Context {
flutterArgs.add('--local-engine=${environment['LOCAL_ENGINE']}');
}
if (environment['LOCAL_ENGINE_HOST'] != null && environment['LOCAL_ENGINE_HOST']!.isNotEmpty) {
flutterArgs.add('--local-engine-host=${environment['LOCAL_ENGINE_HOST']}');
}
flutterArgs.addAll(<String>[
'assemble',
'--no-version-check',