MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getConnectedAndroidDevices

Function getConnectedAndroidDevices

npm_modules/cli/src/utils/deviceUtils.ts:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42export async function getConnectedAndroidDevices(): Promise<string[]> {
43 const commandListDevices = 'adb devices';
44 const { stdout: devicesString } = await runCliCommand(commandListDevices, undefined, true);
45 const androidDevices = parseAndroidDevices(devicesString);
46
47 return androidDevices;
48}
49
50export async function getConnectedIOSDevices(): Promise<string[]> {
51 // eslint-disable-next-line unicorn/no-useless-promise-resolve-reject

Callers 1

getConnectedDevicesFunction · 0.85

Calls 2

runCliCommandFunction · 0.90
parseAndroidDevicesFunction · 0.85

Tested by

no test coverage detected