Skip to content
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

Device/emulator detection fixes #4483

Merged
merged 5 commits into from
Mar 29, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

fix: do not start emulator detection interval

The emulator detection interval is not required for CLI and in fact it just uses CPU and memory. Also, it causes some issues when you do not hava JAVA installed.
So remove start of emulator detection interval and allow it to be started from the API, when CLI is used as a library.

fix: stop executing avdmanager in case java is not available

In case JAVA_HOME is not set and there's no java executable in PATH, calls to avdmanager fail with error. However, on macOS this also leads to system prompt to install JAVA.
To handle this, do not execute avdmanager in case there's no JAVA_HOME or java in PATH.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

The emulator detection interval is not required for CLI and in fact it just uses CPU and memory. Also, it causes some issues when you do not hava JAVA installed.
So remove start of emulator detection interval and allow it to be started from the API, when CLI is used as a library.
In case JAVA_HOME is not set and there's no java executable in PATH, calls to `avdmanager` fail with error. However, on macOS this also leads to system prompt to install JAVA.
To handle this, do not execute `avdmanager` in case there's no JAVA_HOME or java in PATH.
@rosen-vladimirov rosen-vladimirov added this to the 5.3.1 milestone Mar 28, 2019
@rosen-vladimirov rosen-vladimirov self-assigned this Mar 28, 2019
@cla-bot cla-bot bot added the cla: yes label Mar 28, 2019
@ghost ghost added the new PR label Mar 28, 2019
@rosen-vladimirov rosen-vladimirov changed the title Vladimirov/device detections fixes Device/emulator detection fixes Mar 28, 2019
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke

Add clearInterval in timers API, so we can safely remove the cached timers from our internal cache. Without this, we end up calling many clearIntervals for timers that have already been cleared.
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke

@rosen-vladimirov rosen-vladimirov merged commit 2748bba into release Mar 29, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/device-detections-fixes branch March 29, 2019 09:00
@ghost ghost removed the new PR label Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants