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

Prefer physical dev #2

Merged
merged 1 commit into from
Jun 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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