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

fix: emulator API fixes #3893

Merged
merged 1 commit into from
Sep 14, 2018
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Sep 14, 2018

fix: errors are raised when emulator lost/found event is raised

Whenever androidEmulatorDiscovery raises emulatorImageFound or emulatorImageLost event, an error is raised in the code as devicesService expects to receive an array, but it receives a single image instead.
Fix the code in devicesService to handle correctly the event. Also add logic to handle the same events from iOSSimulatorDiscovery.

fix: Android emulator image display names are not correct

In case the Android Emulator image does not have displayName set in the config.ini file, the displayName that CLI sets fallbacks to hw.device.name property.
However, this name is not the one that is visible in other tools, like Android Studio for example. As a user I expect to see the same name as in Android Studio.
In order to fix this, fallback to the AvdId value from config.ini file and if it is missing, fallback to hw.device.name.
Here's an image showing the mentioned properties:
screen shot 2018-09-13 at 18 45 07

NOTE: When displayName has spaces, the AvdId is not the same, however it is much similar than the hw.device.name propery:
screen shot 2018-09-13 at 18 29 12

fix: errors are raised when emulator lost/found event is raised

Whenever androidEmulatorDiscovery raises `emulatorImageFound` or `emulatorImageLost` event, an error is raised in the code as `devicesService` expects to receive an array, but it receives a single image instead.
Fix the code in devicesService to handle correctly the event. Also add logic to handle the same events from iOSSimulatorDiscovery.

fix: Android emulator images are not correct
In case the Android Emulator image does not have displayName set in the config.ini file, the displayName that CLI sets fallbacks to `hw.device.name` property.
However, this name is not the one that is visible in other tools, like Android Studio for example. As a user I expect to see the same name as in Android Studio.
In order to fix this, fallback to the AvdId value from config.ini file and if it is missing, fallback to `hw.device.name`.
@rosen-vladimirov rosen-vladimirov added this to the 4.2.4 milestone Sep 14, 2018
@rosen-vladimirov rosen-vladimirov self-assigned this Sep 14, 2018
@rosen-vladimirov rosen-vladimirov merged commit c666a5e into release Sep 14, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-emulator-api branch September 14, 2018 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants