appium-uiautomator2-driver 2.4.8 → 2.6.0

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/package.json CHANGED
@@ -7,8 +7,8 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "2.4.8",
11
- "author": "appium",
10
+ "version": "2.6.0",
11
+ "author": "Appium Contributors",
12
12
  "license": "Apache-2.0",
13
13
  "repository": {
14
14
  "type": "git",
@@ -17,9 +17,20 @@
17
17
  "bugs": {
18
18
  "url": "https://github.com/appium/appium-uiautomator2-driver/issues"
19
19
  },
20
- "engines": [
21
- "node"
22
- ],
20
+ "engines": {
21
+ "node": ">=14",
22
+ "npm": ">=8"
23
+ },
24
+ "lint-staged": {
25
+ "*.js": [
26
+ "eslint --fix"
27
+ ]
28
+ },
29
+ "prettier": {
30
+ "bracketSpacing": false,
31
+ "printWidth": 100,
32
+ "singleQuote": true
33
+ },
23
34
  "appium": {
24
35
  "driverName": "uiautomator2",
25
36
  "automationName": "UiAutomator2",
@@ -41,10 +52,10 @@
41
52
  ],
42
53
  "dependencies": {
43
54
  "@babel/runtime": "^7.0.0",
44
- "appium-adb": "^9.10.2",
45
- "appium-android-driver": "^5.2.9",
46
- "appium-chromedriver": "^5.0.2",
47
- "appium-uiautomator2-server": "^5.6.0",
55
+ "appium-adb": "^9.10.9",
56
+ "appium-android-driver": "^5.4.0",
57
+ "appium-chromedriver": "^5.2.1",
58
+ "appium-uiautomator2-server": "^5.7.0",
48
59
  "asyncbox": "^2.3.1",
49
60
  "axios": "^0.x",
50
61
  "bluebird": "^3.5.1",
@@ -55,48 +66,41 @@
55
66
  "teen_process": "^2.0.0"
56
67
  },
57
68
  "scripts": {
58
- "prepare": "rimraf build && gulp prepublish",
59
- "transpile": "gulp transpile",
60
- "clean": "rm -rf node_modules && rm -f package-lock.json && npm install",
61
- "build": "gulp transpile",
62
- "test": "gulp once",
63
- "e2e-test": "gulp e2e-test",
64
- "watch": "gulp watch",
65
- "mocha": "mocha",
66
- "mocha:parallel": "mocha-parallel-tests",
67
- "coverage": "gulp coveralls",
68
- "lint": "gulp lint",
69
- "lint:fix": "gulp eslint --fix",
69
+ "build": "rimraf build && babel --out-dir=build/lib lib && babel --out-dir=build index.js",
70
+ "dev": "npm run build -- --watch",
71
+ "lint": "eslint .",
72
+ "lint:fix": "npm run lint -- --fix",
70
73
  "precommit-msg": "echo 'Pre-commit checks...' && exit 0",
71
- "e2e": "gulp transpile && mocha -t 6400000 -R spec build/test/functional/**/*-specs.js build/test/functional/*-specs.js",
72
- "e2e:find": "gulp transpile && mocha -t 6400000 -R spec build/test/functional/commands/find/*-specs.js",
73
- "e2e:keyboard": "gulp transpile && mocha -t 6400000 -R spec build/test/functional/commands/keyboard/*-specs.js",
74
- "e2e:commands": "gulp transpile && mocha -t 6400000 -R spec build/test/functional/commands/*-specs.js",
75
- "e2e:testobject": "cross-env TESTOBJECT_E2E_TESTS=true npm run e2e"
74
+ "precommit-lint": "lint-staged",
75
+ "prepare": "npm run build",
76
+ "test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.js\"",
77
+ "e2e-test:driver": "mocha --exit --timeout 10m \"./test/functional/driver-e2e-specs.js\""
76
78
  },
77
79
  "pre-commit": [
78
80
  "precommit-msg",
79
- "test"
81
+ "precommit-lint"
80
82
  ],
81
83
  "peerDependencies": {
82
84
  "appium": "^2.0.0-beta.40"
83
85
  },
84
86
  "devDependencies": {
85
- "@appium/gulp-plugins": "^7.0.0",
86
87
  "@appium/eslint-config-appium": "^6.0.0",
87
88
  "@appium/test-support": "^1.0.0",
88
- "@babel/core": "^7.16.0",
89
+ "@babel/cli": "^7.18.10",
90
+ "@babel/core": "^7.18.10",
91
+ "@babel/eslint-parser": "^7.18.9",
92
+ "@babel/plugin-transform-runtime": "^7.18.10",
93
+ "@babel/preset-env": "^7.18.10",
94
+ "@babel/register": "^7.18.9",
89
95
  "@semantic-release/git": "^10.0.1",
90
96
  "@xmldom/xmldom": "^0.x",
91
- "android-apidemos": "^4.0.0",
97
+ "android-apidemos": "^4.1.1",
98
+ "babel-plugin-source-map-support": "^2.2.0",
92
99
  "chai": "^4.1.0",
93
100
  "chai-as-promised": "^7.1.1",
94
101
  "eslint-config-prettier": "^8.5.0",
95
- "gps-demo-app": "^2.1.1",
96
- "gulp": "^4.0.0",
102
+ "lint-staged": "^13.0.3",
97
103
  "mocha": "^10.0.0",
98
- "mocha-junit-reporter": "^2.0.0",
99
- "mocha-multi-reporters": "^1.1.7",
100
104
  "pngjs": "^6.0.0",
101
105
  "pre-commit": "^1.2.2",
102
106
  "rimraf": "^3.0.0",