mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
fix(scrcpy): remove extra version
parameters
This commit is contained in:
parent
8c5b3c2632
commit
aeaa9020dc
4 changed files with 8 additions and 19 deletions
|
@ -217,28 +217,26 @@ export class AdbScrcpyClient {
|
|||
* This method will modify the given `options`,
|
||||
* so don't reuse it elsewhere.
|
||||
*/
|
||||
static async getEncoders(
|
||||
static getEncoders(
|
||||
adb: Adb,
|
||||
path: string,
|
||||
version: string,
|
||||
options: AdbScrcpyOptions<object>,
|
||||
): Promise<ScrcpyEncoder[]> {
|
||||
options.setListEncoders();
|
||||
return await options.getEncoders(adb, path, version);
|
||||
return options.getEncoders(adb, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will modify the given `options`,
|
||||
* so don't reuse it elsewhere.
|
||||
*/
|
||||
static async getDisplays(
|
||||
static getDisplays(
|
||||
adb: Adb,
|
||||
path: string,
|
||||
version: string,
|
||||
options: AdbScrcpyOptions<object>,
|
||||
): Promise<ScrcpyDisplay[]> {
|
||||
options.setListDisplays();
|
||||
return await options.getDisplays(adb, path, version);
|
||||
return options.getDisplays(adb, path);
|
||||
}
|
||||
|
||||
#options: AdbScrcpyOptions<object>;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
import { AdbScrcpyOptions2_1 } from "./2_1.js";
|
||||
|
||||
export class AdbScrcpyOptionsLatest extends AdbScrcpyOptions2_1 {}
|
||||
export { AdbScrcpyOptions2_1 as AdbScrcpyOptionsLatest } from "./2_1.js";
|
||||
|
|
|
@ -7,17 +7,9 @@ import type { AdbScrcpyConnection } from "../connection.js";
|
|||
export abstract class AdbScrcpyOptions<
|
||||
T extends object,
|
||||
> extends ScrcpyOptionsWrapper<T> {
|
||||
abstract getEncoders(
|
||||
adb: Adb,
|
||||
path: string,
|
||||
version: string,
|
||||
): Promise<ScrcpyEncoder[]>;
|
||||
abstract getEncoders(adb: Adb, path: string): Promise<ScrcpyEncoder[]>;
|
||||
|
||||
abstract getDisplays(
|
||||
adb: Adb,
|
||||
path: string,
|
||||
version: string,
|
||||
): Promise<ScrcpyDisplay[]>;
|
||||
abstract getDisplays(adb: Adb, path: string): Promise<ScrcpyDisplay[]>;
|
||||
|
||||
abstract createConnection(adb: Adb): AdbScrcpyConnection;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue