Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Fix getting info for Android tools #906

Merged
merged 2 commits into from
Mar 16, 2017

Conversation

rosen-vladimirov
Copy link
Collaborator

Due to changes in Android SDK, we have to update the checks in CLI. While gathering system information, we check the android executable, which is no longer returning correct results.
In order to fix this, we rely on the emulator executable, which is the real thing we need as it is the one that allows us to work with Android Emulators.
Fix sys-info checks and get correct path to emulator according to latest changes.

Due to changes in Android SDK, we have to update the checks in CLI. While gathering system information, we check the android executable, which is no longer returning correct results.
In order to fix this, we rely on the emulator executable, which is the real thing we need as it is the one that allows us to work with Android Emulators.
Fix sys-info checks and get correct path to emulator according to latest changes.
@justcodebuilduser
Copy link

❤️

sys-info-base.ts Outdated
} catch (err) {
this.$logger.trace(`Error while checking is ${pathToAndroid} installed. Error is: ${err.messge}`);
this.$logger.trace(`Error while checking is emulator installed. Error is: ${err.messge}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we will never trace the error message from emulator -help, if there is one, because we set throwError: false on spawnFromEvent. You can check if result is false and trace the message from emulatorHelp.stdout or emulatorHelp.stderr.

AndroidEmulatorServices knows how to get information about Android Virtual Devices.
Make this methods public, so they can be called from other services which need this information.

Fix getting path to emulator executable on Windows - it has `.exe` and the check if it exists was always false.
@justcodebuilduser
Copy link

❤️

@rosen-vladimirov rosen-vladimirov merged commit 340713d into master Mar 16, 2017
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-android-builds branch March 16, 2017 12:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants