Add MacDevice

Summary:
Add a desktop device on MacOS similar to WindowsDevice (see D8861986).
This makes it possible to view Oculus Service Log files on MacOS too.

Reviewed By: danielbuechele

Differential Revision: D15147501

fbshipit-source-id: 8a076964e6111bf3786818b7cbd8bb7f81c1498d
This commit is contained in:
Zoltán Gilián
2019-04-30 07:14:54 -07:00
committed by Facebook Github Bot
parent 8ba4feba66
commit d9bb1c5cf1
4 changed files with 33 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ export type DeviceExport = {|
logs: Array<DeviceLogEntry>,
|};
export type OS = 'iOS' | 'Android' | 'Windows';
export type OS = 'iOS' | 'Android' | 'Windows' | 'MacOS';
export default class BaseDevice {
constructor(serial: string, deviceType: DeviceType, title: string) {

22
src/devices/MacDevice.js Normal file
View File

@@ -0,0 +1,22 @@
/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
import BaseDevice from './BaseDevice.js';
export default class MacDevice extends BaseDevice {
os = 'MacOS';
constructor() {
super('', 'physical', 'desktop');
}
teardown() {}
supportedColumns(): Array<string> {
return [];
}
}