Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Add option to keep existing avds #42

Merged
merged 4 commits into from
Aug 7, 2018

Conversation

simonschiller
Copy link
Contributor

@simonschiller simonschiller commented Jul 3, 2018

Closes #41 (@yunikkk, @artem-zinnatullin)

When starting 4 emulators on my development machine, this change cut the boot-up time of the emulators in half (from ~55 sec down to ~25 sec). When using snapshots, it went down even further (~12 sec).

Observable
.just(Unit)
.doOnSubscribe { log("Avd ${args.emulatorName} already exists, will not be overridden.") }
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow. I love how this non trivial logic ended up in just couple lines of code 👍

var useCompatEmulator: Boolean = false,

@Parameter(
names = ["--keep-existing-avds"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add it to the README too

@artem-zinnatullin
Copy link
Contributor

Please update the readme with new params, otherwise LGTM

cc @yunikkk PTAL

@yunikkk
Copy link
Contributor

yunikkk commented Aug 6, 2018

LGTM with README updates

@simonschiller
Copy link
Contributor Author

Updated README

@artem-zinnatullin
Copy link
Contributor

👍 @yunikkk I don't have merge permissions jfyi

@yunikkk yunikkk merged commit a6d90a5 into gojuno:master Aug 7, 2018
@yunikkk
Copy link
Contributor

yunikkk commented Aug 7, 2018

@artem-zinnatullin yup

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants