appium-android-driver 5.0.15 → 5.1.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/build/index.js +2 -28
- package/build/lib/android-helpers.js +2 -2
- package/build/lib/bootstrap.js +6 -6
- package/build/lib/commands/actions.js +2 -2
- package/build/lib/commands/alert.js +6 -6
- package/build/lib/commands/app-management.js +4 -4
- package/build/lib/commands/context.js +4 -4
- package/build/lib/commands/element.js +2 -2
- package/build/lib/commands/emu-console.js +3 -3
- package/build/lib/commands/execute.js +5 -5
- package/build/lib/commands/file-actions.js +7 -7
- package/build/lib/commands/find.js +5 -5
- package/build/lib/commands/general.js +7 -7
- package/build/lib/commands/ime.js +3 -3
- package/build/lib/commands/intent.js +7 -7
- package/build/lib/commands/log.js +5 -5
- package/build/lib/commands/network.js +3 -3
- package/build/lib/commands/recordscreen.js +2 -2
- package/build/lib/commands/shell.js +4 -4
- package/build/lib/commands/streamscreen.js +2 -2
- package/build/lib/commands/touch.js +4 -4
- package/build/lib/driver.js +5 -5
- package/build/lib/logger.js +2 -2
- package/build/lib/uiautomator.js +2 -2
- package/build/lib/unlock-helpers.js +2 -2
- package/build/lib/webview-helpers.js +2 -2
- package/index.js +1 -26
- package/lib/android-helpers.js +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/commands/actions.js +1 -1
- package/lib/commands/alert.js +1 -1
- package/lib/commands/app-management.js +2 -2
- package/lib/commands/context.js +2 -2
- package/lib/commands/element.js +1 -1
- package/lib/commands/emu-console.js +1 -1
- package/lib/commands/execute.js +1 -1
- package/lib/commands/file-actions.js +2 -2
- package/lib/commands/find.js +2 -2
- package/lib/commands/general.js +2 -2
- package/lib/commands/ime.js +1 -1
- package/lib/commands/intent.js +1 -1
- package/lib/commands/log.js +1 -1
- package/lib/commands/network.js +1 -1
- package/lib/commands/recordscreen.js +1 -1
- package/lib/commands/shell.js +2 -2
- package/lib/commands/streamscreen.js +1 -1
- package/lib/commands/touch.js +2 -2
- package/lib/driver.js +2 -2
- package/lib/logger.js +1 -1
- package/lib/uiautomator.js +1 -1
- package/lib/unlock-helpers.js +1 -1
- package/lib/webview-helpers.js +1 -1
- package/package.json +5 -3
- package/build/lib/server.js +0 -34
- package/lib/server.js +0 -14
package/lib/driver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseDriver, DeviceSettings } from '
|
|
1
|
+
import { BaseDriver, DeviceSettings } from 'appium/driver';
|
|
2
2
|
import desiredConstraints from './desired-caps';
|
|
3
3
|
import commands from './commands/index';
|
|
4
4
|
import {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from './android-helpers';
|
|
8
8
|
import _ from 'lodash';
|
|
9
9
|
import { DEFAULT_ADB_PORT } from 'appium-adb';
|
|
10
|
-
import { fs, tempDir, util } from '
|
|
10
|
+
import { fs, tempDir, util } from 'appium/support';
|
|
11
11
|
import { retryInterval } from 'asyncbox';
|
|
12
12
|
import { SharedPrefsBuilder } from 'shared-preferences-builder';
|
|
13
13
|
import B from 'bluebird';
|
package/lib/logger.js
CHANGED
package/lib/uiautomator.js
CHANGED
package/lib/unlock-helpers.js
CHANGED
package/lib/webview-helpers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import logger from './logger';
|
|
3
3
|
import axios from 'axios';
|
|
4
|
-
import { util } from '
|
|
4
|
+
import { util } from 'appium/support';
|
|
5
5
|
import { findAPortNotInUse } from 'portscanner';
|
|
6
6
|
import LRU from 'lru-cache';
|
|
7
7
|
import B from 'bluebird';
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"mobile",
|
|
10
10
|
"mobile testing"
|
|
11
11
|
],
|
|
12
|
-
"version": "5.0
|
|
12
|
+
"version": "5.1.0",
|
|
13
13
|
"author": "appium",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"repository": {
|
|
@@ -35,8 +35,6 @@
|
|
|
35
35
|
"bootstrap/bin/AppiumBootstrap.jar"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@appium/base-driver": "^8.5.2",
|
|
39
|
-
"@appium/support": "^2.58.0",
|
|
40
38
|
"@babel/runtime": "^7.0.0",
|
|
41
39
|
"appium-adb": "^9.6.0",
|
|
42
40
|
"appium-chromedriver": "^5.0.1",
|
|
@@ -76,6 +74,9 @@
|
|
|
76
74
|
"precommit-msg",
|
|
77
75
|
"precommit-test"
|
|
78
76
|
],
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"appium": "^2.0.0-beta.40"
|
|
79
|
+
},
|
|
79
80
|
"devDependencies": {
|
|
80
81
|
"@appium/gulp-plugins": "^7.0.0",
|
|
81
82
|
"@appium/eslint-config-appium": "^6.0.0",
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
"@babel/eslint-parser": "^7.16.3",
|
|
85
86
|
"@semantic-release/git": "^10.0.1",
|
|
86
87
|
"@xmldom/xmldom": "^0.x",
|
|
88
|
+
"appium": "^2.0.0-beta.40",
|
|
87
89
|
"android-apidemos": "^4.0.0",
|
|
88
90
|
"chai": "^4.1.2",
|
|
89
91
|
"chai-as-promised": "^7.1.1",
|
package/build/lib/server.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.startServer = startServer;
|
|
9
|
-
|
|
10
|
-
require("source-map-support/register");
|
|
11
|
-
|
|
12
|
-
var _logger = _interopRequireDefault(require("./logger"));
|
|
13
|
-
|
|
14
|
-
var _baseDriver = require("@appium/base-driver");
|
|
15
|
-
|
|
16
|
-
var _driver = _interopRequireDefault(require("./driver"));
|
|
17
|
-
|
|
18
|
-
async function startServer(port, host) {
|
|
19
|
-
let d = new _driver.default();
|
|
20
|
-
let routeConfiguringFunction = (0, _baseDriver.routeConfiguringFunction)(d);
|
|
21
|
-
let server = await (0, _baseDriver.server)({
|
|
22
|
-
routeConfiguringFunction,
|
|
23
|
-
port,
|
|
24
|
-
hostname: host
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
_logger.default.info(`AndroidDriver server listening on http://${host}:${port}`);
|
|
28
|
-
|
|
29
|
-
d.server = server;
|
|
30
|
-
return server;
|
|
31
|
-
}require('source-map-support').install();
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGliL3NlcnZlci5qcyIsIm5hbWVzIjpbInN0YXJ0U2VydmVyIiwicG9ydCIsImhvc3QiLCJkIiwiQW5kcm9pZERyaXZlciIsInJvdXRlQ29uZmlndXJpbmdGdW5jdGlvbiIsIm1ha2VSb3V0ZXIiLCJzZXJ2ZXIiLCJiYXNlU2VydmVyIiwiaG9zdG5hbWUiLCJsb2ciLCJpbmZvIl0sInNvdXJjZVJvb3QiOiIuLi8uLiIsInNvdXJjZXMiOlsibGliL3NlcnZlci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbG9nIGZyb20gJy4vbG9nZ2VyJztcbmltcG9ydCB7IHNlcnZlciBhcyBiYXNlU2VydmVyLCByb3V0ZUNvbmZpZ3VyaW5nRnVuY3Rpb24gYXMgbWFrZVJvdXRlciB9IGZyb20gJ0BhcHBpdW0vYmFzZS1kcml2ZXInO1xuaW1wb3J0IEFuZHJvaWREcml2ZXIgZnJvbSAnLi9kcml2ZXInO1xuXG5hc3luYyBmdW5jdGlvbiBzdGFydFNlcnZlciAocG9ydCwgaG9zdCkge1xuICBsZXQgZCA9IG5ldyBBbmRyb2lkRHJpdmVyKCk7XG4gIGxldCByb3V0ZUNvbmZpZ3VyaW5nRnVuY3Rpb24gPSBtYWtlUm91dGVyKGQpO1xuICBsZXQgc2VydmVyID0gYXdhaXQgYmFzZVNlcnZlcih7cm91dGVDb25maWd1cmluZ0Z1bmN0aW9uLCBwb3J0LCBob3N0bmFtZTogaG9zdH0pO1xuICBsb2cuaW5mbyhgQW5kcm9pZERyaXZlciBzZXJ2ZXIgbGlzdGVuaW5nIG9uIGh0dHA6Ly8ke2hvc3R9OiR7cG9ydH1gKTtcbiAgZC5zZXJ2ZXIgPSBzZXJ2ZXI7XG4gIHJldHVybiBzZXJ2ZXI7XG59XG5cbmV4cG9ydCB7IHN0YXJ0U2VydmVyIH07XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FBRUEsZUFBZUEsV0FBZixDQUE0QkMsSUFBNUIsRUFBa0NDLElBQWxDLEVBQXdDO0VBQ3RDLElBQUlDLENBQUMsR0FBRyxJQUFJQyxlQUFKLEVBQVI7RUFDQSxJQUFJQyx3QkFBd0IsR0FBRyxJQUFBQyxvQ0FBQSxFQUFXSCxDQUFYLENBQS9CO0VBQ0EsSUFBSUksTUFBTSxHQUFHLE1BQU0sSUFBQUMsa0JBQUEsRUFBVztJQUFDSCx3QkFBRDtJQUEyQkosSUFBM0I7SUFBaUNRLFFBQVEsRUFBRVA7RUFBM0MsQ0FBWCxDQUFuQjs7RUFDQVEsZUFBQSxDQUFJQyxJQUFKLENBQVUsNENBQTJDVCxJQUFLLElBQUdELElBQUssRUFBbEU7O0VBQ0FFLENBQUMsQ0FBQ0ksTUFBRixHQUFXQSxNQUFYO0VBQ0EsT0FBT0EsTUFBUDtBQUNEIn0=
|
package/lib/server.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import log from './logger';
|
|
2
|
-
import { server as baseServer, routeConfiguringFunction as makeRouter } from '@appium/base-driver';
|
|
3
|
-
import AndroidDriver from './driver';
|
|
4
|
-
|
|
5
|
-
async function startServer (port, host) {
|
|
6
|
-
let d = new AndroidDriver();
|
|
7
|
-
let routeConfiguringFunction = makeRouter(d);
|
|
8
|
-
let server = await baseServer({routeConfiguringFunction, port, hostname: host});
|
|
9
|
-
log.info(`AndroidDriver server listening on http://${host}:${port}`);
|
|
10
|
-
d.server = server;
|
|
11
|
-
return server;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { startServer };
|