-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: UI Debugger initialisation is defined in two places. Internally, done inside: fb/FlipperKitUIDebuggerPluginInit.mm OSS: FlipperKitUIDebuggerPluginInit.mm Contents of `fb/` directory are not synced in OSS. OSS file is excluded internally as it doesn't use the XPlugins. Reviewed By: aigoncharov Differential Revision: D47759035 fbshipit-source-id: 3578be076525f05b530a0d129b5c37e48572d58e
- Loading branch information
1 parent
60016e6
commit b5d51a0
Showing
3 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...s/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPluginInit.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#if FB_SONARKIT_ENABLED | ||
|
||
#import <FlipperKit/FlipperClient.h> | ||
#import "FlipperKitUIDebuggerPlugin.h" | ||
#import "UIDContext.h" | ||
#import "UIDDescriptorRegister.h" | ||
#import "UIDTreeObserverFactory.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
void FlipperKitUIDebuggerAddPlugin(FlipperClient* client) { | ||
UIDContext* context = [[UIDContext alloc] | ||
initWithApplication:[UIApplication sharedApplication] | ||
descriptorRegister:[UIDDescriptorRegister defaultRegister] | ||
observerFactory:[UIDTreeObserverFactory shared]]; | ||
FlipperKitUIDebuggerPlugin* plugin = | ||
[[FlipperKitUIDebuggerPlugin alloc] initWithContext:context]; | ||
|
||
[client addPlugin:plugin]; | ||
} | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |