forked from appium-boneyard/appium-ios-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
64 lines (49 loc) · 1.83 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env node
// transpile:main
import yargs from 'yargs';
import { asyncify } from 'asyncbox';
import * as server from './lib/server';
const DEFAULT_HOST = "localhost";
const DEFAULT_PORT = 4723;
async function main () {
let port = yargs.argv.port || DEFAULT_PORT;
let host = yargs.argv.host || DEFAULT_HOST;
return await server.startServer(port, host);
}
if (require.main === module) {
asyncify(main);
}
import * as driver from './lib/driver';
import * as caps from './lib/desired-caps';
import * as commandIndex from './lib/commands/index';
import * as settings from './lib/settings';
import * as device from './lib/device';
import * as utils from './lib/utils';
import * as iwdp from './lib/iwdp';
import * as uiauto from './lib/uiauto/uiauto';
import * as instruments from './lib/instruments/index';
import * as context from './lib/commands/context';
const startHttpsServer = server.startHttpsServer;
const { IosDriver, defaultServerCaps } = driver;
const { desiredCapConstraints, desiredCapValidation } = caps;
const { commands, iosCommands } = commandIndex;
const { IWDP } = iwdp;
const { Instruments, instrumentsUtils } = instruments;
const { NATIVE_WIN, WEBVIEW_WIN } = context;
export {
IosDriver, desiredCapConstraints, desiredCapValidation, commands, iosCommands,
settings, device, defaultServerCaps, utils, IWDP, uiauto, Instruments,
instrumentsUtils, startHttpsServer, NATIVE_WIN, WEBVIEW_WIN,
};
export default IosDriver;
// ios log access
import Log from './lib/device-log/ios-log';
import CrashLog from './lib/device-log/ios-crash-log';
import PerformanceLog from './lib/device-log/ios-performance-log';
const IOSLog = Log;
const IOSCrashLog = CrashLog;
const IOSPerformanceLog = PerformanceLog;
export { IOSLog, IOSCrashLog, IOSPerformanceLog };
// app utils
import * as appUtils from './lib/app-utils';
export { appUtils };