-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PR (Issue #1176) - Stop Forcing -gpu host on android emulators #1177
Conversation
…meters when launching an emulator (non headless mode)
…he android emulator gpu mode
@rotemmiz, looks good to me. Shall we merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, 'really like it!
} | ||
|
||
return undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RyanThomas73 for backwards compatibility, please return host
as the default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@d4vidi Returning host as the default reintroduces the problem where it will always include -gpu host
with the emulator command preventing the emulator command from honoring an explicit gpu mode specific in the emulator config via hw.gpu.mode=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could choose a specific value to map to undefined
so it uses the emulator config default (e.g. detox test .... --gpu default
) but I feel its better the way it is in the PR now. The user shouldn't have to explicitly specify default to get the default behavior from the emulator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right - I was not aware of that.
Nevertheless the issue of back-compatibility still is concerning (keeping the community happy). That being said, I take it that the crucial use cases are of the CI, where typically emulators are run headless
, which isn't affected in this case. So, bottom line here - I'll approve and merge.
Thank you :)
Resolves #1176
Only adds the
-gpu [gpu mode]
flags to the androidemulator
command if the--headless
parameter is specified or if an explicit--gpu [gpu mode]
cli argument is provided.