(platform: string)
| 53 | } |
| 54 | |
| 55 | export 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 | |
| 67 | export async function installAndroidApk(apkPath: string, emulatorId?: string) { |
| 68 | const idString = emulatorId ? ` -s ${emulatorId} ` : ' '; |
no test coverage detected