Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Prefer physical dev (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlantz authored Jun 13, 2018
1 parent 614fee1 commit 5cf6d00
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/ParamedicTargetChooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ ParamedicTargetChooser.prototype.chooseTargetForAndroid = function (emulator, ta
var obj = {};
obj.target = target;
return obj;
}
}

var connectedPhysicalDevice = util.getAndroidPhysicalDevice();
if (connectedPhysicalDevice) {
logger.info('cordova-paramedic: Physical device connected, use: ' + connectedPhysicalDevice);
var obj = {};
obj.target = connectedPhysicalDevice;
return obj;
}

return this.startAnAndroidEmulator(target).then(function(emulatorId) {
var obj = {};
Expand Down

0 comments on commit 5cf6d00

Please sign in to comment.