Import from exported file
Summary: This diff adds the feature to import the exported flipper data. It has the following features - Dialog to select the file - Merges the data with an existing store. Reviewed By: danielbuechele Differential Revision: D13901944 fbshipit-source-id: 1b9755735419732a34254bdc39d911bcb51ad8fe
This commit is contained in:
committed by
Facebook Github Bot
parent
259ae35284
commit
9bc54597cf
@@ -78,7 +78,7 @@ export default class AndroidDevice extends BaseDevice {
|
||||
});
|
||||
}
|
||||
|
||||
spawnShell(): DeviceShell {
|
||||
spawnShell(): ?DeviceShell {
|
||||
return child_process.spawn('adb', ['-s', this.serial, 'shell', '-t', '-t']);
|
||||
}
|
||||
}
|
||||
|
||||
23
src/devices/ArchivedDevice.js
Normal file
23
src/devices/ArchivedDevice.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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';
|
||||
import type {DeviceType, OS, DeviceShell} from './BaseDevice.js';
|
||||
|
||||
export default class ArchivedDevice extends BaseDevice {
|
||||
constructor(serial: string, deviceType: DeviceType, title: string, os: OS) {
|
||||
super(serial, deviceType, title);
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
getLogs() {
|
||||
return [];
|
||||
}
|
||||
|
||||
spawnShell(): ?DeviceShell {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -86,7 +86,7 @@ export default class BaseDevice {
|
||||
teardown() {}
|
||||
|
||||
supportedColumns(): Array<string> {
|
||||
throw new Error('unimplemented');
|
||||
return ['date', 'pid', 'tid', 'tag', 'message', 'type', 'time'];
|
||||
}
|
||||
|
||||
addLogListener(callback: DeviceLogListener): Symbol {
|
||||
@@ -117,7 +117,7 @@ export default class BaseDevice {
|
||||
this.logListeners.delete(id);
|
||||
}
|
||||
|
||||
spawnShell(): DeviceShell {
|
||||
spawnShell(): ?DeviceShell {
|
||||
throw new Error('unimplemented');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user