@mcesystems/adb-kit 1.0.78 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/index.d.ts +68 -2
- package/package.json +4 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
import { Client as AdbClient, DeviceClient } from '@devicefarmer/adbkit';
|
|
4
|
+
|
|
5
|
+
declare const deviceProps: {
|
|
6
|
+
Manufacturer: string;
|
|
7
|
+
Name: string;
|
|
8
|
+
Model: string;
|
|
9
|
+
"Android Version": string;
|
|
10
|
+
Platform: string;
|
|
11
|
+
CPU: string;
|
|
12
|
+
"CPU.abi2": string;
|
|
13
|
+
Description: string;
|
|
14
|
+
Fingerprint: string;
|
|
15
|
+
Brand: string;
|
|
16
|
+
Device: string;
|
|
17
|
+
"GSM Flexversion": string;
|
|
18
|
+
"Locale Language": string;
|
|
19
|
+
"Locale Region": string;
|
|
20
|
+
"Wifi Channels": string;
|
|
21
|
+
"Board Platform": string;
|
|
22
|
+
"Product Board": string;
|
|
23
|
+
"Display ID": string;
|
|
24
|
+
"GSM IMEI": string;
|
|
25
|
+
"Version Incremental": string;
|
|
26
|
+
"Version SDK": string;
|
|
27
|
+
"Version Codename": string;
|
|
28
|
+
"Version Release": string;
|
|
29
|
+
"Build Date": string;
|
|
30
|
+
"Build Type": string;
|
|
31
|
+
"Build User": string;
|
|
32
|
+
};
|
|
33
|
+
export type DeviceProperty = keyof typeof deviceProps;
|
|
34
|
+
export declare class AdbDeviceKit {
|
|
35
|
+
private readonly port;
|
|
36
|
+
private client;
|
|
37
|
+
private device;
|
|
38
|
+
private deviceId;
|
|
39
|
+
private devicePort;
|
|
40
|
+
constructor(deviceId: string, port: number);
|
|
41
|
+
private connect;
|
|
42
|
+
listDevices(): Promise<Bluebird<adbkit.Device[]>>;
|
|
43
|
+
private getProperty;
|
|
44
|
+
getAllDeviceProperties(): Promise<Bluebird<adbkit.Properties>>;
|
|
45
|
+
getDeviceProperties(properties: DeviceProperty[]): Promise<any>;
|
|
46
|
+
installApp(appPath: string): Promise<void>;
|
|
47
|
+
uninstallApp(packageName: string): Promise<void>;
|
|
48
|
+
isAppInstalled(packageName: string): Promise<Bluebird<boolean>>;
|
|
49
|
+
/**
|
|
50
|
+
* Applications have life of their own, so we need to get the client to use it in other parts of the code.
|
|
51
|
+
* @returns The adb client
|
|
52
|
+
*/
|
|
53
|
+
getClient(): Promise<AdbClient>;
|
|
54
|
+
hasUsbDebugging(): Promise<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates an isolated ADB client for tracking operations.
|
|
57
|
+
* This client is separate from the main client so connection errors
|
|
58
|
+
* during tracking don't affect other operations.
|
|
59
|
+
*/
|
|
60
|
+
private createTrackingClient;
|
|
61
|
+
waitForUsbDebugging(timeout?: number, _numberOfAllowedAttempts?: number): Promise<boolean>;
|
|
62
|
+
startPortForward(serviceName: string): Promise<number | null>;
|
|
63
|
+
getDeviceId(): string;
|
|
64
|
+
getPort(): number;
|
|
65
|
+
getDeviceClient(): Promise<DeviceClient>;
|
|
66
|
+
}
|
|
2
67
|
export declare const readAll: typeof import("@devicefarmer/adbkit/dist/src/adb/util").default.readAll;
|
|
3
|
-
|
|
68
|
+
|
|
69
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcesystems/adb-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.79",
|
|
4
4
|
"description": "ADB (Android Debug Bridge) toolkit for device management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
"@devicefarmer/adbkit": "^3.3.8",
|
|
32
32
|
"get-port": "^7.1.0",
|
|
33
33
|
"tsx": "^4.21.0",
|
|
34
|
-
"@mcesystems/tool-debug-g4": "1.0.
|
|
34
|
+
"@mcesystems/tool-debug-g4": "1.0.79"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^22.10.2",
|
|
38
38
|
"cross-env": "^10.1.0",
|
|
39
39
|
"esbuild": "^0.27.0",
|
|
40
|
+
"esbuild-plugin-d.ts": "^1.3.1",
|
|
40
41
|
"rimraf": "^6.0.1",
|
|
41
42
|
"typescript": "^5.7.2",
|
|
42
43
|
"vitest": "^2.1.8"
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"export-adb-resources": "./scripts/export-resources.ts"
|
|
51
52
|
},
|
|
52
53
|
"scripts": {
|
|
53
|
-
"build": "tsx esbuild.config.mts
|
|
54
|
+
"build": "tsx esbuild.config.mts",
|
|
54
55
|
"build:all": "pnpm --filter @mcesystems/adb-kit... build",
|
|
55
56
|
"check:types": "tsc --noEmit",
|
|
56
57
|
"clean": "node-gyp clean && rimraf dist",
|