Move app/server to flipper-server-core
Summary: moved `app/src/server` to `flipper-server-core/src` and fixed any fallout from that (aka integration points I missed on the preparing diffs). Reviewed By: passy Differential Revision: D31541378 fbshipit-source-id: 8a7e0169ebefa515781f6e5e0f7b926415d4b7e9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3e7a6b1b4b
commit
d88b28330a
31
desktop/flipper-server-core/src/devices/DummyDevice.tsx
Normal file
31
desktop/flipper-server-core/src/devices/DummyDevice.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {DeviceOS} from 'flipper-common';
|
||||
import {FlipperServerImpl} from '../FlipperServerImpl';
|
||||
import {ServerDevice} from './ServerDevice';
|
||||
|
||||
/**
|
||||
* Use this device when you do not have the actual uuid of the device. For example, it is currently used in the case when, we do certificate exchange through WWW mode. In this mode we do not know the device id of the app and we generate a fake one.
|
||||
*/
|
||||
export default class DummyDevice extends ServerDevice {
|
||||
constructor(
|
||||
flipperServer: FlipperServerImpl,
|
||||
serial: string,
|
||||
title: string,
|
||||
os: DeviceOS,
|
||||
) {
|
||||
super(flipperServer, {
|
||||
serial,
|
||||
deviceType: 'dummy',
|
||||
title,
|
||||
os,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user