Rename SonarKitLayoutComponentkitsupport
Summary: Rename SonarKitLayoutComponentkitsupport Reviewed By: passy Differential Revision: D10029301 fbshipit-source-id: c87717d431ce2603e31bf3c25add40f90eb76609
This commit is contained in:
committed by
Facebook Github Bot
parent
706ef2a1c8
commit
588d61efc6
@@ -93,18 +93,18 @@ Pod::Spec.new do |spec|
|
||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
||||
end
|
||||
|
||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
||||
ss.dependency 'FlipperKit/Core'
|
||||
ss.dependency 'Yoga', yoga_version
|
||||
ss.dependency 'ComponentKit'
|
||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
||||
ss.compiler_flags = folly_compiler_flags
|
||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
||||
'iOS/Plugins/FlipperKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
||||
|
||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#import <FlipperKitLayoutPlugin/SKDescriptorMapper.h>
|
||||
|
||||
@interface SonarKitLayoutComponentKitSupport : NSObject
|
||||
@interface FlipperKitLayoutComponentKitSupport : NSObject
|
||||
|
||||
+ (void)setUpWithDescriptorMapper:(SKDescriptorMapper *)mapper;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
#if FB_SONARKIT_ENABLED
|
||||
|
||||
#import "SonarKitLayoutComponentKitSupport.h"
|
||||
#import "FlipperKitLayoutComponentKitSupport.h"
|
||||
|
||||
#import <ComponentKit/CKComponentRootView.h>
|
||||
#import <ComponentKit/CKComponentHostingView.h>
|
||||
@@ -19,7 +19,7 @@
|
||||
#import "SKComponentLayoutDescriptor.h"
|
||||
#import "SKComponentLayoutWrapper.h"
|
||||
|
||||
@implementation SonarKitLayoutComponentKitSupport
|
||||
@implementation FlipperKitLayoutComponentKitSupport
|
||||
|
||||
+ (void)setUpWithDescriptorMapper:(SKDescriptorMapper *)mapper {
|
||||
// What we really want here is "forProtocol:@protocol(CKInspectableView)" but no such luck.
|
||||
@@ -10,7 +10,7 @@
|
||||
#import <FlipperKit/FlipperClient.h>
|
||||
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
|
||||
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
|
||||
#import <SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h>
|
||||
#import <FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h>
|
||||
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
|
||||
|
||||
#import "MainViewController.h"
|
||||
@@ -31,7 +31,7 @@
|
||||
FlipperClient *client = [FlipperClient sharedClient];
|
||||
|
||||
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
|
||||
[SonarKitLayoutComponentKitSupport setUpWithDescriptorMapper: layoutDescriptorMapper];
|
||||
[FlipperKitLayoutComponentKitSupport setUpWithDescriptorMapper: layoutDescriptorMapper];
|
||||
[client addPlugin: [[FlipperKitLayoutPlugin alloc] initWithRootNode: application
|
||||
withDescriptorMapper: layoutDescriptorMapper]];
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ swift_version = "4.1"
|
||||
|
||||
target 'Sample' do
|
||||
pod 'FlipperKit', :path => '../../FlipperKit.podspec'
|
||||
pod 'FlipperKit/SonarKitLayoutComponentKitSupport', :path => '../../FlipperKit.podspec'
|
||||
pod 'FlipperKit/FlipperKitLayoutComponentKitSupport', :path => '../../FlipperKit.podspec'
|
||||
pod 'FlipperKit/SKIOSNetworkPlugin', :path => '../../FlipperKit.podspec'
|
||||
pod 'Flipper', :path => '../../Flipper.podspec'
|
||||
post_install do |installer|
|
||||
|
||||
@@ -8,7 +8,7 @@ target 'SampleSwift' do
|
||||
pod 'FlipperKit', :path => '../../FlipperKit.podspec'
|
||||
pod 'FlipperKit/SKIOSNetworkPlugin', :path => '../../FlipperKit.podspec'
|
||||
# Layout and network plugins are not yet supported for swift projects
|
||||
#pod 'SonarKit/SonarKitLayoutComponentKitSupport', :path => '../../SonarKit.podspec'
|
||||
#pod 'SonarKit/FlipperKitLayoutComponentKitSupport', :path => '../../SonarKit.podspec'
|
||||
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
|
||||
@@ -15,7 +15,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
let client = FlipperClient.shared()
|
||||
// Layout and network plugins are currently not supported for Swift apps.
|
||||
// let layoutDescriptorMapper = SKDescriptorMapper(defaults: ())
|
||||
// SonarKitLayoutComponentKitSupport.setUp(descriptorMapper: layoutDescriptorMapper)
|
||||
// FlipperKitLayoutComponentKitSupport.setUp(descriptorMapper: layoutDescriptorMapper)
|
||||
// client.addPlugin(FlipperKitLayoutPlugin(rootNode: application, descriptorMapper: layoutDescriptorMapper))
|
||||
|
||||
client?.add(FlipperKitNetworkPlugin(networkAdapter: SKIOSNetworkAdapter()))
|
||||
|
||||
Reference in New Issue
Block a user