appium-uiautomator2-driver 5.0.0 → 5.0.2
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/CHANGELOG.md +17 -0
- package/build/lib/constraints.d.ts +1 -1
- package/build/lib/driver.d.ts +2 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +81 -70
- package/build/lib/driver.js.map +1 -1
- package/build/lib/types.d.ts +5 -1
- package/build/lib/types.d.ts.map +1 -1
- package/build/lib/uiautomator2.js +14 -0
- package/build/lib/uiautomator2.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/driver.ts +7 -1
- package/lib/types.ts +4 -1
- package/npm-shrinkwrap.json +172 -133
- package/package.json +4 -5
package/lib/driver.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
RouteMatcher,
|
|
9
9
|
SingularSessionData,
|
|
10
10
|
StringRecord,
|
|
11
|
+
SessionCapabilities,
|
|
11
12
|
} from '@appium/types';
|
|
12
13
|
import {DEFAULT_ADB_PORT} from 'appium-adb';
|
|
13
14
|
import {AndroidDriver, utils} from 'appium-android-driver';
|
|
@@ -25,7 +26,6 @@ import UIAUTOMATOR2_CONSTRAINTS, {type Uiautomator2Constraints} from './constrai
|
|
|
25
26
|
import {APKS_EXTENSION, APK_EXTENSION} from './extensions';
|
|
26
27
|
import {newMethodMap} from './method-map';
|
|
27
28
|
import { signApp } from './helpers';
|
|
28
|
-
import type { EmptyObject } from 'type-fest';
|
|
29
29
|
import type {
|
|
30
30
|
Uiautomator2Settings,
|
|
31
31
|
Uiautomator2DeviceDetails,
|
|
@@ -35,6 +35,7 @@ import type {
|
|
|
35
35
|
Uiautomator2SessionInfo,
|
|
36
36
|
Uiautomator2StartSessionOpts,
|
|
37
37
|
W3CUiautomator2DriverCaps,
|
|
38
|
+
EmptyObject,
|
|
38
39
|
} from './types';
|
|
39
40
|
import {SERVER_PACKAGE_ID, SERVER_TEST_PACKAGE_ID, UiAutomator2Server} from './uiautomator2';
|
|
40
41
|
import {
|
|
@@ -999,6 +1000,11 @@ class AndroidUiautomator2Driver
|
|
|
999
1000
|
return {...driverSettings, ...serverSettings} as any;
|
|
1000
1001
|
}
|
|
1001
1002
|
|
|
1003
|
+
// needed to make the typechecker happy
|
|
1004
|
+
async getAppiumSessionCapabilities(): Promise<SessionCapabilities<Uiautomator2Constraints>> {
|
|
1005
|
+
return (await super.getAppiumSessionCapabilities()) as SessionCapabilities<Uiautomator2Constraints>;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1002
1008
|
mobileGetActionHistory = mobileGetActionHistory;
|
|
1003
1009
|
mobileScheduleAction = mobileScheduleAction;
|
|
1004
1010
|
mobileUnscheduleAction = mobileUnscheduleAction;
|
package/lib/types.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type {DriverCaps, DriverOpts, W3CDriverCaps} from '@appium/types';
|
|
2
|
-
import type {EmptyObject} from 'type-fest';
|
|
3
2
|
import type {RelativeRect} from './commands/types';
|
|
4
3
|
import type {Uiautomator2Constraints} from './constraints';
|
|
5
4
|
|
|
5
|
+
declare const emptyObjectSymbol: unique symbol;
|
|
6
|
+
|
|
7
|
+
export type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
8
|
+
|
|
6
9
|
export type Uiautomator2DriverOpts = DriverOpts<Uiautomator2Constraints>;
|
|
7
10
|
|
|
8
11
|
export type Uiautomator2DriverCaps = DriverCaps<Uiautomator2Constraints>;
|