(client_ios) Return Tree And Path to Flipper Desktop
Summary: Similar to D21040429, we need to add data sent to Flipper desktop so that we can use to retrieve necessary data. ~~The implementation is different; storing **all** component data is needed because the plugin refers to it when asked for information. This might cause an issue because we need to store more data. However, due to the sparseness of data at a single touch, this shouldn't cause any OOM.~~ Implementation Detail: - `FlipperKitLayoutPlugin.mm` - When the process finishes the tree returned is trie from root node to every node that is touched - `SKTouch.m` - `_nodeStack` keeps track of path from root to current component - `_treeStack` keeps track of current prefix tree (trie) - `continueWithChildIndex` takes care of logic for `_nodeStack` and `_treeStack` Reviewed By: Andrey-Mishanin Differential Revision: D21335956 fbshipit-source-id: 84c0cabd7399abe50cf2deaff2b01149a1a792d5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
736d681562
commit
367dbeee8c
@@ -207,8 +207,11 @@
|
||||
// Fake a tap at `testNode3`
|
||||
[tapListener tapAt:(CGPoint){26, 43}];
|
||||
|
||||
XCTAssertTrue(([connection.sent[@"select"]
|
||||
containsObject:@{@"path" : @[ @"testNode2", @"testNode3" ]}]));
|
||||
NSLog(@"%@", connection.sent[@"select"]);
|
||||
XCTAssertTrue(([connection.sent[@"select"] containsObject:@{
|
||||
@"path" : @[ @"testNode2", @"testNode3" ],
|
||||
@"tree" : @{@"testNode2" : @{@"testNode3" : @{}}}
|
||||
}]));
|
||||
}
|
||||
|
||||
- (void)testSetSearchActiveMountAndUnmount {
|
||||
|
||||
Reference in New Issue
Block a user