-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Add cold boot option to emulator launch command #82647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cold boot option to emulator launch command #82647
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can write this more compactly using an if in the list literal:
final List<String> cmd = <String>[
_androidSdk.emulatorPath,
'-avd',
id,
if (cold)
'-no-snapshot-load',
];There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use a ...:
final List<String> kEmulatorLauchColdBootCommand = <String>[...kEmulatorLaunchCommand, '-no-snapshot-load'];There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would name this coldBoot
The cold boot option is only available for AVD.
f761845 to
41fdcf5
Compare
|
@jonahwilliams, thank you for the review. I addressed your findings in the latest commit. |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The cold boot option is only available for AVD.
This PR implements the following feature request: #56828
closes #56828
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.