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

refactor: Replace avdmanager usage with faster config reading primitives #549

Merged
merged 4 commits into from
Aug 26, 2020

Conversation

mykola-mokhnach
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach commented Aug 25, 2020

It turns out that Google bumped minimum java version for its build tools, but forgot to do this for SDK tools, like avdmanager. This causes java version incompatibility errors while executing avdmanager script on systems where Java9+ is set in JAVA_HOME.
This PR removed usage of avdmanager and replaces it with NodeJS-based config reader, which is way faster and does not experience the above issues

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

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

Did CI get lint issue?

lib/helpers.js Outdated

if (location && await fs.exists(location)) {
const stats = await fs.stat(location);
return stats.isDirectory() ? location : null;
Copy link
Member

Choose a reason for hiding this comment

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

how about print the location as debug log when it is not directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added log

@mykola-mokhnach mykola-mokhnach merged commit daa439e into appium:master Aug 26, 2020
@mykola-mokhnach mykola-mokhnach deleted the avd_list branch August 26, 2020 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants