[Airbnb] Fix imports and private files to work with Swift/CocoaPods

This commit is contained in:
Leland Richardson
2017-02-06 16:54:28 -08:00
parent 9347583d8a
commit 936d72a9c7
9 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -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>
+2
View File
@@ -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
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -9,7 +9,7 @@
#include "RCTJSCErrorHandling.h"
#import <jschelpers/JavaScriptCore.h>
#import <React/JavaScriptCore.h>
#import "RCTAssert.h"
#import "RCTJSStackFrame.h"
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -11,7 +11,7 @@
#import <AVFoundation/AVFoundation.h>
#import <yoga/Yoga.h>
#import <React/Yoga.h>
#import "RCTAccessibilityManager.h"
#import "RCTAnimationType.h"
+1 -1
View File
@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
#import <yoga/Yoga.h>
#import <React/Yoga.h>
#import <React/RCTComponent.h>
#import <React/RCTRootView.h>
+1 -1
View File
@@ -9,7 +9,7 @@
#pragma once
#include <jschelpers/JSCWrapper.h>
#include <React/JSCWrapper.h>
#if defined(__APPLE__)