(apkPath: string, emulatorId?: string)
| 65 | } |
| 66 | |
| 67 | export async function installAndroidApk(apkPath: string, emulatorId?: string) { |
| 68 | const idString = emulatorId ? ` -s ${emulatorId} ` : ' '; |
| 69 | const commandInstallApk = `adb${idString}install -r ${apkPath}`; |
| 70 | await spawnCliCommand(commandInstallApk, undefined, 'pipe', false, true); |
| 71 | } |
| 72 | |
| 73 | export async function startAndroidActivity(activityName: string) { |
| 74 | const commandStartActivity = `adb shell am start -n ${activityName}`; |
no test coverage detected