refactor(adb): change sync push args to objects

This commit is contained in:
Simon Chan 2023-03-06 13:12:41 +08:00
parent 134e48d620
commit cde7923856
6 changed files with 96 additions and 57 deletions

View file

@ -233,7 +233,10 @@ export class PackageManager extends AdbCommandBase {
const filePath = `/data/local/tmp/${fileName}.apk`;
try {
await sync.write(filePath, stream);
await sync.write({
filename: filePath,
file: stream,
});
} finally {
await sync.dispose();
}