mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[Airbnb] Fix imports and private files to work with Swift/CocoaPods
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
#import "RCTTextManager.h"
|
||||
|
||||
#import <yoga/Yoga.h>
|
||||
#import <React/Yoga.h>
|
||||
#import <React/RCTAccessibilityManager.h>
|
||||
#import <React/RCTAssert.h>
|
||||
#import <React/RCTConvert.h>
|
||||
|
||||
@@ -46,12 +46,14 @@ Pod::Spec.new do |s|
|
||||
|
||||
s.subspec 'jschelpers' do |ss|
|
||||
ss.source_files = 'ReactCommon/jschelpers/{JavaScriptCore,JSCWrapper}.{cpp,h}'
|
||||
ss.private_header_files = "ReactCommon/jschelpers/{JavaScriptCore,JSCWrapper}.h"
|
||||
ss.header_dir = 'jschelpers'
|
||||
end
|
||||
|
||||
s.subspec 'cxxreact' do |ss|
|
||||
ss.dependency 'React/jschelpers'
|
||||
ss.source_files = 'ReactCommon/cxxreact/{JSBundleType,oss-compat-util}.{cpp,h}'
|
||||
ss.private_header_files = "ReactCommon/cxxreact/{JSBundleType,oss-compat-util}.h"
|
||||
ss.header_dir = 'cxxreact'
|
||||
end
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#import <QuartzCore/QuartzCore.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import <yoga/Yoga.h>
|
||||
#import <React/Yoga.h>
|
||||
#import <React/RCTAnimationType.h>
|
||||
#import <React/RCTBorderStyle.h>
|
||||
#import <React/RCTDefines.h>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
#import <sys/stat.h>
|
||||
|
||||
#import <cxxreact/JSBundleType.h>
|
||||
#import <jschelpers/JavaScriptCore.h>
|
||||
#import <React/JSBundleType.h>
|
||||
#import <React/JavaScriptCore.h>
|
||||
|
||||
#import "RCTBridge.h"
|
||||
#import "RCTConvert.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "RCTJSCErrorHandling.h"
|
||||
|
||||
#import <jschelpers/JavaScriptCore.h>
|
||||
#import <React/JavaScriptCore.h>
|
||||
|
||||
#import "RCTAssert.h"
|
||||
#import "RCTJSStackFrame.h"
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
|
||||
#import <UIKit/UIDevice.h>
|
||||
|
||||
#import <cxxreact/JSBundleType.h>
|
||||
#import <jschelpers/JavaScriptCore.h>
|
||||
#import <React/JSBundleType.h>
|
||||
#import <React/JavaScriptCore.h>
|
||||
|
||||
#import "JSCSamplingProfiler.h"
|
||||
#import "RCTAssert.h"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
|
||||
#import <yoga/Yoga.h>
|
||||
#import <React/Yoga.h>
|
||||
|
||||
#import "RCTAccessibilityManager.h"
|
||||
#import "RCTAnimationType.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import <yoga/Yoga.h>
|
||||
#import <React/Yoga.h>
|
||||
#import <React/RCTComponent.h>
|
||||
#import <React/RCTRootView.h>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <jschelpers/JSCWrapper.h>
|
||||
#include <React/JSCWrapper.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user