Add framework event infra

Summary:
Added infra for collecting events from UI frameworks.
1. Framework event metadata captures all the static metadata around the event. This allows to us to not send the same metadata in every event as well as populate the monitoring drop down immediately. This is sent in init since this information is static
2. Framework event itself is quite bare at the moment. It will have thread and more attributes in the future

The UIdebugger litho support ulitity has been simplified now there are 3 extension points.

Context renamed to UIDContext since it is referenced in app initialisers where the android context is also imported and it create a naming collision

Reviewed By: lblasa

Differential Revision: D42606933

fbshipit-source-id: a419f3fd424c533d586813004c40b68feafd9a2e
This commit is contained in:
Luke De Feo
2023-03-01 08:49:49 -08:00
committed by Facebook GitHub Bot
parent 39b14fc428
commit 914b32c383
13 changed files with 82 additions and 54 deletions

View File

@@ -7,13 +7,10 @@
package com.facebook.flipper.plugins.uidebugger.litho
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
import com.facebook.flipper.plugins.uidebugger.observers.TreeObserverFactory
import com.facebook.flipper.plugins.uidebugger.core.UIDContext
// this is not used internally
object UIDebuggerLithoSupport {
fun addDescriptors(register: DescriptorRegister) {}
fun addObserver(observerFactory: TreeObserverFactory) {}
fun enable(context: UIDContext) {}
}