Summary: Centralise connectivity logging into a single place. By having all logs go through a single interface, then it becomes trivial to manipulate them as needed. In this change, this is not done. In subsequent diffs, logs will be dispatched via an event and will be visualised in the Connectivity Hub. Reviewed By: passy Differential Revision: D47185054 fbshipit-source-id: fb5eab98895be0c8f61fb9a77d3e66d6a8dbcb27
41 lines
1000 B
TypeScript
41 lines
1000 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and 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,
|
|
features: {
|
|
screenCaptureAvailable: false,
|
|
screenshotAvailable: false,
|
|
},
|
|
});
|
|
}
|
|
}
|