@react-native-harness/platform-android 1.0.0-alpha.18 → 1.0.0-alpha.20
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/adb-id.d.ts.map +1 -1
- package/dist/adb-id.js +8 -2
- package/dist/adb.d.ts +1 -1
- package/dist/adb.d.ts.map +1 -1
- package/dist/adb.js +6 -2
- package/dist/config.d.ts +129 -16
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +8 -1
- package/dist/factory.d.ts +3 -3
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +5 -38
- package/dist/runner.d.ts +6 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +37 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/src/adb-id.ts +11 -2
- package/src/adb.ts +7 -2
- package/src/config.ts +12 -1
- package/src/factory.ts +11 -59
- package/src/runner.ts +66 -0
package/dist/adb-id.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adb-id.d.ts","sourceRoot":"","sources":["../src/adb-id.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACd,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,OAE/C,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,QAAQ,aAAa,KACpB,OAAO,CAAC,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"adb-id.d.ts","sourceRoot":"","sources":["../src/adb-id.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACd,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,OAE/C,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,QAAQ,aAAa,KACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CA+BvB,CAAC"}
|
package/dist/adb-id.js
CHANGED
|
@@ -14,8 +14,14 @@ export const getAdbId = async (device) => {
|
|
|
14
14
|
}
|
|
15
15
|
else if (isAndroidDevicePhysical(device)) {
|
|
16
16
|
const deviceInfo = await adb.getDeviceInfo(adbId);
|
|
17
|
-
if (deviceInfo
|
|
18
|
-
|
|
17
|
+
if (!deviceInfo) {
|
|
18
|
+
// This should never happen as we already checked if the device is physical.
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const normalizedManufacturer = deviceInfo.manufacturer?.toLowerCase() ?? '';
|
|
22
|
+
const normalizedModel = deviceInfo.model?.toLowerCase() ?? '';
|
|
23
|
+
if (normalizedManufacturer === device.manufacturer &&
|
|
24
|
+
normalizedModel === device.model) {
|
|
19
25
|
return adbId;
|
|
20
26
|
}
|
|
21
27
|
}
|
package/dist/adb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const isAppInstalled: (adbId: string, bundleId: string) => Promise<boolean>;
|
|
2
|
-
export declare const reversePort: (adbId: string, port: number) => Promise<void>;
|
|
2
|
+
export declare const reversePort: (adbId: string, port: number, hostPort?: number) => Promise<void>;
|
|
3
3
|
export declare const stopApp: (adbId: string, bundleId: string) => Promise<void>;
|
|
4
4
|
export declare const startApp: (adbId: string, bundleId: string, activityName: string) => Promise<void>;
|
|
5
5
|
export declare const getDeviceIds: () => Promise<string[]>;
|
package/dist/adb.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adb.d.ts","sourceRoot":"","sources":["../src/adb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GACzB,OAAO,MAAM,EACb,UAAU,MAAM,KACf,OAAO,CAAC,OAAO,CAWjB,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"adb.d.ts","sourceRoot":"","sources":["../src/adb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GACzB,OAAO,MAAM,EACb,UAAU,MAAM,KACf,OAAO,CAAC,OAAO,CAWjB,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,MAAM,MAAM,EACZ,WAAU,MAAa,KACtB,OAAO,CAAC,IAAI,CAEd,CAAC;AAEF,eAAO,MAAM,OAAO,GAClB,OAAO,MAAM,EACb,UAAU,MAAM,KACf,OAAO,CAAC,IAAI,CAEd,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,cAAc,MAAM,KACnB,OAAO,CAAC,IAAI,CAcd,CAAC;AAEF,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,EAAE,CAOrD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,KACZ,OAAO,CAAC,MAAM,GAAG,IAAI,CAGvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,MAAM,EACb,UAAU,MAAM,KACf,OAAO,CAAC,MAAM,GAAG,IAAI,CASvB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,KACZ,OAAO,CAAC,UAAU,GAAG,IAAI,CAI3B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,OAAO,CAGpE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,IAAI,CAE9D,CAAC"}
|
package/dist/adb.js
CHANGED
|
@@ -11,8 +11,8 @@ export const isAppInstalled = async (adbId, bundleId) => {
|
|
|
11
11
|
]);
|
|
12
12
|
return stdout.trim() !== '';
|
|
13
13
|
};
|
|
14
|
-
export const reversePort = async (adbId, port) => {
|
|
15
|
-
await spawn('adb', ['-s', adbId, 'reverse', `tcp:${port}`, `tcp:${
|
|
14
|
+
export const reversePort = async (adbId, port, hostPort = port) => {
|
|
15
|
+
await spawn('adb', ['-s', adbId, 'reverse', `tcp:${port}`, `tcp:${hostPort}`]);
|
|
16
16
|
};
|
|
17
17
|
export const stopApp = async (adbId, bundleId) => {
|
|
18
18
|
await spawn('adb', ['-s', adbId, 'shell', 'am', 'force-stop', bundleId]);
|
|
@@ -24,6 +24,10 @@ export const startApp = async (adbId, bundleId, activityName) => {
|
|
|
24
24
|
'shell',
|
|
25
25
|
'am',
|
|
26
26
|
'start',
|
|
27
|
+
'-a',
|
|
28
|
+
'android.intent.action.MAIN',
|
|
29
|
+
'-c',
|
|
30
|
+
'android.intent.category.LAUNCHER',
|
|
27
31
|
'-n',
|
|
28
32
|
`${bundleId}/${activityName}`,
|
|
29
33
|
]);
|
package/dist/config.d.ts
CHANGED
|
@@ -1,96 +1,208 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const AndroidEmulatorAVDConfigSchema: z.ZodObject<{
|
|
3
|
+
apiLevel: z.ZodNumber;
|
|
4
|
+
profile: z.ZodString;
|
|
5
|
+
diskSize: z.ZodDefault<z.ZodString>;
|
|
6
|
+
heapSize: z.ZodDefault<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
apiLevel: number;
|
|
9
|
+
profile: string;
|
|
10
|
+
diskSize: string;
|
|
11
|
+
heapSize: string;
|
|
12
|
+
}, {
|
|
13
|
+
apiLevel: number;
|
|
14
|
+
profile: string;
|
|
15
|
+
diskSize?: string | undefined;
|
|
16
|
+
heapSize?: string | undefined;
|
|
17
|
+
}>;
|
|
2
18
|
export declare const AndroidEmulatorSchema: z.ZodObject<{
|
|
3
19
|
type: z.ZodLiteral<"emulator">;
|
|
4
20
|
name: z.ZodString;
|
|
21
|
+
avd: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
apiLevel: z.ZodNumber;
|
|
23
|
+
profile: z.ZodString;
|
|
24
|
+
diskSize: z.ZodDefault<z.ZodString>;
|
|
25
|
+
heapSize: z.ZodDefault<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
apiLevel: number;
|
|
28
|
+
profile: string;
|
|
29
|
+
diskSize: string;
|
|
30
|
+
heapSize: string;
|
|
31
|
+
}, {
|
|
32
|
+
apiLevel: number;
|
|
33
|
+
profile: string;
|
|
34
|
+
diskSize?: string | undefined;
|
|
35
|
+
heapSize?: string | undefined;
|
|
36
|
+
}>>;
|
|
5
37
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
type: "emulator";
|
|
7
38
|
name: string;
|
|
8
|
-
}, {
|
|
9
39
|
type: "emulator";
|
|
40
|
+
avd?: {
|
|
41
|
+
apiLevel: number;
|
|
42
|
+
profile: string;
|
|
43
|
+
diskSize: string;
|
|
44
|
+
heapSize: string;
|
|
45
|
+
} | undefined;
|
|
46
|
+
}, {
|
|
10
47
|
name: string;
|
|
48
|
+
type: "emulator";
|
|
49
|
+
avd?: {
|
|
50
|
+
apiLevel: number;
|
|
51
|
+
profile: string;
|
|
52
|
+
diskSize?: string | undefined;
|
|
53
|
+
heapSize?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
11
55
|
}>;
|
|
12
56
|
export declare const PhysicalAndroidDeviceSchema: z.ZodObject<{
|
|
13
57
|
type: z.ZodLiteral<"physical">;
|
|
14
58
|
manufacturer: z.ZodString;
|
|
15
59
|
model: z.ZodString;
|
|
16
60
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
type: "physical";
|
|
18
61
|
manufacturer: string;
|
|
19
62
|
model: string;
|
|
20
|
-
}, {
|
|
21
63
|
type: "physical";
|
|
64
|
+
}, {
|
|
22
65
|
manufacturer: string;
|
|
23
66
|
model: string;
|
|
67
|
+
type: "physical";
|
|
24
68
|
}>;
|
|
25
69
|
export declare const AndroidDeviceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
26
70
|
type: z.ZodLiteral<"emulator">;
|
|
27
71
|
name: z.ZodString;
|
|
72
|
+
avd: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
apiLevel: z.ZodNumber;
|
|
74
|
+
profile: z.ZodString;
|
|
75
|
+
diskSize: z.ZodDefault<z.ZodString>;
|
|
76
|
+
heapSize: z.ZodDefault<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
apiLevel: number;
|
|
79
|
+
profile: string;
|
|
80
|
+
diskSize: string;
|
|
81
|
+
heapSize: string;
|
|
82
|
+
}, {
|
|
83
|
+
apiLevel: number;
|
|
84
|
+
profile: string;
|
|
85
|
+
diskSize?: string | undefined;
|
|
86
|
+
heapSize?: string | undefined;
|
|
87
|
+
}>>;
|
|
28
88
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
type: "emulator";
|
|
30
89
|
name: string;
|
|
31
|
-
}, {
|
|
32
90
|
type: "emulator";
|
|
91
|
+
avd?: {
|
|
92
|
+
apiLevel: number;
|
|
93
|
+
profile: string;
|
|
94
|
+
diskSize: string;
|
|
95
|
+
heapSize: string;
|
|
96
|
+
} | undefined;
|
|
97
|
+
}, {
|
|
33
98
|
name: string;
|
|
99
|
+
type: "emulator";
|
|
100
|
+
avd?: {
|
|
101
|
+
apiLevel: number;
|
|
102
|
+
profile: string;
|
|
103
|
+
diskSize?: string | undefined;
|
|
104
|
+
heapSize?: string | undefined;
|
|
105
|
+
} | undefined;
|
|
34
106
|
}>, z.ZodObject<{
|
|
35
107
|
type: z.ZodLiteral<"physical">;
|
|
36
108
|
manufacturer: z.ZodString;
|
|
37
109
|
model: z.ZodString;
|
|
38
110
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
type: "physical";
|
|
40
111
|
manufacturer: string;
|
|
41
112
|
model: string;
|
|
42
|
-
}, {
|
|
43
113
|
type: "physical";
|
|
114
|
+
}, {
|
|
44
115
|
manufacturer: string;
|
|
45
116
|
model: string;
|
|
117
|
+
type: "physical";
|
|
46
118
|
}>]>;
|
|
47
119
|
export declare const AndroidPlatformConfigSchema: z.ZodObject<{
|
|
48
120
|
name: z.ZodString;
|
|
49
121
|
device: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
50
122
|
type: z.ZodLiteral<"emulator">;
|
|
51
123
|
name: z.ZodString;
|
|
124
|
+
avd: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
apiLevel: z.ZodNumber;
|
|
126
|
+
profile: z.ZodString;
|
|
127
|
+
diskSize: z.ZodDefault<z.ZodString>;
|
|
128
|
+
heapSize: z.ZodDefault<z.ZodString>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
apiLevel: number;
|
|
131
|
+
profile: string;
|
|
132
|
+
diskSize: string;
|
|
133
|
+
heapSize: string;
|
|
134
|
+
}, {
|
|
135
|
+
apiLevel: number;
|
|
136
|
+
profile: string;
|
|
137
|
+
diskSize?: string | undefined;
|
|
138
|
+
heapSize?: string | undefined;
|
|
139
|
+
}>>;
|
|
52
140
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
type: "emulator";
|
|
54
141
|
name: string;
|
|
55
|
-
}, {
|
|
56
142
|
type: "emulator";
|
|
143
|
+
avd?: {
|
|
144
|
+
apiLevel: number;
|
|
145
|
+
profile: string;
|
|
146
|
+
diskSize: string;
|
|
147
|
+
heapSize: string;
|
|
148
|
+
} | undefined;
|
|
149
|
+
}, {
|
|
57
150
|
name: string;
|
|
151
|
+
type: "emulator";
|
|
152
|
+
avd?: {
|
|
153
|
+
apiLevel: number;
|
|
154
|
+
profile: string;
|
|
155
|
+
diskSize?: string | undefined;
|
|
156
|
+
heapSize?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
58
158
|
}>, z.ZodObject<{
|
|
59
159
|
type: z.ZodLiteral<"physical">;
|
|
60
160
|
manufacturer: z.ZodString;
|
|
61
161
|
model: z.ZodString;
|
|
62
162
|
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
type: "physical";
|
|
64
163
|
manufacturer: string;
|
|
65
164
|
model: string;
|
|
66
|
-
}, {
|
|
67
165
|
type: "physical";
|
|
166
|
+
}, {
|
|
68
167
|
manufacturer: string;
|
|
69
168
|
model: string;
|
|
169
|
+
type: "physical";
|
|
70
170
|
}>]>;
|
|
71
171
|
bundleId: z.ZodString;
|
|
72
172
|
activityName: z.ZodDefault<z.ZodString>;
|
|
73
173
|
}, "strip", z.ZodTypeAny, {
|
|
74
174
|
name: string;
|
|
75
175
|
device: {
|
|
76
|
-
type: "emulator";
|
|
77
176
|
name: string;
|
|
177
|
+
type: "emulator";
|
|
178
|
+
avd?: {
|
|
179
|
+
apiLevel: number;
|
|
180
|
+
profile: string;
|
|
181
|
+
diskSize: string;
|
|
182
|
+
heapSize: string;
|
|
183
|
+
} | undefined;
|
|
78
184
|
} | {
|
|
79
|
-
type: "physical";
|
|
80
185
|
manufacturer: string;
|
|
81
186
|
model: string;
|
|
187
|
+
type: "physical";
|
|
82
188
|
};
|
|
83
189
|
bundleId: string;
|
|
84
190
|
activityName: string;
|
|
85
191
|
}, {
|
|
86
192
|
name: string;
|
|
87
193
|
device: {
|
|
88
|
-
type: "emulator";
|
|
89
194
|
name: string;
|
|
195
|
+
type: "emulator";
|
|
196
|
+
avd?: {
|
|
197
|
+
apiLevel: number;
|
|
198
|
+
profile: string;
|
|
199
|
+
diskSize?: string | undefined;
|
|
200
|
+
heapSize?: string | undefined;
|
|
201
|
+
} | undefined;
|
|
90
202
|
} | {
|
|
91
|
-
type: "physical";
|
|
92
203
|
manufacturer: string;
|
|
93
204
|
model: string;
|
|
205
|
+
type: "physical";
|
|
94
206
|
};
|
|
95
207
|
bundleId: string;
|
|
96
208
|
activityName?: string | undefined;
|
|
@@ -99,6 +211,7 @@ export type AndroidEmulator = z.infer<typeof AndroidEmulatorSchema>;
|
|
|
99
211
|
export type PhysicalAndroidDevice = z.infer<typeof PhysicalAndroidDeviceSchema>;
|
|
100
212
|
export type AndroidDevice = z.infer<typeof AndroidDeviceSchema>;
|
|
101
213
|
export type AndroidPlatformConfig = z.infer<typeof AndroidPlatformConfigSchema>;
|
|
214
|
+
export type AndroidEmulatorAVDConfig = z.infer<typeof AndroidEmulatorAVDConfigSchema>;
|
|
102
215
|
export declare const isAndroidDeviceEmulator: (device: AndroidDevice) => device is AndroidEmulator;
|
|
103
216
|
export declare const isAndroidDevicePhysical: (device: AndroidDevice) => device is PhysicalAndroidDevice;
|
|
104
217
|
export declare function assertAndroidDeviceEmulator(device: AndroidDevice): asserts device is AndroidEmulator;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;EAKzC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAItC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAG9B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ,aAAa,KACpB,MAAM,IAAI,eAEZ,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ,aAAa,KACpB,MAAM,IAAI,qBAEZ,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,IAAI,eAAe,CAInC;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,IAAI,qBAAqB,CAIzC"}
|
package/dist/config.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export const AndroidEmulatorAVDConfigSchema = z.object({
|
|
3
|
+
apiLevel: z.number().min(1, 'API level is required'),
|
|
4
|
+
profile: z.string().min(1, 'Profile is required'),
|
|
5
|
+
diskSize: z.string().min(1, 'Disk size is required').default('1G'),
|
|
6
|
+
heapSize: z.string().min(1, 'Heap size is required').default('1G'),
|
|
7
|
+
});
|
|
2
8
|
export const AndroidEmulatorSchema = z.object({
|
|
3
9
|
type: z.literal('emulator'),
|
|
4
|
-
name: z.string().min(1, '
|
|
10
|
+
name: z.string().min(1, 'AVD name is required'),
|
|
11
|
+
avd: AndroidEmulatorAVDConfigSchema.optional(),
|
|
5
12
|
});
|
|
6
13
|
export const PhysicalAndroidDeviceSchema = z.object({
|
|
7
14
|
type: z.literal('physical'),
|
package/dist/factory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HarnessPlatform } from '@react-native-harness/platforms';
|
|
2
|
-
import { type AndroidEmulator, type AndroidPlatformConfig, type PhysicalAndroidDevice } from './config.js';
|
|
3
|
-
export declare const androidEmulator: (name: string) => AndroidEmulator;
|
|
2
|
+
import { type AndroidEmulator, type AndroidPlatformConfig, type PhysicalAndroidDevice, type AndroidEmulatorAVDConfig } from './config.js';
|
|
3
|
+
export declare const androidEmulator: (name: string, avd?: AndroidEmulatorAVDConfig) => AndroidEmulator;
|
|
4
4
|
export declare const physicalAndroidDevice: (manufacturer: string, model: string) => PhysicalAndroidDevice;
|
|
5
|
-
export declare const androidPlatform: (config: AndroidPlatformConfig) => HarnessPlatform
|
|
5
|
+
export declare const androidPlatform: (config: AndroidPlatformConfig) => HarnessPlatform<AndroidPlatformConfig>;
|
|
6
6
|
//# sourceMappingURL=factory.d.ts.map
|
package/dist/factory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC9B,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,eAAe,GAC1B,MAAM,MAAM,EACZ,MAAM,wBAAwB,KAC7B,eAID,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAChC,cAAc,MAAM,EACpB,OAAO,MAAM,KACZ,qBAID,CAAC;AAEH,eAAO,MAAM,eAAe,GAC1B,QAAQ,qBAAqB,KAC5B,eAAe,CAAC,qBAAqB,CAItC,CAAC"}
|
package/dist/factory.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { AndroidPlatformConfigSchema, } from './config.js';
|
|
3
|
-
import { getAdbId } from './adb-id.js';
|
|
4
|
-
import * as adb from './adb.js';
|
|
5
|
-
import { getDeviceName } from './utils.js';
|
|
6
|
-
export const androidEmulator = (name) => ({
|
|
1
|
+
export const androidEmulator = (name, avd) => ({
|
|
7
2
|
type: 'emulator',
|
|
8
3
|
name,
|
|
4
|
+
avd,
|
|
9
5
|
});
|
|
10
6
|
export const physicalAndroidDevice = (manufacturer, model) => ({
|
|
11
7
|
type: 'physical',
|
|
@@ -13,36 +9,7 @@ export const physicalAndroidDevice = (manufacturer, model) => ({
|
|
|
13
9
|
model: model.toLowerCase(),
|
|
14
10
|
});
|
|
15
11
|
export const androidPlatform = (config) => ({
|
|
16
|
-
name:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const adbId = await getAdbId(parsedConfig.device);
|
|
20
|
-
if (!adbId) {
|
|
21
|
-
throw new DeviceNotFoundError(getDeviceName(parsedConfig.device));
|
|
22
|
-
}
|
|
23
|
-
const isInstalled = await adb.isAppInstalled(adbId, parsedConfig.bundleId);
|
|
24
|
-
if (!isInstalled) {
|
|
25
|
-
throw new AppNotInstalledError(parsedConfig.bundleId, getDeviceName(parsedConfig.device));
|
|
26
|
-
}
|
|
27
|
-
await Promise.all([
|
|
28
|
-
adb.reversePort(adbId, 8081),
|
|
29
|
-
adb.reversePort(adbId, 8080),
|
|
30
|
-
adb.reversePort(adbId, 3001),
|
|
31
|
-
]);
|
|
32
|
-
return {
|
|
33
|
-
startApp: async () => {
|
|
34
|
-
await adb.startApp(adbId, parsedConfig.bundleId, parsedConfig.activityName);
|
|
35
|
-
},
|
|
36
|
-
restartApp: async () => {
|
|
37
|
-
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
38
|
-
await adb.startApp(adbId, parsedConfig.bundleId, parsedConfig.activityName);
|
|
39
|
-
},
|
|
40
|
-
stopApp: async () => {
|
|
41
|
-
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
42
|
-
},
|
|
43
|
-
dispose: async () => {
|
|
44
|
-
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
},
|
|
12
|
+
name: 'android',
|
|
13
|
+
config,
|
|
14
|
+
runner: import.meta.resolve('./runner.js'),
|
|
48
15
|
});
|
package/dist/runner.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HarnessPlatformRunner } from '@react-native-harness/platforms';
|
|
2
|
+
import { Config } from '@react-native-harness/config';
|
|
3
|
+
import { type AndroidPlatformConfig } from './config.js';
|
|
4
|
+
declare const getAndroidRunner: (config: AndroidPlatformConfig, harnessConfig: Config) => Promise<HarnessPlatformRunner>;
|
|
5
|
+
export default getAndroidRunner;
|
|
6
|
+
//# sourceMappingURL=runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAKrB,QAAA,MAAM,gBAAgB,GACpB,QAAQ,qBAAqB,EAC7B,eAAe,MAAM,KACpB,OAAO,CAAC,qBAAqB,CA8C/B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/runner.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DeviceNotFoundError, AppNotInstalledError, } from '@react-native-harness/platforms';
|
|
2
|
+
import { AndroidPlatformConfigSchema, } from './config.js';
|
|
3
|
+
import { getAdbId } from './adb-id.js';
|
|
4
|
+
import * as adb from './adb.js';
|
|
5
|
+
import { getDeviceName } from './utils.js';
|
|
6
|
+
const getAndroidRunner = async (config, harnessConfig) => {
|
|
7
|
+
const parsedConfig = AndroidPlatformConfigSchema.parse(config);
|
|
8
|
+
const adbId = await getAdbId(parsedConfig.device);
|
|
9
|
+
if (!adbId) {
|
|
10
|
+
throw new DeviceNotFoundError(getDeviceName(parsedConfig.device));
|
|
11
|
+
}
|
|
12
|
+
const isInstalled = await adb.isAppInstalled(adbId, parsedConfig.bundleId);
|
|
13
|
+
if (!isInstalled) {
|
|
14
|
+
throw new AppNotInstalledError(parsedConfig.bundleId, getDeviceName(parsedConfig.device));
|
|
15
|
+
}
|
|
16
|
+
await Promise.all([
|
|
17
|
+
adb.reversePort(adbId, 8081),
|
|
18
|
+
adb.reversePort(adbId, 8080),
|
|
19
|
+
adb.reversePort(adbId, harnessConfig.webSocketPort),
|
|
20
|
+
]);
|
|
21
|
+
return {
|
|
22
|
+
startApp: async () => {
|
|
23
|
+
await adb.startApp(adbId, parsedConfig.bundleId, parsedConfig.activityName);
|
|
24
|
+
},
|
|
25
|
+
restartApp: async () => {
|
|
26
|
+
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
27
|
+
await adb.startApp(adbId, parsedConfig.bundleId, parsedConfig.activityName);
|
|
28
|
+
},
|
|
29
|
+
stopApp: async () => {
|
|
30
|
+
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
31
|
+
},
|
|
32
|
+
dispose: async () => {
|
|
33
|
+
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default getAndroidRunner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/tslib/modules/index.d.ts","../../tools/dist/abort.d.ts","../../../node_modules/picocolors/types.d.ts","../../../node_modules/picocolors/picocolors.d.ts","../../tools/dist/color.d.ts","../../tools/dist/logger.d.ts","../../../node_modules/@clack/core/dist/index.d.mts","../../../node_modules/@clack/prompts/dist/index.d.mts","../../tools/dist/prompts.d.ts","../../../node_modules/nano-spawn/source/index.d.ts","../../tools/dist/spawn.d.ts","../../tools/dist/react-native.d.ts","../../tools/dist/error.d.ts","../../tools/dist/index.d.ts","../src/adb.ts","../../../node_modules/zod/dist/types/v3/helpers/typealiases.d.ts","../../../node_modules/zod/dist/types/v3/helpers/util.d.ts","../../../node_modules/zod/dist/types/v3/zoderror.d.ts","../../../node_modules/zod/dist/types/v3/locales/en.d.ts","../../../node_modules/zod/dist/types/v3/errors.d.ts","../../../node_modules/zod/dist/types/v3/helpers/parseutil.d.ts","../../../node_modules/zod/dist/types/v3/helpers/enumutil.d.ts","../../../node_modules/zod/dist/types/v3/helpers/errorutil.d.ts","../../../node_modules/zod/dist/types/v3/helpers/partialutil.d.ts","../../../node_modules/zod/dist/types/v3/standard-schema.d.ts","../../../node_modules/zod/dist/types/v3/types.d.ts","../../../node_modules/zod/dist/types/v3/external.d.ts","../../../node_modules/zod/dist/types/v3/index.d.ts","../../../node_modules/zod/dist/types/index.d.ts","../src/config.ts","../src/adb-id.ts","../../platforms/dist/types.d.ts","../../platforms/dist/factory.d.ts","../../platforms/dist/errors.d.ts","../../platforms/dist/index.d.ts","../src/utils.ts","../src/factory.ts","../src/index.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[129,132,144],[66,132,144],[98,144],[101,144],[102,107,135,144],[103,114,115,122,132,143,144],[103,104,114,122,144],[105,144],[106,107,115,123,144],[107,132,140,144],[108,110,114,122,144],[109,144],[110,111,144],[114,144],[112,114,144],[114,115,116,132,143,144],[114,115,116,129,132,135,144],[144,148],[144],[110,114,117,122,132,143,144],[114,115,117,118,122,132,140,143,144],[117,119,132,140,143,144],[98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150],[114,120,144],[121,143,144],[110,114,122,132,144],[123,144],[124,144],[101,125,144],[126,142,144,148],[127,144],[128,144],[114,129,130,144],[129,131,144,146],[102,114,132,133,134,135,144],[102,132,134,144],[132,133,144],[135,144],[136,144],[114,138,139,144],[138,139,144],[107,122,132,140,144],[141,144],[122,142,144],[102,117,128,143,144],[107,144],[132,144,145],[144,146],[144,147],[102,107,114,116,125,132,143,144,146,148],[132,144,149],[103,144],[62,144],[59,144],[87,144],[77,78,144],[75,76,77,79,80,85,144],[76,77,144],[85,144],[86,144],[77,144],[75,76,77,80,81,82,83,84,144],[75,76,87,144],[60,74,89,144],[60,73,144],[60,88,144],[60,74,89,90,94,95,144],[60,89,96,144],[60,89,144],[91,144],[91,92,93,144],[63,144],[61,64,65,68,70,71,72,144],[67,144],[69,144]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"b8f34dd1757f68e03262b1ca3ddfa668a855b872f8bdd5224d6f993a7b37dc2c","impliedFormat":99},{"version":"3e442c402123b264ccdf7123c1366e1473d9c39f5db69373e938284fc01c49ce","impliedFormat":99},{"version":"590595c1230ebb7c43ebac51b2b2da956a719b213355b4358e2a6b16a8b5936c","impliedFormat":1},{"version":"8c5f0739f00f89f89b03a1fe6658c6d78000d7ebd7f556f0f8d6908fa679de35","impliedFormat":1},{"version":"a15c0df1ac9b2a4d833490522614fc57ae97d70a07bf4964a4d6bb73f3f56399","impliedFormat":99},{"version":"e4cead4a8596a6f051c36ef184f5fb6f117232eefdc1f98ef9847c9efc2c8911","impliedFormat":99},{"version":"df7225806785ade68c6cf2b1cf3ba0d1c7fed1ee7605f34e37d4a901f1d29fd2","impliedFormat":99},{"version":"6bf8a7596880ff1b8f8fd52ee8de8000df00c0c98adacb0b0af0e6a3f16cabe6","impliedFormat":99},{"version":"8af66ec621033f41ccb2bcee775e883c2649fa0db71192fe863185b0281082a6","impliedFormat":99},{"version":"9d4af7bde3e345d3071b5fefbece2d3482971aae89ded50f302c8cb246e81581","impliedFormat":99},{"version":"f3eb748185038bca941a02994b1b0b5803c0a2ce818b8a7d72a24a6b814f5d3e","impliedFormat":99},{"version":"2ba26b5ab00dd3495eeb733cdb46d939a8eb755a395a91169158cdf962aff6c3","impliedFormat":99},{"version":"d6fe58ebff353af75db3986d9ab2b4b57258ad5af3f4b65cdb2100fd47df5425","impliedFormat":99},{"version":"299207f09ec026435d722d979effd6556f7facc6c16256c3c00f797648eed0cb","impliedFormat":99},{"version":"d27b1d400e71e2e22be0d05a298300b665d3a5d174d25d5923885bf687010041","signature":"ba499610d6956d1d7ded1dc7d4c67589ea8c9e308a7d90257271eb70904dc922","impliedFormat":99},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","impliedFormat":1},{"version":"c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","impliedFormat":1},{"version":"8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","impliedFormat":1},{"version":"754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","impliedFormat":1},{"version":"5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","impliedFormat":1},{"version":"3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","impliedFormat":1},{"version":"d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995","impliedFormat":1},{"version":"b679c0e969b29ac5edd28ee335a95c619a852c8ff2dbd594b6a2a841aeb951c3","signature":"b04500f6e91e3a0f4029fe56bace62ae51db2fd319194c2b007db0f283b89645","impliedFormat":99},{"version":"9077fea0a539a259a65e6ceece948a4af51a652cfc6acdaa2794b9d85c5c0392","signature":"e53fc91ad95a190cc73c8d20660ac0cecc1edc5cff2d9182cfdacfacd003f390","impliedFormat":99},{"version":"e37270191d6e04dfa60d210394e75002e62398159beec672035a54c9d2827c40","impliedFormat":99},{"version":"fc61bab1427ed7f1e75aaff1d6893859f0ad5832db78e173c7e59abc4b3eebf2","impliedFormat":99},{"version":"742dbfad4257af069a16003c1a48a083697b6fe1c9902ba4a3a54bc08ce8db84","impliedFormat":99},{"version":"6e24348814b735daaa863c787ee558d05db2c9fe90447e97d474ba9f60dfb171","impliedFormat":99},{"version":"2193846c72c49c70ce11decdadcab597d3a9cc7d85a82d4abded08bdcad44b4e","signature":"31f1ba7b735bee2ead478a15d62fc912755d2722ddb983e6dd262f3855c2b479","impliedFormat":99},{"version":"177b7fb9a01a6540f740d7faafa5133724c9816c8c774a59501808da522722b5","signature":"932035e0a133866ed5407546e7b8d1f5b3bbe44b3eb6f940d797325c25d4d15d","impliedFormat":99},{"version":"ad4a0c3ebb8d9802e835c01e8716af38e6a300924ea5ec0b6de1cf0081de2fe4","signature":"2e246b6a500777e4b7c2d2043f9a0a02d588b140582298a6cdcd1892a30704c9","impliedFormat":99},{"version":"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"f749812878fecfa53cfc13b36e5d35086fb6377983a9df44175da83ccc23af1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3","impliedFormat":1},{"version":"211e3f15fbced4ab4be19f49ffa990b9ff20d749d33b65ff753be691e7616239","affectsGlobalScope":true,"impliedFormat":1},{"version":"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","impliedFormat":1},{"version":"5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713","impliedFormat":1},{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","impliedFormat":1},{"version":"bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","impliedFormat":1},{"version":"1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","impliedFormat":1},{"version":"4eaff3d8e10676fd7913d8c108890e71c688e1e7d52f6d1d55c39514f493dc47","impliedFormat":1},{"version":"14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","impliedFormat":1},{"version":"5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea","impliedFormat":1},{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true,"impliedFormat":1},{"version":"00dee7cdca8b8420c47ea4a31a34b8e8294013ebc4f463fd941e867e7bf05029","affectsGlobalScope":true,"impliedFormat":1},{"version":"3256f3cccd578f9e7fe3a28096c505634bebcee8afb738ffa99368e536ca3a0b","impliedFormat":1},{"version":"1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","impliedFormat":1},{"version":"7f138842074d0a40681775af008c8452093b68c383c94de31759e853c6d06b5c","impliedFormat":1},{"version":"a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","impliedFormat":1},{"version":"8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","impliedFormat":1},{"version":"2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58","impliedFormat":1},{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true,"impliedFormat":1},{"version":"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","impliedFormat":1},{"version":"7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","impliedFormat":1},{"version":"b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30","impliedFormat":1},{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","impliedFormat":1},{"version":"210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","impliedFormat":1},{"version":"36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","impliedFormat":1},{"version":"0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","impliedFormat":1},{"version":"25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","impliedFormat":1},{"version":"4f3fdeba4e28e21aa719c081b8dc8f91d47e12e773389b9d35679c08151c9d37","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","impliedFormat":1},{"version":"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","impliedFormat":1},{"version":"23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","impliedFormat":1},{"version":"f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7","impliedFormat":1},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","impliedFormat":1},{"version":"3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","impliedFormat":1},{"version":"5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2","impliedFormat":1},{"version":"a73ae8c0e62103bb9e21bb6538700881bf135b9a8b125b857ec68edfa0da4ed3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e1c1b2fbe236bf7ee3e342eeae7e20efb8988a0ac7da1cbbfa2c1f66b76c3423","affectsGlobalScope":true,"impliedFormat":1},{"version":"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","impliedFormat":1},{"version":"0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","impliedFormat":1},{"version":"e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","impliedFormat":1},{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6dd3dba8e665ac43d279e0fdf5219edda0eed69b5e9a5061f46cd6a65c4f7a1","impliedFormat":1}],"root":[74,89,90,[95,97]],"options":{"composite":true,"declarationMap":true,"emitDeclarationOnly":false,"importHelpers":true,"module":199,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":9,"tsBuildInfoFile":"./tsconfig.lib.tsbuildinfo"},"referencedMap":[[66,1],[67,2],[98,3],[99,3],[101,4],[102,5],[103,6],[104,7],[105,8],[106,9],[107,10],[108,11],[109,12],[110,13],[111,13],[113,14],[112,15],[114,14],[115,16],[116,17],[100,18],[150,19],[117,20],[118,21],[119,22],[151,23],[120,24],[121,25],[122,26],[123,27],[124,28],[125,29],[126,30],[127,31],[128,32],[129,33],[130,33],[131,34],[132,35],[134,36],[133,37],[135,38],[136,39],[137,19],[138,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[69,52],[63,53],[62,19],[60,54],[59,19],[57,19],[58,19],[11,19],[10,19],[2,19],[12,19],[13,19],[14,19],[15,19],[16,19],[17,19],[18,19],[19,19],[3,19],[20,19],[21,19],[4,19],[22,19],[26,19],[23,19],[24,19],[25,19],[27,19],[28,19],[29,19],[5,19],[30,19],[31,19],[32,19],[33,19],[6,19],[37,19],[34,19],[35,19],[36,19],[38,19],[7,19],[39,19],[44,19],[45,19],[40,19],[41,19],[42,19],[43,19],[8,19],[49,19],[46,19],[47,19],[48,19],[50,19],[9,19],[51,19],[52,19],[53,19],[55,19],[54,19],[1,19],[56,19],[88,55],[79,56],[86,57],[81,19],[82,19],[80,58],[83,59],[75,19],[76,19],[87,60],[78,61],[84,19],[85,62],[77,63],[90,64],[74,65],[89,66],[96,67],[97,68],[95,69],[93,19],[92,70],[94,71],[91,19],[61,19],[64,72],[72,19],[73,73],[65,19],[68,74],[71,19],[70,75]],"latestChangedDtsFile":"./adb.d.ts","version":"5.8.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/tslib/modules/index.d.ts","../../tools/dist/abort.d.ts","../../../node_modules/picocolors/types.d.ts","../../../node_modules/picocolors/picocolors.d.ts","../../tools/dist/color.d.ts","../../tools/dist/logger.d.ts","../../../node_modules/@clack/core/dist/index.d.mts","../../../node_modules/@clack/prompts/dist/index.d.mts","../../tools/dist/prompts.d.ts","../../../node_modules/nano-spawn/source/index.d.ts","../../tools/dist/spawn.d.ts","../../tools/dist/react-native.d.ts","../../tools/dist/error.d.ts","../../tools/dist/events.d.ts","../../tools/dist/index.d.ts","../src/adb.ts","../../../node_modules/zod/dist/types/v3/helpers/typealiases.d.ts","../../../node_modules/zod/dist/types/v3/helpers/util.d.ts","../../../node_modules/zod/dist/types/v3/zoderror.d.ts","../../../node_modules/zod/dist/types/v3/locales/en.d.ts","../../../node_modules/zod/dist/types/v3/errors.d.ts","../../../node_modules/zod/dist/types/v3/helpers/parseutil.d.ts","../../../node_modules/zod/dist/types/v3/helpers/enumutil.d.ts","../../../node_modules/zod/dist/types/v3/helpers/errorutil.d.ts","../../../node_modules/zod/dist/types/v3/helpers/partialutil.d.ts","../../../node_modules/zod/dist/types/v3/standard-schema.d.ts","../../../node_modules/zod/dist/types/v3/types.d.ts","../../../node_modules/zod/dist/types/v3/external.d.ts","../../../node_modules/zod/dist/types/v3/index.d.ts","../../../node_modules/zod/dist/types/index.d.ts","../src/config.ts","../src/adb-id.ts","../../platforms/dist/types.d.ts","../../platforms/dist/errors.d.ts","../../platforms/dist/index.d.ts","../src/factory.ts","../src/index.ts","../../config/src/types.ts","../../config/src/errors.ts","../../config/src/reader.ts","../../config/src/index.ts","../src/utils.ts","../src/runner.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[107,154,180,184],[65,107,154,184],[107,151,154],[107,153,154],[154],[107,154,159,187],[107,154,155,160,165,173,184,195],[107,154,155,156,165,173],[107,154],[102,103,104,107,154],[107,154,157,196],[107,154,158,159,166,174],[107,154,159,184,192],[107,154,160,162,165,173],[107,153,154,161],[107,154,162,163],[107,154,164,165],[107,153,154,165],[107,154,165,166,167,184,195],[107,154,165,166,167,180,184,187],[107,154,162,165,168,173,184,195],[107,154,165,166,168,169,173,184,192,195],[107,154,168,170,184,192,195],[105,106,107,108,109,110,111,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201],[107,154,165,171],[107,154,172,195,200],[107,154,162,165,173,184],[107,154,174],[107,154,175],[107,153,154,176],[107,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201],[107,154,178],[107,154,179],[107,154,165,180,181],[107,154,180,182,196,198],[107,154,165,184,185,187],[107,154,186,187],[107,154,184,185],[107,154,187],[107,154,188],[107,151,154,184,189],[107,154,165,190,191],[107,154,190,191],[107,154,159,173,184,192],[107,154,193],[107,154,173,194],[107,154,168,179,195],[107,154,159,196],[107,154,184,197],[107,154,172,198],[107,154,199],[107,149,154],[107,149,154,165,167,176,184,187,195,198,200],[107,154,184,201],[107,154,155],[61,107,154],[58,107,154],[107,121,125,154,195],[107,121,154,184,195],[107,116,154],[107,118,121,154,192,195],[107,154,173,192],[107,154,202],[107,116,154,202],[107,118,121,154,173,195],[107,113,114,117,120,154,165,184,195],[107,121,128,154],[107,113,119,154],[107,121,142,143,154],[107,117,121,154,187,195,202],[107,142,154,202],[107,115,116,154,202],[107,121,154],[107,115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,143,144,145,146,147,148,154],[107,121,136,154],[107,121,128,129,154],[107,119,121,129,130,154],[107,120,154],[107,113,116,121,154],[107,121,125,129,130,154],[107,125,154],[107,119,121,124,154,195],[107,113,118,121,128,154],[107,154,184],[107,116,121,142,154,200,202],[87,107,154],[77,78,107,154],[75,76,77,79,80,85,107,154],[76,77,107,154],[85,107,154],[86,107,154],[77,107,154],[75,76,77,80,81,82,83,84,107,154],[75,76,87,107,154],[59,73,107,154],[59,96,97,98,107,154],[59,88,96,97,107,154,166,172,175],[59,88,107,154],[59,74,89,107,154],[59,89,93,107,154],[59,89,94,107,154],[59,74,89,90,93,99,100,107,154],[59,89,107,154],[91,92,107,154],[62,107,154],[60,63,64,67,69,70,71,72,107,154],[66,107,154],[68,107,154]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"b8f34dd1757f68e03262b1ca3ddfa668a855b872f8bdd5224d6f993a7b37dc2c","impliedFormat":99},{"version":"3e442c402123b264ccdf7123c1366e1473d9c39f5db69373e938284fc01c49ce","impliedFormat":99},{"version":"590595c1230ebb7c43ebac51b2b2da956a719b213355b4358e2a6b16a8b5936c","impliedFormat":1},{"version":"8c5f0739f00f89f89b03a1fe6658c6d78000d7ebd7f556f0f8d6908fa679de35","impliedFormat":1},{"version":"a15c0df1ac9b2a4d833490522614fc57ae97d70a07bf4964a4d6bb73f3f56399","impliedFormat":99},{"version":"e4cead4a8596a6f051c36ef184f5fb6f117232eefdc1f98ef9847c9efc2c8911","impliedFormat":99},{"version":"df7225806785ade68c6cf2b1cf3ba0d1c7fed1ee7605f34e37d4a901f1d29fd2","impliedFormat":99},{"version":"6bf8a7596880ff1b8f8fd52ee8de8000df00c0c98adacb0b0af0e6a3f16cabe6","impliedFormat":99},{"version":"8af66ec621033f41ccb2bcee775e883c2649fa0db71192fe863185b0281082a6","impliedFormat":99},{"version":"9d4af7bde3e345d3071b5fefbece2d3482971aae89ded50f302c8cb246e81581","impliedFormat":99},{"version":"f3eb748185038bca941a02994b1b0b5803c0a2ce818b8a7d72a24a6b814f5d3e","impliedFormat":99},{"version":"2ba26b5ab00dd3495eeb733cdb46d939a8eb755a395a91169158cdf962aff6c3","impliedFormat":99},{"version":"d6fe58ebff353af75db3986d9ab2b4b57258ad5af3f4b65cdb2100fd47df5425","impliedFormat":99},{"version":"be2aad2491a08960c8fb77248acbe4b76e77812ac1c475c48fec40c18093d866","impliedFormat":99},{"version":"da7dd3300bafacd96a8bc857abc00c099369755e3473a45b14f52921c4a4af31","impliedFormat":99},{"version":"c099b8d7c9309a28818fb014286c80b06007b5e96e8435ea4510a63402cbae7b","signature":"d4c074e02efac7ac7184252c3c50c798a91a1473dc7e7f640ef2722c559ba701","impliedFormat":99},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","impliedFormat":1},{"version":"c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","impliedFormat":1},{"version":"8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","impliedFormat":1},{"version":"754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","impliedFormat":1},{"version":"5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","impliedFormat":1},{"version":"3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","impliedFormat":1},{"version":"d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995","impliedFormat":1},{"version":"16e92226c63e22f498b15a7617f875bf4f5b884275c7862a9dc2427f454c245a","signature":"38b249957b6d7bd9e2e9ad7155b9b0a83088b65925188e99d35969a67a18acde","impliedFormat":99},{"version":"c292b977f89585f64e0f711337a97578582e39fd9fbd0294e7061adb44696ffd","signature":"e53fc91ad95a190cc73c8d20660ac0cecc1edc5cff2d9182cfdacfacd003f390","impliedFormat":99},{"version":"05767eee30cf2e8935988dd7c03b85710f25c90271a1b525daf99e14c6f443ea","impliedFormat":99},{"version":"742dbfad4257af069a16003c1a48a083697b6fe1c9902ba4a3a54bc08ce8db84","impliedFormat":99},{"version":"5e6b9d47766951c3089400bf41ff0d364d35ad6b788ae9f246878ce53d378b1a","impliedFormat":99},{"version":"02a262be211c04234444397ade045e4a94df760143baad0a0083de7480c4a288","signature":"b2b2260859ff92d718f3c02822eb9ae27b743c51a8ef5cdd75c71adec090d053","impliedFormat":99},{"version":"ad4a0c3ebb8d9802e835c01e8716af38e6a300924ea5ec0b6de1cf0081de2fe4","signature":"2e246b6a500777e4b7c2d2043f9a0a02d588b140582298a6cdcd1892a30704c9","impliedFormat":99},{"version":"c39d1f2a863b42eb204803be31986498e2a136c82881677c85d4edbe88dbffe8","impliedFormat":99},{"version":"47bbd85e387bed18b30e594b0d132fa1ec536bb64970075e394755ae9b022834","impliedFormat":99},{"version":"825460a47b77a86f7f95499a321bd9de3accd188d8e0a50858cbb9d9f0363c7d","impliedFormat":99},{"version":"cd8ce64fc4fe35d60c928a04159953be9d9ad5533b40f9b31ff6e8741964ebef","impliedFormat":99},{"version":"2193846c72c49c70ce11decdadcab597d3a9cc7d85a82d4abded08bdcad44b4e","signature":"31f1ba7b735bee2ead478a15d62fc912755d2722ddb983e6dd262f3855c2b479","impliedFormat":99},{"version":"f11538b26ab0be34421760ab58cd5d628327a42f7ba49af3d9e38cd740d69445","signature":"a35d79887923210388a5e3ce34c354eac94987129a15dae2095b251994b0a026","impliedFormat":99},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"2cbe0621042e2a68c7cbce5dfed3906a1862a16a7d496010636cdbdb91341c0f","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"2fd4c143eff88dabb57701e6a40e02a4dbc36d5eb1362e7964d32028056a782b","impliedFormat":1},{"version":"714435130b9015fae551788df2a88038471a5a11eb471f27c4ede86552842bc9","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"27fdb0da0daf3b337c5530c5f266efe046a6ceb606e395b346974e4360c36419","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"00877fef624f3171c2e44944fb63a55e2a9f9120d7c8b5eb4181c263c9a077cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"47ab634529c5955b6ad793474ae188fce3e6163e3a3fb5edd7e0e48f14435333","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"0225ecb9ed86bdb7a2c7fd01f1556906902929377b44483dc4b83e03b3ef227d","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"f9ab232778f2842ffd6955f88b1049982fa2ecb764d129ee4893cbc290f41977","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"05db535df8bdc30d9116fe754a3473d1b6479afbc14ae8eb18b605c62677d518","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1}],"root":[74,89,90,94,95,100,101],"options":{"composite":true,"declarationMap":true,"emitDeclarationOnly":false,"importHelpers":true,"module":199,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":9,"tsBuildInfoFile":"./tsconfig.lib.tsbuildinfo"},"referencedMap":[[65,1],[66,2],[151,3],[152,3],[153,4],[107,5],[154,6],[155,7],[156,8],[102,9],[105,10],[103,9],[104,9],[157,11],[158,12],[159,13],[160,14],[161,15],[162,16],[163,16],[164,17],[165,18],[166,19],[167,20],[108,9],[106,9],[168,21],[169,22],[170,23],[202,24],[171,25],[172,26],[173,27],[174,28],[175,29],[176,30],[177,31],[178,32],[179,33],[180,34],[181,34],[182,35],[183,9],[184,36],[186,37],[185,38],[187,39],[188,40],[189,41],[190,42],[191,43],[192,44],[193,45],[194,46],[195,47],[196,48],[197,49],[198,50],[199,51],[109,9],[110,9],[111,9],[150,52],[200,53],[201,54],[112,9],[68,55],[62,56],[61,9],[59,57],[58,9],[56,9],[57,9],[11,9],[10,9],[2,9],[12,9],[13,9],[14,9],[15,9],[16,9],[17,9],[18,9],[19,9],[3,9],[20,9],[21,9],[4,9],[22,9],[26,9],[23,9],[24,9],[25,9],[27,9],[28,9],[29,9],[5,9],[30,9],[31,9],[32,9],[33,9],[6,9],[37,9],[34,9],[35,9],[36,9],[38,9],[7,9],[39,9],[44,9],[45,9],[40,9],[41,9],[42,9],[43,9],[8,9],[49,9],[46,9],[47,9],[48,9],[50,9],[9,9],[51,9],[52,9],[53,9],[55,9],[54,9],[1,9],[128,58],[138,59],[127,58],[148,60],[119,61],[118,62],[147,63],[141,64],[146,65],[121,66],[135,67],[120,68],[144,69],[116,70],[115,63],[145,71],[117,72],[122,73],[123,9],[126,73],[113,9],[149,74],[139,75],[130,76],[131,77],[133,78],[129,79],[132,80],[142,63],[124,81],[125,82],[134,83],[114,84],[137,75],[136,73],[140,9],[143,85],[88,86],[79,87],[86,88],[81,9],[82,9],[80,89],[83,90],[75,9],[76,9],[87,91],[78,92],[84,9],[85,93],[77,94],[97,95],[99,96],[98,97],[96,98],[90,99],[74,95],[89,98],[94,100],[95,101],[101,102],[100,103],[92,9],[93,104],[91,9],[60,9],[63,105],[71,9],[72,9],[73,106],[64,9],[67,107],[70,9],[69,108]],"latestChangedDtsFile":"./runner.d.ts","version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-harness/platform-android",
|
|
3
3
|
"description": "Android platform for React Native Harness",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "^3.25.67",
|
|
20
20
|
"tslib": "^2.3.0",
|
|
21
|
-
"@react-native-harness/platforms": "1.0.0-alpha.
|
|
22
|
-
"@react-native-harness/tools": "1.0.0-alpha.
|
|
21
|
+
"@react-native-harness/platforms": "1.0.0-alpha.20",
|
|
22
|
+
"@react-native-harness/tools": "1.0.0-alpha.20",
|
|
23
|
+
"@react-native-harness/config": "1.0.0-alpha.20"
|
|
23
24
|
},
|
|
24
25
|
"license": "MIT"
|
|
25
26
|
}
|
package/src/adb-id.ts
CHANGED
|
@@ -23,9 +23,18 @@ export const getAdbId = async (
|
|
|
23
23
|
}
|
|
24
24
|
} else if (isAndroidDevicePhysical(device)) {
|
|
25
25
|
const deviceInfo = await adb.getDeviceInfo(adbId);
|
|
26
|
+
|
|
27
|
+
if (!deviceInfo) {
|
|
28
|
+
// This should never happen as we already checked if the device is physical.
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const normalizedManufacturer = deviceInfo.manufacturer?.toLowerCase() ?? '';
|
|
33
|
+
const normalizedModel = deviceInfo.model?.toLowerCase() ?? '';
|
|
34
|
+
|
|
26
35
|
if (
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
normalizedManufacturer === device.manufacturer &&
|
|
37
|
+
normalizedModel === device.model
|
|
29
38
|
) {
|
|
30
39
|
return adbId;
|
|
31
40
|
}
|
package/src/adb.ts
CHANGED
|
@@ -18,9 +18,10 @@ export const isAppInstalled = async (
|
|
|
18
18
|
|
|
19
19
|
export const reversePort = async (
|
|
20
20
|
adbId: string,
|
|
21
|
-
port: number
|
|
21
|
+
port: number,
|
|
22
|
+
hostPort: number = port
|
|
22
23
|
): Promise<void> => {
|
|
23
|
-
await spawn('adb', ['-s', adbId, 'reverse', `tcp:${port}`, `tcp:${
|
|
24
|
+
await spawn('adb', ['-s', adbId, 'reverse', `tcp:${port}`, `tcp:${hostPort}`]);
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export const stopApp = async (
|
|
@@ -41,6 +42,10 @@ export const startApp = async (
|
|
|
41
42
|
'shell',
|
|
42
43
|
'am',
|
|
43
44
|
'start',
|
|
45
|
+
'-a',
|
|
46
|
+
'android.intent.action.MAIN',
|
|
47
|
+
'-c',
|
|
48
|
+
'android.intent.category.LAUNCHER',
|
|
44
49
|
'-n',
|
|
45
50
|
`${bundleId}/${activityName}`,
|
|
46
51
|
]);
|
package/src/config.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
export const AndroidEmulatorAVDConfigSchema = z.object({
|
|
4
|
+
apiLevel: z.number().min(1, 'API level is required'),
|
|
5
|
+
profile: z.string().min(1, 'Profile is required'),
|
|
6
|
+
diskSize: z.string().min(1, 'Disk size is required').default('1G'),
|
|
7
|
+
heapSize: z.string().min(1, 'Heap size is required').default('1G'),
|
|
8
|
+
});
|
|
9
|
+
|
|
3
10
|
export const AndroidEmulatorSchema = z.object({
|
|
4
11
|
type: z.literal('emulator'),
|
|
5
|
-
name: z.string().min(1, '
|
|
12
|
+
name: z.string().min(1, 'AVD name is required'),
|
|
13
|
+
avd: AndroidEmulatorAVDConfigSchema.optional(),
|
|
6
14
|
});
|
|
7
15
|
|
|
8
16
|
export const PhysicalAndroidDeviceSchema = z.object({
|
|
@@ -30,6 +38,9 @@ export type AndroidEmulator = z.infer<typeof AndroidEmulatorSchema>;
|
|
|
30
38
|
export type PhysicalAndroidDevice = z.infer<typeof PhysicalAndroidDeviceSchema>;
|
|
31
39
|
export type AndroidDevice = z.infer<typeof AndroidDeviceSchema>;
|
|
32
40
|
export type AndroidPlatformConfig = z.infer<typeof AndroidPlatformConfigSchema>;
|
|
41
|
+
export type AndroidEmulatorAVDConfig = z.infer<
|
|
42
|
+
typeof AndroidEmulatorAVDConfigSchema
|
|
43
|
+
>;
|
|
33
44
|
|
|
34
45
|
export const isAndroidDeviceEmulator = (
|
|
35
46
|
device: AndroidDevice
|
package/src/factory.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
+
import { HarnessPlatform } from '@react-native-harness/platforms';
|
|
1
2
|
import {
|
|
2
|
-
DeviceNotFoundError,
|
|
3
|
-
AppNotInstalledError,
|
|
4
|
-
HarnessPlatform,
|
|
5
|
-
} from '@react-native-harness/platforms';
|
|
6
|
-
import {
|
|
7
|
-
AndroidPlatformConfigSchema,
|
|
8
3
|
type AndroidEmulator,
|
|
9
4
|
type AndroidPlatformConfig,
|
|
10
5
|
type PhysicalAndroidDevice,
|
|
6
|
+
type AndroidEmulatorAVDConfig,
|
|
11
7
|
} from './config.js';
|
|
12
|
-
import { getAdbId } from './adb-id.js';
|
|
13
|
-
import * as adb from './adb.js';
|
|
14
|
-
import { getDeviceName } from './utils.js';
|
|
15
8
|
|
|
16
|
-
export const androidEmulator = (
|
|
9
|
+
export const androidEmulator = (
|
|
10
|
+
name: string,
|
|
11
|
+
avd?: AndroidEmulatorAVDConfig
|
|
12
|
+
): AndroidEmulator => ({
|
|
17
13
|
type: 'emulator',
|
|
18
14
|
name,
|
|
15
|
+
avd,
|
|
19
16
|
});
|
|
20
17
|
|
|
21
18
|
export const physicalAndroidDevice = (
|
|
@@ -29,53 +26,8 @@ export const physicalAndroidDevice = (
|
|
|
29
26
|
|
|
30
27
|
export const androidPlatform = (
|
|
31
28
|
config: AndroidPlatformConfig
|
|
32
|
-
): HarnessPlatform => ({
|
|
33
|
-
name:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const adbId = await getAdbId(parsedConfig.device);
|
|
37
|
-
|
|
38
|
-
if (!adbId) {
|
|
39
|
-
throw new DeviceNotFoundError(getDeviceName(parsedConfig.device));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const isInstalled = await adb.isAppInstalled(adbId, parsedConfig.bundleId);
|
|
43
|
-
|
|
44
|
-
if (!isInstalled) {
|
|
45
|
-
throw new AppNotInstalledError(
|
|
46
|
-
parsedConfig.bundleId,
|
|
47
|
-
getDeviceName(parsedConfig.device)
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
await Promise.all([
|
|
52
|
-
adb.reversePort(adbId, 8081),
|
|
53
|
-
adb.reversePort(adbId, 8080),
|
|
54
|
-
adb.reversePort(adbId, 3001),
|
|
55
|
-
]);
|
|
56
|
-
|
|
57
|
-
return {
|
|
58
|
-
startApp: async () => {
|
|
59
|
-
await adb.startApp(
|
|
60
|
-
adbId,
|
|
61
|
-
parsedConfig.bundleId,
|
|
62
|
-
parsedConfig.activityName
|
|
63
|
-
);
|
|
64
|
-
},
|
|
65
|
-
restartApp: async () => {
|
|
66
|
-
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
67
|
-
await adb.startApp(
|
|
68
|
-
adbId,
|
|
69
|
-
parsedConfig.bundleId,
|
|
70
|
-
parsedConfig.activityName
|
|
71
|
-
);
|
|
72
|
-
},
|
|
73
|
-
stopApp: async () => {
|
|
74
|
-
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
75
|
-
},
|
|
76
|
-
dispose: async () => {
|
|
77
|
-
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
},
|
|
29
|
+
): HarnessPlatform<AndroidPlatformConfig> => ({
|
|
30
|
+
name: 'android',
|
|
31
|
+
config,
|
|
32
|
+
runner: import.meta.resolve('./runner.js'),
|
|
81
33
|
});
|
package/src/runner.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DeviceNotFoundError,
|
|
3
|
+
AppNotInstalledError,
|
|
4
|
+
HarnessPlatformRunner,
|
|
5
|
+
} from '@react-native-harness/platforms';
|
|
6
|
+
import { Config } from '@react-native-harness/config';
|
|
7
|
+
import {
|
|
8
|
+
AndroidPlatformConfigSchema,
|
|
9
|
+
type AndroidPlatformConfig,
|
|
10
|
+
} from './config.js';
|
|
11
|
+
import { getAdbId } from './adb-id.js';
|
|
12
|
+
import * as adb from './adb.js';
|
|
13
|
+
import { getDeviceName } from './utils.js';
|
|
14
|
+
|
|
15
|
+
const getAndroidRunner = async (
|
|
16
|
+
config: AndroidPlatformConfig,
|
|
17
|
+
harnessConfig: Config
|
|
18
|
+
): Promise<HarnessPlatformRunner> => {
|
|
19
|
+
const parsedConfig = AndroidPlatformConfigSchema.parse(config);
|
|
20
|
+
const adbId = await getAdbId(parsedConfig.device);
|
|
21
|
+
|
|
22
|
+
if (!adbId) {
|
|
23
|
+
throw new DeviceNotFoundError(getDeviceName(parsedConfig.device));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const isInstalled = await adb.isAppInstalled(adbId, parsedConfig.bundleId);
|
|
27
|
+
|
|
28
|
+
if (!isInstalled) {
|
|
29
|
+
throw new AppNotInstalledError(
|
|
30
|
+
parsedConfig.bundleId,
|
|
31
|
+
getDeviceName(parsedConfig.device)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
await Promise.all([
|
|
36
|
+
adb.reversePort(adbId, 8081),
|
|
37
|
+
adb.reversePort(adbId, 8080),
|
|
38
|
+
adb.reversePort(adbId, harnessConfig.webSocketPort),
|
|
39
|
+
]);
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
startApp: async () => {
|
|
43
|
+
await adb.startApp(
|
|
44
|
+
adbId,
|
|
45
|
+
parsedConfig.bundleId,
|
|
46
|
+
parsedConfig.activityName
|
|
47
|
+
);
|
|
48
|
+
},
|
|
49
|
+
restartApp: async () => {
|
|
50
|
+
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
51
|
+
await adb.startApp(
|
|
52
|
+
adbId,
|
|
53
|
+
parsedConfig.bundleId,
|
|
54
|
+
parsedConfig.activityName
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
stopApp: async () => {
|
|
58
|
+
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
59
|
+
},
|
|
60
|
+
dispose: async () => {
|
|
61
|
+
await adb.stopApp(adbId, parsedConfig.bundleId);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default getAndroidRunner;
|