11#!/usr/bin/env node
22// transpile:main
3-
4- import { asyncify } from 'asyncbox' ;
5- import * as server from './lib/server' ;
6-
7-
8- const { startServer } = server ;
9-
10- const DEFAULT_HOST = 'localhost' ;
11- const DEFAULT_PORT = 4723 ;
12-
13- async function main ( ) {
14- const getArgValue = ( argName ) => {
15- const argIndex = process . argv . indexOf ( argName ) ;
16- return argIndex > 0 ? process . argv [ argIndex + 1 ] : null ;
17- } ;
18- const port = parseInt ( getArgValue ( '--port' ) , 10 ) || DEFAULT_PORT ;
19- const host = getArgValue ( '--host' ) || DEFAULT_HOST ;
20- return await startServer ( port , host ) ;
21- }
22-
23- if ( require . main === module ) {
24- asyncify ( main ) ;
25- }
26-
27-
283import * as driver from './lib/driver' ;
294import * as androidHelperIndex from './lib/android-helpers' ;
305import * as commandIndex from './lib/commands/index' ;
@@ -42,7 +17,7 @@ const { helpers: androidHelpers, SETTINGS_HELPER_PKG_ID } = androidHelperIndex;
4217
4318export default AndroidDriver ;
4419export {
45- androidHelpers , androidCommands , AndroidDriver , startServer ,
20+ androidHelpers , androidCommands , AndroidDriver ,
4621 commonCapConstraints , webviewHelpers , NATIVE_WIN , WEBVIEW_WIN ,
4722 WEBVIEW_BASE , CHROMIUM_WIN , SETTINGS_HELPER_PKG_ID ,
4823} ;
0 commit comments