Skip to content

Commit

Permalink
Android: Force emulator launch to use -gpu host instead of `-gpu au…
Browse files Browse the repository at this point in the history
…to` on macOS (wix#782)
  • Loading branch information
rotemmiz authored Jun 10, 2018
1 parent 730a4d6 commit bd80816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detox/src/devices/android/Emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const spawn = require('child-process-promise').spawn;
const _ = require('lodash');
const log = require('npmlog');
const fs = require('fs');
const os = require('os');
const Environment = require('../../utils/environment');
const Tail = require('tail').Tail;
const argparse = require('../../utils/argparse');
Expand All @@ -28,7 +29,7 @@ class Emulator {
async boot(emulatorName) {
const emulatorArgs = _.compact([
'-verbose',
'-gpu', 'auto',
'-gpu', os.platform() === 'darwin' ? 'host' : 'auto',
'-no-audio',
argparse.getArgValue('headless') ? '-no-window' : '',
`@${emulatorName}`
Expand Down

0 comments on commit bd80816

Please sign in to comment.