Skip to content

Commit

Permalink
Update Android emulator path to support SDK Tools >=25.3.0 (#700)
Browse files Browse the repository at this point in the history
Update Android emulator path to support SDK Tools >=25.3.0
  • Loading branch information
elyalvarado authored and rotemmiz committed May 19, 2018
1 parent 3df931f commit cfdc279
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion detox/src/devices/android/Emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const argparse = require('../../utils/argparse');

class Emulator {
constructor() {
this.emulatorBin = path.join(Environment.getAndroidSDKPath(), 'tools', 'emulator');
const newEmulatorPath = path.join(Environment.getAndroidSDKPath(), 'emulator', 'emulator');
const oldEmulatorPath = path.join(Environment.getAndroidSDKPath(), 'tools', 'emulator');
this.emulatorBin = fs.existsSync(newEmulatorPath) ? newEmulatorPath : oldEmulatorPath;
}

async listAvds() {
Expand Down

0 comments on commit cfdc279

Please sign in to comment.