Addressed some earlier diff comments

Summary: Async processed review feedback from stack D31474919 (cfd44b592a) e.o. (decapitate)

Reviewed By: passy

Differential Revision: D31608309

fbshipit-source-id: 536b3c9350f7acc40530000ecf5e46d5b074d50f
This commit is contained in:
Michel Weststrate
2021-10-14 03:16:38 -07:00
committed by Facebook GitHub Bot
parent f307566318
commit f43ff73591
5 changed files with 44 additions and 39 deletions

View File

@@ -10,7 +10,7 @@
import fs from 'fs';
import os from 'os';
import yargs from 'yargs';
import {FlipperServerImpl, setFlipperServerConfig} from 'flipper-server-core';
import {FlipperServerImpl} from 'flipper-server-core';
import {
ClientDescription,
Logger,
@@ -63,20 +63,22 @@ async function start(deviceTitle: string, appName: string, pluginId: string) {
console.debug = () => {};
console.info = console.error;
// TODO: make these better overridable
setFlipperServerConfig({
enableAndroid: true,
androidHome: process.env.ANDROID_HOME || '/opt/android_sdk',
idbPath: '/usr/local/bin/idb',
enableIOS: true,
enablePhysicalIOS: true,
staticPath: path.resolve(__dirname, '..', '..', 'static'),
tmpPath: os.tmpdir(),
validWebSocketOrigins: [],
});
// TODO: initialise FB user manager to be able to do certificate exchange
const server = new FlipperServerImpl(logger);
const server = new FlipperServerImpl(
{
// TODO: make these better overridable
enableAndroid: true,
androidHome: process.env.ANDROID_HOME || '/opt/android_sdk',
idbPath: '/usr/local/bin/idb',
enableIOS: true,
enablePhysicalIOS: true,
staticPath: path.resolve(__dirname, '..', '..', 'static'),
tmpPath: os.tmpdir(),
validWebSocketOrigins: [],
},
logger,
);
logger.info(
`Waiting for device '${deviceTitle}' client '${appName}' plugin '${pluginId}' ...`,