From 5ce2c984a90adf975190cb680189e0c08b048c8c Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Mon, 19 Jun 2023 05:06:52 -0700 Subject: [PATCH] Bloks, support NT minification map Summary: There were a small number of styles / attributes that were missing, this addresses this. Similar to the bloks minification map there are some special hardcoded reserved ids, if that doesnt work then you can look into a special place for each style I also refactored the transform metadata method as it was getting very nested and hard to understand. Reviewed By: aigoncharov Differential Revision: D46799392 fbshipit-source-id: 8de8a2740f45ddb23a1bc9abb7bb36f969cf1fbb --- .../plugins/public/ui-debugger/fb-stubs/StreamInterceptor.tsx | 3 ++- desktop/plugins/public/ui-debugger/index.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/fb-stubs/StreamInterceptor.tsx b/desktop/plugins/public/ui-debugger/fb-stubs/StreamInterceptor.tsx index e2561b64b..fbc5ea82b 100644 --- a/desktop/plugins/public/ui-debugger/fb-stubs/StreamInterceptor.tsx +++ b/desktop/plugins/public/ui-debugger/fb-stubs/StreamInterceptor.tsx @@ -7,9 +7,10 @@ * @format */ +import {DeviceOS} from 'flipper-plugin'; import {Id, Metadata, StreamInterceptor, UINode} from '../types'; -export function getStreamInterceptor(): StreamInterceptor { +export function getStreamInterceptor(_: DeviceOS): StreamInterceptor { return new NoOpStreamInterceptor(); } diff --git a/desktop/plugins/public/ui-debugger/index.tsx b/desktop/plugins/public/ui-debugger/index.tsx index 123443c58..46a0f05ee 100644 --- a/desktop/plugins/public/ui-debugger/index.tsx +++ b/desktop/plugins/public/ui-debugger/index.tsx @@ -61,7 +61,7 @@ export function plugin(client: PluginClient) { const rootId = createState(undefined); const metadata = createState>(new Map()); - const streamInterceptor = getStreamInterceptor(); + const streamInterceptor = getStreamInterceptor(client.device.os); let lastFrameTime = 0; const os = client.device.os;