Enable search on layout2 for archived devices

Summary:
Enables search on the imported layout data. The way search is implemented is that the Flipper app asks for the search results from the mobile clients. Since mobile client will not exist in the archived case, the search won't work. To solve this problem I added a proxy client which will get all the messages fired by the Layout Inspector and it will accordingly revert back with the responses. In the case of search, it will give back the search result tree for a particular query.

Also added extensive tests for the proxy client

Reviewed By: danielbuechele

Differential Revision: D14281856

fbshipit-source-id: 651436084ebacd57f86e4fe9bb2036e7f666880c
This commit is contained in:
Pritesh Nandgaonkar
2019-03-08 10:15:59 -08:00
committed by Facebook Github Bot
parent 44b7d4c6c3
commit b65581262a
9 changed files with 633 additions and 21 deletions

View File

@@ -40,6 +40,7 @@ export {createTablePlugin} from './createTablePlugin.js';
export {default as DetailSidebar} from './chrome/DetailSidebar.js';
export {default as AndroidDevice} from './devices/AndroidDevice.js';
export {default as ArchivedDevice} from './devices/ArchivedDevice.js';
export {default as Device} from './devices/BaseDevice.js';
export {default as IOSDevice} from './devices/IOSDevice.js';
export type {OS} from './devices/BaseDevice.js';