You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9474d57
Browse filesBrowse the repository at this point in the historyBrowse files
[flutter_tools] Simplify emulator creation routing and daemon wiring
Keep the `flutter daemon` wire protocol unchanged at `0.6.1` (`EmulatorDomain.create` continues creating Android emulators while `emulator.getEmulators` and `emulator.launch` include tool extension emulators via the injected `EmulatorManager`), default `EmulatorManager.createEmulator` `platform` to `androidPlatform`, inline interactive platform prompting inside `EmulatorsCommand`, mark `TargetEmulator` as `final`, fail fast via `throwToolExit` on unknown `--platform` values, and consolidate extension error formatting.
Part of flutter#190755
Part of flutter#190750
Copy file name to clipboardExpand all lines: packages/flutter_tools/doc/daemon.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,14 +289,13 @@ Return a list of all available emulators. The `params` field will be a List; eac
289
289
The `launch()` command allows launching an emulator/simulator by its `id`.
290
290
291
291
-`emulatorId`: the id of an emulator as returned by `getEmulators`.
292
-
-`coldBoot`: an optional boolean flag which indicates if the emulator should be cold booted. Supported for Android and tool extension emulators; silently ignored for other emulator types.
292
+
-`coldBoot`: an optional boolean flag which indicates if the emulator should be cold booted. Only supported for android emulators, silently ignored if emulator type is not android.
293
293
294
294
#### emulator.create
295
295
296
-
The `create()` command creates a new emulator with an optional `name` and `platform`.
296
+
The `create()` command creates a new Android emulator with an optional `name`.
297
297
298
298
-`name`: an optional name for this emulator
299
-
-`platform`: an optional target platform identifier (for example, `'android'` or a tool extension platform identifier). When omitted, defaults to `'android'` if Android emulator creation is available, or to the single available tool extension emulator platform otherwise.
300
299
301
300
The returned `params` will contain:
302
301
@@ -353,7 +352,6 @@ See the [source](https://github.com/flutter/flutter/blob/main/packages/flutter_t
353
352
354
353
## Changelog
355
354
356
-
- 0.6.2: Added `platform` option to `emulator.create` command.
357
355
- 0.6.1: Added `coldBoot` option to `emulator.launch` command.
358
356
- 0.6.0: Added `debounce` option to `app.restart` command.
0 commit comments