appium-espresso-driver 2.5.0 → 2.7.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/README.md +47 -0
- package/build/index.js +10 -38
- package/build/lib/commands/execute.js +7 -4
- package/build/lib/commands/general.js +9 -9
- package/build/lib/driver.js +27 -12
- package/build/lib/espresso-runner.js +5 -5
- package/build/lib/logger.js +2 -2
- package/build/lib/server-builder.js +2 -2
- package/build/lib/utils.js +2 -2
- package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
- package/index.js +2 -26
- package/lib/commands/execute.js +5 -1
- package/lib/commands/general.js +2 -2
- package/lib/driver.js +20 -7
- package/lib/espresso-runner.js +2 -2
- package/lib/logger.js +1 -1
- package/lib/server-builder.js +1 -1
- package/lib/utils.js +1 -1
- package/npm-shrinkwrap.json +2755 -1019
- package/package.json +5 -4
- package/build/lib/server.js +0 -39
- package/lib/server.js +0 -18
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"automated testing",
|
|
8
8
|
"android"
|
|
9
9
|
],
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.7.0",
|
|
11
11
|
"author": "appium",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"repository": {
|
|
@@ -49,11 +49,9 @@
|
|
|
49
49
|
"!.DS_Store"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@appium/base-driver": "^8.5.2",
|
|
53
|
-
"@appium/support": "^2.58.0",
|
|
54
52
|
"@babel/runtime": "^7.4.3",
|
|
55
53
|
"appium-adb": "^9.1.0",
|
|
56
|
-
"appium-android-driver": "^5.
|
|
54
|
+
"appium-android-driver": "^5.2.1",
|
|
57
55
|
"asyncbox": "^2.3.1",
|
|
58
56
|
"bluebird": "^3.5.0",
|
|
59
57
|
"lodash": "^4.17.11",
|
|
@@ -83,6 +81,9 @@
|
|
|
83
81
|
"precommit-msg",
|
|
84
82
|
"precommit-test"
|
|
85
83
|
],
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"appium": "^2.0.0-beta.40"
|
|
86
|
+
},
|
|
86
87
|
"devDependencies": {
|
|
87
88
|
"@appium/gulp-plugins": "^7.0.0",
|
|
88
89
|
"@appium/eslint-config-appium": "^6.0.0",
|
package/build/lib/server.js
DELETED
|
@@ -1,39 +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.default = void 0;
|
|
9
|
-
exports.startServer = startServer;
|
|
10
|
-
|
|
11
|
-
require("source-map-support/register");
|
|
12
|
-
|
|
13
|
-
var _logger = _interopRequireDefault(require("./logger"));
|
|
14
|
-
|
|
15
|
-
var _baseDriver = require("@appium/base-driver");
|
|
16
|
-
|
|
17
|
-
var _driver = _interopRequireDefault(require("./driver"));
|
|
18
|
-
|
|
19
|
-
async function startServer(port, host) {
|
|
20
|
-
const d = new _driver.default({
|
|
21
|
-
port,
|
|
22
|
-
host
|
|
23
|
-
});
|
|
24
|
-
const server = (0, _baseDriver.server)({
|
|
25
|
-
routeConfiguringFunction: (0, _baseDriver.routeConfiguringFunction)(d),
|
|
26
|
-
port,
|
|
27
|
-
hostname: host
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
_logger.default.info(`Android Espresso Driver listening on http://${host}:${port}`);
|
|
31
|
-
|
|
32
|
-
return await server;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var _default = startServer;
|
|
36
|
-
exports.default = _default;require('source-map-support').install();
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGliL3NlcnZlci5qcyIsIm5hbWVzIjpbInN0YXJ0U2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UIsRUFBa0NDLElBQWxDLEVBQXdDO0VBQ3RDLE1BQU1DLENBQUMsR0FBRyxJQUFJQyxlQUFKLENBQW1CO0lBQUNILElBQUQ7SUFBT0M7RUFBUCxDQUFuQixDQUFWO0VBQ0EsTUFBTUcsTUFBTSxHQUFHLElBQUFDLGtCQUFBLEVBQVc7SUFDeEJDLHdCQUF3QixFQUFFLElBQUFBLG9DQUFBLEVBQXlCSixDQUF6QixDQURGO0lBRXhCRixJQUZ3QjtJQUd4Qk8sUUFBUSxFQUFFTjtFQUhjLENBQVgsQ0FBZjs7RUFLQU8sZUFBQSxDQUFJQyxJQUFKLENBQVUsK0NBQThDUixJQUFLLElBQUdELElBQUssRUFBckU7O0VBQ0EsT0FBTyxNQUFNSSxNQUFiO0FBQ0Q7O2VBR2NMLFcifQ==
|
package/lib/server.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import log from './logger';
|
|
2
|
-
import { server as baseServer, routeConfiguringFunction } from '@appium/base-driver';
|
|
3
|
-
import EspressoDriver from './driver';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
async function startServer (port, host) {
|
|
7
|
-
const d = new EspressoDriver({port, host});
|
|
8
|
-
const server = baseServer({
|
|
9
|
-
routeConfiguringFunction: routeConfiguringFunction(d),
|
|
10
|
-
port,
|
|
11
|
-
hostname: host,
|
|
12
|
-
});
|
|
13
|
-
log.info(`Android Espresso Driver listening on http://${host}:${port}`);
|
|
14
|
-
return await server;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { startServer };
|
|
18
|
-
export default startServer;
|