mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
feat(Adb): list devices _and_ emulators in one go (#1125)
This commit is contained in:
committed by
GitHub
parent
0e8234abfd
commit
aa679ea1d6
Vendored
+3
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user