Skip to content

Commit

Permalink
Args of android.install require all in typescript. fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed May 10, 2024
1 parent 2bf2ed3 commit 2f78df1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,18 @@ class Android {
* @param emulatorId id of emulator
* @param apkPath path of apk file
*/
async install(emulatorId: string, apkPath: string, options?: Record<'l' | 'r' | 't' | 's' | 'd' | 'g', boolean>) {
async install(
emulatorId: string,
apkPath: string,
options?: {
l?: boolean;
r?: boolean;
t?: boolean;
s?: boolean;
d?: boolean;
g?: boolean;
}
) {
log('install: %s, %s', JSON.stringify({ emulatorId, apkPath }));
const cmdParams = params2Cmd(options);
const process = await this.adb(emulatorId, `install ${cmdParams} ${apkPath}`);
Expand Down

0 comments on commit 2f78df1

Please sign in to comment.