diff --git a/FlipperKit.podspec b/FlipperKit.podspec index 1bd7c85616b..6a2bfb03a15 100644 --- a/FlipperKit.podspec +++ b/FlipperKit.podspec @@ -145,6 +145,15 @@ Pod::Spec.new do |spec| ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**", "ONLY_ACTIVE_ARCH": "YES" } end + spec.subspec "FlipperKitUIDebuggerPlugin" do |ss| + ss.header_dir = "FlipperKitUIDebuggerPlugin" + ss.dependency 'FlipperKit/Core' + ss.public_header_files = 'iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin.h' + ss.source_files = 'iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/**/*.{h,cpp,m,mm}' + ss.exclude_files = ['iOS/Plugins/FlipperKitUIDebuggerPlugin/fb/*','iOS/Plugins/FlipperKitUIDebuggerPlugin/facebook/*','iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/fb/*' ,'iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/facebook/*'] + ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**", "ONLY_ACTIVE_ARCH": "YES" } + end + spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss| ss.header_dir = "FlipperKitLayoutComponentKitSupport" ss.dependency 'FlipperKit/Core' diff --git a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPluginInit.mm b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPluginInit.mm index c642a11d9f0..b84fca81435 100644 --- a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPluginInit.mm +++ b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPluginInit.mm @@ -13,6 +13,10 @@ #import "UIDDescriptorRegister.h" #import "UIDTreeObserverFactory.h" +@interface FlipperKitUIDebuggerPlugin () +- (instancetype)initWithContext:(UIDContext*)context; +@end + #ifdef __cplusplus extern "C" { #endif diff --git a/iOS/Sample/AppDelegate.m b/iOS/Sample/AppDelegate.m index 0a72361377f..eb836a61490 100644 --- a/iOS/Sample/AppDelegate.m +++ b/iOS/Sample/AppDelegate.m @@ -11,6 +11,7 @@ #import #import #import +#import #import #import @@ -44,6 +45,9 @@ - (BOOL)application:(UIApplication*)application initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; [client addPlugin:[FlipperKitExamplePlugin sharedInstance]]; [client addPlugin:[FlipperKitReactPlugin new]]; + + FlipperKitUIDebuggerAddPlugin(client); + [client start]; UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"MainStoryBoard" diff --git a/iOS/Sample/Podfile b/iOS/Sample/Podfile index 320e73f61d6..772305d2fd4 100644 --- a/iOS/Sample/Podfile +++ b/iOS/Sample/Podfile @@ -8,6 +8,7 @@ target 'Sample' do # See docs/getting-started/ios-native.mdx pod 'FlipperKit', :path => '../../FlipperKit.podspec', :configuration => 'Debug' pod 'FlipperKit/FlipperKitLayoutPlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug' + pod 'FlipperKit/FlipperKitUIDebuggerPlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug' pod 'FlipperKit/SKIOSNetworkPlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug' pod 'FlipperKit/FlipperKitUserDefaultsPlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug' pod 'FlipperKit/FlipperKitExamplePlugin', :path => '../../FlipperKit.podspec', :configuration => 'Debug' diff --git a/iOS/Sample/Podfile.lock b/iOS/Sample/Podfile.lock index c480e336e54..4815fa2eda6 100644 --- a/iOS/Sample/Podfile.lock +++ b/iOS/Sample/Podfile.lock @@ -53,6 +53,8 @@ PODS: - FlipperKit/Core - FlipperKit/FlipperKitReactPlugin (0.202.0): - FlipperKit/Core + - FlipperKit/FlipperKitUIDebuggerPlugin (0.202.0): + - FlipperKit/Core - FlipperKit/FlipperKitUserDefaultsPlugin (0.202.0): - FlipperKit/Core - FlipperKit/SKIOSNetworkPlugin (0.202.0): @@ -74,6 +76,7 @@ DEPENDENCIES: - FlipperKit/FlipperKitExamplePlugin (from `../../FlipperKit.podspec`) - FlipperKit/FlipperKitLayoutPlugin (from `../../FlipperKit.podspec`) - FlipperKit/FlipperKitReactPlugin (from `../../FlipperKit.podspec`) + - FlipperKit/FlipperKitUIDebuggerPlugin (from `../../FlipperKit.podspec`) - FlipperKit/FlipperKitUserDefaultsPlugin (from `../../FlipperKit.podspec`) - FlipperKit/SKIOSNetworkPlugin (from `../../FlipperKit.podspec`) - libevent @@ -108,11 +111,11 @@ SPEC CHECKSUMS: Flipper-Folly: 584845625005ff068a6ebf41f857f468decd26b3 Flipper-Glog: 70c50ce58ddaf67dc35180db05f191692570f446 Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 - FlipperKit: 6a2be223aff449e4c0b1e7c55a636f67ac050b15 + FlipperKit: 13477e6bc0a428163fdece76b10adf4da74c2632 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d -PODFILE CHECKSUM: 4d30d7695e19226b890d64952dd09dde3e2d80fc +PODFILE CHECKSUM: 183869a0e4a7ff3632408564a06aeb8f4ddc1992 -COCOAPODS: 1.11.2 +COCOAPODS: 1.12.1