Summary: Move UIDebugger plugin to OSS space. Reviewed By: passy Differential Revision: D47634848 fbshipit-source-id: 90e8c0181a2434d0e5d76bdb99b902051e6d702e
28 lines
655 B
Objective-C
28 lines
655 B
Objective-C
/*
|
|
* 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 "UIDInspectable+Foundation.h"
|
|
#import "UIDInspectableArray+Foundation.h"
|
|
|
|
FB_LINKABLE(UIDInspectableArray_Foundation)
|
|
@implementation UIDInspectableArray (Foundation)
|
|
|
|
- (id)toFoundation {
|
|
NSMutableArray* items = [NSMutableArray arrayWithCapacity:self.items.count];
|
|
for (UIDInspectable* object in self.items) {
|
|
[items addObject:[object toFoundation]];
|
|
}
|
|
|
|
return @{@"type" : @"array", @"items" : items};
|
|
}
|
|
|
|
@end
|
|
|
|
#endif
|