Skip to content

Commit

Permalink
Podspec and sample integration
Browse files Browse the repository at this point in the history
Summary: Create podspec for UI Debugger and integrate with our iOS sample application.

Reviewed By: aigoncharov

Differential Revision: D47715973

fbshipit-source-id: a64444660ea9fb8a2c29fcafe1a44266e8daf414
  • Loading branch information
lblasa authored and facebook-github-bot committed Jul 26, 2023
1 parent b5d51a0 commit 544e49c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
9 changes: 9 additions & 0 deletions FlipperKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#import "UIDDescriptorRegister.h"
#import "UIDTreeObserverFactory.h"

@interface FlipperKitUIDebuggerPlugin ()
- (instancetype)initWithContext:(UIDContext*)context;
@end

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
4 changes: 4 additions & 0 deletions iOS/Sample/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
#import <FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>

Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions iOS/Sample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
9 changes: 6 additions & 3 deletions iOS/Sample/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 544e49c

Please sign in to comment.