feat(Adb): list devices _and_ emulators in one go (#1125)

This commit is contained in:
Raphael von der Grün
2020-11-19 21:30:56 +01:00
committed by GitHub
parent 0e8234abfd
commit aa679ea1d6
6 changed files with 42 additions and 70 deletions
+3 -2
View File
@@ -27,8 +27,9 @@ var events = require('cordova-common').events;
/**
* Returns a promise for the list of the device ID's found
*/
module.exports.list = function () {
return Adb.devices();
module.exports.list = async () => {
return (await Adb.devices())
.filter(id => !id.startsWith('emulator-'));
};
module.exports.resolveTarget = function (target) {