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

Function getConnectedDevices

npm_modules/cli/src/utils/deviceUtils.ts:55–65  ·  view source on GitHub ↗
(platform: string)

Source from the content-addressed store, hash-verified

53}
54
55export async function getConnectedDevices(platform: string): Promise<string[]> {
56 if (platform === PLATFORM.ANDROID) {
57 const androidDevices = await getConnectedAndroidDevices();
58 return androidDevices;
59 } else if (platform === PLATFORM.IOS) {
60 const iosDevices = await getConnectedIOSDevices();
61 return iosDevices;
62 }
63
64 return [];
65}
66
67export async function installAndroidApk(apkPath: string, emulatorId?: string) {
68 const idString = emulatorId ? ` -s ${emulatorId} ` : ' ';

Callers 1

getDeviceChoiceFunction · 0.90

Calls 2

getConnectedIOSDevicesFunction · 0.85

Tested by

no test coverage detected