CocoaPods frameworks compatibility: Step 2 (#25619)

Summary:
This is my proposal for fixing `use_frameworks!` compatibility without breaking all `<React/*>` imports I outlined in https://github.com/facebook/react-native/pull/25393#issuecomment-508457700. If accepted, it will fix https://github.com/facebook/react-native/issues/25349.

It builds on the changes I made in https://github.com/facebook/react-native/pull/25496 by ensuring each podspec has a unique value for `header_dir` so that framework imports do not conflict. Every podspec which should be included in the `<React/*>` namespace now includes it's headers from `React-Core.podspec`.

The following pods can still be imported with `<React/*>` and so should not have breaking changes: `React-ART`,`React-DevSupport`, `React-CoreModules`, `React-RCTActionSheet`, `React-RCTAnimation`, `React-RCTBlob`, `React-RCTImage`, `React-RCTLinking`, `React-RCTNetwork`, `React-RCTPushNotification`, `React-RCTSettings`, `React-RCTText`, `React-RCTSettings`, `React-RCTVibration`, `React-RCTWebSocket` .

There are still a few breaking changes which I hope will be acceptable:

- `React-Core.podspec` has been moved to the root of the project. Any `Podfile` that references it will need to update the path.
- ~~`React-turbomodule-core`'s headers now live under `<turbomodule/*>`~~ Replaced by https://github.com/facebook/react-native/pull/25619#issuecomment-511091823.
- ~~`React-turbomodulesamples`'s headers now live under `<turbomodulesamples/*>`~~ Replaced by https://github.com/facebook/react-native/pull/25619#issuecomment-511091823.
- ~~`React-TypeSaferty`'s headers now live under `<TypeSafety/*>`~~ Replaced by https://github.com/facebook/react-native/pull/25619#issuecomment-511040967.
- ~~`React-jscallinvoker`'s headers now live under `<jscallinvoker/*>`~~ Replaced by https://github.com/facebook/react-native/pull/25619#issuecomment-511091823.
- Each podspec now uses `s.static_framework = true`. This means that a minimum of CocoaPods 1.5 ([released in April 2018](http://blog.cocoapods.org/CocoaPods-1.5.0/)) is now required. This is needed so that the ` __has_include` conditions can still work when frameworks are enabled.

Still to do:

- ~~Including `React-turbomodule-core` with `use_frameworks!` enabled causes the C++ import failures we saw in https://github.com/facebook/react-native/issues/25349. I'm sure it will be possible to fix this but I need to dig deeper (perhaps a custom modulemap would be needed).~~ Addressed by https://github.com/facebook/react-native/pull/25619/commits/33573511f02f3502a28bad48e085e9a4b8608302.
- I haven't got Fabric working yet. I wonder if it would be acceptable to move Fabric out of the `<React/*>` namespace since it is new? �

## Changelog

[iOS] [Fixed] - Fixed compatibility with CocoaPods frameworks.
Pull Request resolved: https://github.com/facebook/react-native/pull/25619

Test Plan:
### FB

```
buck build catalyst
```

### Sample Project

Everything should work exactly as before, where `use_frameworks!` is not in `Podfile`s. I have a branch on my [sample project](https://github.com/jtreanor/react-native-cocoapods-frameworks) here which has `use_frameworks!` in its `Podfile` to demonstrate this is fixed.

You can see that it works with these steps:

1. `git clone git@github.com:jtreanor/react-native-cocoapods-frameworks.git`
2. `git checkout fix-frameworks-subspecs`
3. `cd ios && pod install`
4. `cd .. && react-native run-ios`

The sample app will build and run successfully. To see that it still works without frameworks, remove `use_frameworks!` from the `Podfile` and do steps 3 and 4 again.

### RNTesterPods

`RNTesterPodsPods` can now work with or without `use_frameworks!`.

1. Go to the `RNTester` directory and run `pod install`.
2. Run the tests in `RNTesterPods.xcworkspace` to see that everything still works fine.
3. Uncomment the `use_frameworks!` line at the top of `RNTester/Podfile` and run `pod install` again.
4. Run the tests again and see that it still works with frameworks enabled.

Reviewed By: PeteTheHeat

Differential Revision: D16465247

Pulled By: PeteTheHeat

fbshipit-source-id: cad837e9cced06d30cc5b372af1c65c7780b9e7a
This commit is contained in:
James Treanor authored and Facebook Github Bot committed 2019-07-24 23:27:09 -07:00
1 parent 7244bae47d
commit 8131b7bb7b
150 files changed
+560 -499

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTGroup.h"
#import <React/ARTGroup.h>
@implementation ARTGroup
+2 -2
View File
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTNode.h"
#import <React/ARTNode.h>
#import "ARTContainer.h"
#import <React/ARTContainer.h>
@implementation ARTNode
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTRenderable.h"
#import <React/ARTRenderable.h>
@implementation ARTRenderable
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTShape.h"
#import <React/ARTShape.h>
@implementation ARTShape
+2 -2
View File
@@ -5,11 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTSurfaceView.h"
#import <React/ARTSurfaceView.h>
#import <React/RCTLog.h>
#import "ARTNode.h"
#import <React/ARTNode.h>
@implementation ARTSurfaceView
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTText.h"
#import <React/ARTText.h>
#import <CoreText/CoreText.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTBrush.h"
#import <React/ARTBrush.h>
#import <React/RCTDefines.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTLinearGradient.h"
#import <React/ARTLinearGradient.h>
#import <React/RCTLog.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTPattern.h"
#import <React/ARTPattern.h>
#import <React/RCTLog.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTRadialGradient.h"
#import <React/ARTRadialGradient.h>
#import <React/RCTLog.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTSolidColor.h"
#import <React/ARTSolidColor.h>
#import <React/RCTLog.h>
+4 -4
View File
@@ -10,10 +10,10 @@
#import <React/RCTFont.h>
#import <React/RCTLog.h>
#import "ARTLinearGradient.h"
#import "ARTPattern.h"
#import "ARTRadialGradient.h"
#import "ARTSolidColor.h"
#import <React/ARTLinearGradient.h>
#import <React/ARTPattern.h>
#import <React/ARTRadialGradient.h>
#import <React/ARTSolidColor.h>
@implementation RCTConvert (ART)
+4 -3
View File
@@ -26,9 +26,10 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "**/*.{h,m}"
s.source_files = "**/*.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "ART"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/ARTHeaders", version
end
+2 -2
View File
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTGroupManager.h"
#import <React/ARTGroupManager.h>
#import "ARTGroup.h"
#import <React/ARTGroup.h>
#import "RCTConvert+ART.h"
@implementation ARTGroupManager
+2 -2
View File
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTNodeManager.h"
#import <React/ARTNodeManager.h>
#import "ARTNode.h"
#import <React/ARTNode.h>
@implementation ARTNodeManager
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTRenderableManager.h"
#import <React/ARTRenderableManager.h>
#import "RCTConvert+ART.h"
+2 -2
View File
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTShapeManager.h"
#import <React/ARTShapeManager.h>
#import "ARTShape.h"
#import <React/ARTShape.h>
#import "RCTConvert+ART.h"
@implementation ARTShapeManager
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTSurfaceViewManager.h"
#import <React/ARTSurfaceViewManager.h>
#import "ARTSurfaceView.h"
#import <React/ARTSurfaceView.h>
@implementation ARTSurfaceViewManager
+2 -2
View File
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "ARTTextManager.h"
#import <React/ARTTextManager.h>
#import "ARTText.h"
#import <React/ARTText.h>
#import "RCTConvert+ART.h"
@implementation ARTTextManager
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTActionSheetManager.h"
#import <React/RCTActionSheetManager.h>
#import <React/RCTBridge.h>
#import <React/RCTConvert.h>
@@ -27,9 +27,10 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "*.{h,m}"
s.source_files = "*.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTActionSheet"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTActionSheetHeaders", version
end
+1 -1
View File
@@ -8,7 +8,7 @@
#import "RCTBlobCollector.h"
#import <React/RCTBridge+Private.h>
#import "RCTBlobManager.h"
#import <React/RCTBlobManager.h>
namespace facebook {
namespace react {
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTBlobManager.h"
#import <React/RCTBlobManager.h>
#import <mutex>
+2 -2
View File
@@ -6,12 +6,12 @@
*/
#import "RCTFileReaderModule.h"
#import <React/RCTFileReaderModule.h>
#import <React/RCTBridge.h>
#import <React/RCTConvert.h>
#import "RCTBlobManager.h"
#import <React/RCTBlobManager.h>
@implementation RCTFileReaderModule
+6 -3
View File
@@ -26,11 +26,14 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "*.{h,m,mm}"
# RCTBlobCollector.h is not included in the React module as it has C++ code
s.source_files = "*.{m,mm}", "RCTBlobCollector.h"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTBlob"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTBlobHeaders", version
s.dependency "React-RCTNetwork", version
s.dependency "React-RCTWebSocket", version
s.dependency "React-jsi", version
end
@@ -28,4 +28,5 @@ Pod::Spec.new do |s|
s.source = source
s.source_files = "**/*.{c,h,m,mm,cpp}"
s.header_dir = "FBLazyVector"
end
@@ -32,6 +32,7 @@ Pod::Spec.new do |s|
s.source = source
s.source_files = "**/*.{c,h,m,mm,cpp}"
s.header_dir = "FBReactNativeSpec"
s.static_framework = true
s.pod_target_xcconfig = {
"USE_HEADERMAP" => "YES",
+1 -1
View File
@@ -6,7 +6,7 @@
*/
#import <ImageIO/ImageIO.h>
#import "RCTAnimatedImage.h"
#import <React/RCTAnimatedImage.h>
@interface RCTGIFCoderFrame : NSObject
+2 -2
View File
@@ -5,13 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTGIFImageDecoder.h"
#import <React/RCTGIFImageDecoder.h>
#import <ImageIO/ImageIO.h>
#import <QuartzCore/QuartzCore.h>
#import <React/RCTUtils.h>
#import "RCTAnimatedImage.h"
#import <React/RCTAnimatedImage.h>
@implementation RCTGIFImageDecoder
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageBlurUtils.h"
#import <React/RCTImageBlurUtils.h>
UIImage *RCTBlurredImageWithRadius(UIImage *inputImage, CGFloat radius)
{
+2 -2
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageCache.h"
#import <React/RCTImageCache.h>
#import <objc/runtime.h>
@@ -16,7 +16,7 @@
#import <React/RCTUtils.h>
#import <React/RCTResizeMode.h>
#import "RCTImageUtils.h"
#import <React/RCTImageUtils.h>
static const NSUInteger RCTMaxCachableDecodedImageSizeInBytes = 2097152; // 2 MB
+4 -4
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageEditingManager.h"
#import <React/RCTImageEditingManager.h>
#import <UIKit/UIKit.h>
@@ -13,9 +13,9 @@
#import <React/RCTLog.h>
#import <React/RCTUtils.h>
#import "RCTImageLoader.h"
#import "RCTImageStoreManager.h"
#import "RCTImageUtils.h"
#import <React/RCTImageLoader.h>
#import <React/RCTImageStoreManager.h>
#import <React/RCTImageUtils.h>
@implementation RCTImageEditingManager
+2 -2
View File
@@ -17,8 +17,8 @@
#import <React/RCTNetworking.h>
#import <React/RCTUtils.h>
#import "RCTImageCache.h"
#import "RCTImageUtils.h"
#import <React/RCTImageCache.h>
#import <React/RCTImageUtils.h>
static NSInteger RCTImageBytesForImage(UIImage *image)
{
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageShadowView.h"
#import <React/RCTImageShadowView.h>
#import <React/RCTLog.h>
+2 -2
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageStoreManager.h"
#import <React/RCTImageStoreManager.h>
#import <stdatomic.h>
@@ -16,7 +16,7 @@
#import <React/RCTLog.h>
#import <React/RCTUtils.h>
#import "RCTImageUtils.h"
#import <React/RCTImageUtils.h>
static NSString *const RCTImageStoreURLScheme = @"rct-image-store";
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageUtils.h"
#import <React/RCTImageUtils.h>
#import <tgmath.h>
+5 -5
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageView.h"
#import <React/RCTImageView.h>
#import <React/RCTBridge.h>
#import <React/RCTConvert.h>
@@ -14,10 +14,10 @@
#import <React/RCTUtils.h>
#import <React/UIView+React.h>
#import "RCTUIImageViewAnimated.h"
#import "RCTImageBlurUtils.h"
#import "RCTImageLoader.h"
#import "RCTImageUtils.h"
#import <React/RCTUIImageViewAnimated.h>
#import <React/RCTImageBlurUtils.h>
#import <React/RCTImageLoader.h>
#import <React/RCTImageUtils.h>
/**
* Determines whether an image of `currentSize` should be reloaded for display
+4 -4
View File
@@ -5,16 +5,16 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTImageViewManager.h"
#import <React/RCTImageViewManager.h>
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import <React/RCTImageSource.h>
#import "RCTImageLoader.h"
#import "RCTImageShadowView.h"
#import "RCTImageView.h"
#import <React/RCTImageLoader.h>
#import <React/RCTImageShadowView.h>
#import <React/RCTImageView.h>
@implementation RCTImageViewManager
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTLocalAssetImageLoader.h"
#import <React/RCTLocalAssetImageLoader.h>
#import <stdatomic.h>
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTResizeMode.h"
#import <React/RCTResizeMode.h>
@implementation RCTConvert(RCTResizeMode)
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTAnimatedImage.h"
#import <React/RCTAnimatedImage.h>
@interface RCTUIImageViewAnimated : UIImageView
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTUIImageViewAnimated.h"
#import <React/RCTUIImageViewAnimated.h>
#import <mach/mach.h>
#import <objc/runtime.h>
+4 -3
View File
@@ -27,10 +27,11 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "*.{h,m}"
s.source_files = "*.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTImage"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTImageHeaders", version
s.dependency "React-RCTNetwork", version
end
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTLinkingManager.h"
#import <React/RCTLinkingManager.h>
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>
@@ -27,9 +27,10 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "*.{h,m}"
s.source_files = "*.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTLinking"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTLinkingHeaders", version
end
@@ -5,13 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTDecayAnimation.h"
#import <React/RCTDecayAnimation.h>
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import "RCTAnimationUtils.h"
#import "RCTValueAnimatedNode.h"
#import <React/RCTAnimationUtils.h>
#import <React/RCTValueAnimatedNode.h>
@interface RCTDecayAnimation ()
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTEventAnimation.h"
#import <React/RCTEventAnimation.h>
@implementation RCTEventAnimation
{
@@ -5,15 +5,15 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTFrameAnimation.h"
#import <React/RCTFrameAnimation.h>
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import <React/RCTDefines.h>
#import "RCTAnimationUtils.h"
#import "RCTValueAnimatedNode.h"
#import <React/RCTAnimationUtils.h>
#import <React/RCTValueAnimatedNode.h>
@interface RCTFrameAnimation ()
@@ -5,15 +5,15 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTSpringAnimation.h"
#import <React/RCTSpringAnimation.h>
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import <React/RCTDefines.h>
#import "RCTAnimationUtils.h"
#import "RCTValueAnimatedNode.h"
#import <React/RCTAnimationUtils.h>
#import <React/RCTValueAnimatedNode.h>
@interface RCTSpringAnimation ()
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTAdditionAnimatedNode.h"
#import <React/RCTAdditionAnimatedNode.h>
@implementation RCTAdditionAnimatedNode
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTAnimatedNode.h"
#import <React/RCTAnimatedNode.h>
#import <React/RCTDefines.h>
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTDiffClampAnimatedNode.h"
#import <React/RCTDiffClampAnimatedNode.h>
#import <React/RCTLog.h>
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTDivisionAnimatedNode.h"
#import <React/RCTDivisionAnimatedNode.h>
#import <React/RCTLog.h>
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTInterpolationAnimatedNode.h"
#import <React/RCTInterpolationAnimatedNode.h>
#import "RCTAnimationUtils.h"
#import <React/RCTAnimationUtils.h>
static NSRegularExpression *regex;
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTModuloAnimatedNode.h"
#import <React/RCTModuloAnimatedNode.h>
@implementation RCTModuloAnimatedNode
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTMultiplicationAnimatedNode.h"
#import <React/RCTMultiplicationAnimatedNode.h>
@implementation RCTMultiplicationAnimatedNode
@@ -5,15 +5,15 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTPropsAnimatedNode.h"
#import <React/RCTPropsAnimatedNode.h>
#import <React/RCTLog.h>
#import <React/RCTSurfacePresenterStub.h>
#import <React/RCTUIManager.h>
#import "RCTAnimationUtils.h"
#import "RCTStyleAnimatedNode.h"
#import "RCTValueAnimatedNode.h"
#import <React/RCTAnimationUtils.h>
#import <React/RCTStyleAnimatedNode.h>
#import <React/RCTValueAnimatedNode.h>
@@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTStyleAnimatedNode.h"
#import "RCTAnimationUtils.h"
#import "RCTValueAnimatedNode.h"
#import "RCTTransformAnimatedNode.h"
#import <React/RCTStyleAnimatedNode.h>
#import <React/RCTAnimationUtils.h>
#import <React/RCTValueAnimatedNode.h>
#import <React/RCTTransformAnimatedNode.h>
@implementation RCTStyleAnimatedNode
{
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTSubtractionAnimatedNode.h"
#import <React/RCTSubtractionAnimatedNode.h>
@implementation RCTSubtractionAnimatedNode
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTTrackingAnimatedNode.h"
#import "RCTValueAnimatedNode.h"
#import "RCTNativeAnimatedNodesManager.h"
#import <React/RCTTrackingAnimatedNode.h>
#import <React/RCTValueAnimatedNode.h>
#import <React/RCTNativeAnimatedNodesManager.h>
@implementation RCTTrackingAnimatedNode {
NSNumber *_animationId;
@@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTTransformAnimatedNode.h"
#import "RCTValueAnimatedNode.h"
#import <React/RCTTransformAnimatedNode.h>
#import <React/RCTValueAnimatedNode.h>
@implementation RCTTransformAnimatedNode
{
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTValueAnimatedNode.h"
#import <React/RCTValueAnimatedNode.h>
@interface RCTValueAnimatedNode ()
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTAnimationUtils.h"
#import <React/RCTAnimationUtils.h>
#import <React/RCTLog.h>
@@ -4,9 +4,9 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "RCTNativeAnimatedModule.h"
#import <React/RCTNativeAnimatedModule.h>
#import "RCTNativeAnimatedNodesManager.h"
#import <React/RCTNativeAnimatedNodesManager.h>
typedef void (^AnimatedOperation)(RCTNativeAnimatedNodesManager *nodesManager);
@@ -5,28 +5,28 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTNativeAnimatedNodesManager.h"
#import <React/RCTNativeAnimatedNodesManager.h>
#import <React/RCTConvert.h>
#import "RCTAdditionAnimatedNode.h"
#import "RCTAnimatedNode.h"
#import "RCTAnimationDriver.h"
#import "RCTDiffClampAnimatedNode.h"
#import "RCTDivisionAnimatedNode.h"
#import "RCTEventAnimation.h"
#import "RCTFrameAnimation.h"
#import "RCTDecayAnimation.h"
#import "RCTInterpolationAnimatedNode.h"
#import "RCTModuloAnimatedNode.h"
#import "RCTMultiplicationAnimatedNode.h"
#import "RCTPropsAnimatedNode.h"
#import "RCTSpringAnimation.h"
#import "RCTStyleAnimatedNode.h"
#import "RCTSubtractionAnimatedNode.h"
#import "RCTTransformAnimatedNode.h"
#import "RCTValueAnimatedNode.h"
#import "RCTTrackingAnimatedNode.h"
#import <React/RCTAdditionAnimatedNode.h>
#import <React/RCTAnimatedNode.h>
#import <React/RCTAnimationDriver.h>
#import <React/RCTDiffClampAnimatedNode.h>
#import <React/RCTDivisionAnimatedNode.h>
#import <React/RCTEventAnimation.h>
#import <React/RCTFrameAnimation.h>
#import <React/RCTDecayAnimation.h>
#import <React/RCTInterpolationAnimatedNode.h>
#import <React/RCTModuloAnimatedNode.h>
#import <React/RCTMultiplicationAnimatedNode.h>
#import <React/RCTPropsAnimatedNode.h>
#import <React/RCTSpringAnimation.h>
#import <React/RCTStyleAnimatedNode.h>
#import <React/RCTSubtractionAnimatedNode.h>
#import <React/RCTTransformAnimatedNode.h>
#import <React/RCTValueAnimatedNode.h>
#import <React/RCTTrackingAnimatedNode.h>
// We do some normalizing of the event names in RCTEventDispatcher#RCTNormalizeInputEventName.
// To make things simpler just get rid of the parts we change in the event names we use here.
@@ -26,9 +26,10 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "{Drivers/*,Nodes/*,*}.{h,m}"
s.source_files = "{Drivers/*,Nodes/*,*}.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTAnimation"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTAnimationHeaders", version
end
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTDataRequestHandler.h"
#import <React/RCTDataRequestHandler.h>
@implementation RCTDataRequestHandler
{
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTFileRequestHandler.h"
#import <React/RCTFileRequestHandler.h>
#import <MobileCoreServices/MobileCoreServices.h>
+2 -2
View File
@@ -5,11 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTHTTPRequestHandler.h"
#import <React/RCTHTTPRequestHandler.h>
#import <mutex>
#import "RCTNetworking.h"
#import <React/RCTNetworking.h>
@interface RCTHTTPRequestHandler () <NSURLSessionDataDelegate>
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTNetInfo.h"
#import <React/RCTNetInfo.h>
#if !TARGET_OS_TV && !TARGET_OS_UIKITFORMAC
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
+1 -1
View File
@@ -16,7 +16,7 @@
#import <React/RCTNetworking.h>
#import <React/RCTUtils.h>
#import "RCTHTTPRequestHandler.h"
#import <React/RCTHTTPRequestHandler.h>
typedef RCTURLRequestCancellationBlock (^RCTHTTPQueryResult)(NSError *error, NSDictionary<NSString *, id> *result);
+4 -3
View File
@@ -26,9 +26,10 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "*.{h,m,mm}"
s.source_files = "*.{m,mm}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTNetwork"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTNetworkHeaders", version
end
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTPushNotificationManager.h"
#import <React/RCTPushNotificationManager.h>
#import <UserNotifications/UserNotifications.h>
@@ -27,9 +27,10 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "*.{h,m}"
s.source_files = "*.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTPushNotification"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTPushNotificationHeaders", version
end
@@ -28,4 +28,5 @@ Pod::Spec.new do |s|
s.source = source
s.source_files = "**/*.{c,h,m,mm,cpp}"
s.header_dir = "RCTRequired"
s.static_framework = true
end
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTSettingsManager.h"
#import <React/RCTSettingsManager.h>
#import <React/RCTBridge.h>
#import <React/RCTConvert.h>
+4 -3
View File
@@ -27,9 +27,10 @@ Pod::Spec.new do |s|
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "*.{h,m}"
s.source_files = "*.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTSettings"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTSettingsHeaders", version
end
@@ -5,12 +5,12 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTBaseTextShadowView.h"
#import <React/RCTBaseTextShadowView.h>
#import <React/RCTShadowView+Layout.h>
#import "RCTRawTextShadowView.h"
#import "RCTVirtualTextShadowView.h"
#import <React/RCTRawTextShadowView.h>
#import <React/RCTVirtualTextShadowView.h>
NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName = @"RCTBaseTextShadowViewEmbeddedShadowViewAttributeName";
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTBaseTextViewManager.h"
#import <React/RCTBaseTextViewManager.h>
@implementation RCTBaseTextViewManager
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTConvert+Text.h"
#import <React/RCTConvert+Text.h>
@implementation RCTConvert (Text)
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTTextAttributes.h"
#import <React/RCTTextAttributes.h>
#import <React/RCTAssert.h>
#import <React/RCTFont.h>
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTRawTextShadowView.h"
#import <React/RCTRawTextShadowView.h>
#import <React/RCTShadowView+Layout.h>
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTRawTextViewManager.h"
#import <React/RCTRawTextViewManager.h>
#import "RCTRawTextShadowView.h"
#import <React/RCTRawTextShadowView.h>
@implementation RCTRawTextViewManager
+3 -2
View File
@@ -29,7 +29,8 @@ Pod::Spec.new do |s|
s.source = source
s.source_files = "**/*.{h,m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "React"
s.header_dir = "RCTText"
s.static_framework = true
s.dependency "React-Core", version
s.dependency "React-Core/RCTTextHeaders", version
end
+2 -2
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTTextShadowView.h"
#import <React/RCTTextShadowView.h>
#import <React/RCTBridge.h>
#import <React/RCTShadowView+Layout.h>
@@ -13,7 +13,7 @@
#import <yoga/Yoga.h>
#import "NSTextStorage+FontScaling.h"
#import "RCTTextView.h"
#import <React/RCTTextView.h>
@implementation RCTTextShadowView
{
+2 -2
View File
@@ -5,14 +5,14 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTTextView.h"
#import <React/RCTTextView.h>
#import <MobileCoreServices/UTCoreTypes.h>
#import <React/RCTUtils.h>
#import <React/UIView+React.h>
#import "RCTTextShadowView.h"
#import <React/RCTTextShadowView.h>
@implementation RCTTextView
{
+3 -3
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTTextViewManager.h"
#import <React/RCTTextViewManager.h>
#import <React/RCTAccessibilityManager.h>
#import <React/RCTShadowView+Layout.h>
@@ -14,8 +14,8 @@
#import <React/RCTUIManagerUtils.h>
#import <React/RCTUIManagerObserverCoordinator.h>
#import "RCTTextShadowView.h"
#import "RCTTextView.h"
#import <React/RCTTextShadowView.h>
#import <React/RCTTextView.h>
@interface RCTTextViewManager () <RCTUIManagerObserver>
@@ -5,11 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTMultilineTextInputView.h"
#import <React/RCTMultilineTextInputView.h>
#import <React/RCTUtils.h>
#import "RCTUITextView.h"
#import <React/RCTUITextView.h>
@implementation RCTMultilineTextInputView
{
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTMultilineTextInputViewManager.h"
#import <React/RCTMultilineTextInputViewManager.h>
#import "RCTMultilineTextInputView.h"
#import <React/RCTMultilineTextInputView.h>
@implementation RCTMultilineTextInputViewManager
@@ -5,13 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTUITextView.h"
#import <React/RCTUITextView.h>
#import <React/RCTUtils.h>
#import <React/UIView+React.h>
#import "RCTBackedTextInputDelegateAdapter.h"
#import "RCTTextAttributes.h"
#import <React/RCTBackedTextInputDelegateAdapter.h>
#import <React/RCTTextAttributes.h>
@implementation RCTUITextView
{
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTBackedTextInputDelegateAdapter.h"
#import <React/RCTBackedTextInputDelegateAdapter.h>
#pragma mark - RCTBackedTextFieldDelegateAdapter (for UITextField)
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTBaseTextInputShadowView.h"
#import <React/RCTBaseTextInputShadowView.h>
#import <React/RCTBridge.h>
#import <React/RCTShadowView+Layout.h>
@@ -13,7 +13,7 @@
#import <yoga/Yoga.h>
#import "NSTextStorage+FontScaling.h"
#import "RCTBaseTextInputView.h"
#import <React/RCTBaseTextInputView.h>
@implementation RCTBaseTextInputShadowView
{
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTBaseTextInputView.h"
#import <React/RCTBaseTextInputView.h>
#import <React/RCTAccessibilityManager.h>
#import <React/RCTBridge.h>
@@ -15,10 +15,10 @@
#import <React/RCTUtils.h>
#import <React/UIView+React.h>
#import "RCTInputAccessoryView.h"
#import "RCTInputAccessoryViewContent.h"
#import "RCTTextAttributes.h"
#import "RCTTextSelection.h"
#import <React/RCTInputAccessoryView.h>
#import <React/RCTInputAccessoryViewContent.h>
#import <React/RCTTextAttributes.h>
#import <React/RCTTextSelection.h>
@implementation RCTBaseTextInputView {
__weak RCTBridge *_bridge;
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTBaseTextInputViewManager.h"
#import <React/RCTBaseTextInputViewManager.h>
#import <React/RCTAccessibilityManager.h>
#import <React/RCTBridge.h>
@@ -17,9 +17,9 @@
#import <React/RCTUIManagerUtils.h>
#import <React/RCTUIManagerObserverCoordinator.h>
#import "RCTBaseTextInputShadowView.h"
#import "RCTBaseTextInputView.h"
#import "RCTConvert+Text.h"
#import <React/RCTBaseTextInputShadowView.h>
#import <React/RCTBaseTextInputView.h>
#import <React/RCTConvert+Text.h>
@interface RCTBaseTextInputViewManager () <RCTUIManagerObserver>
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTInputAccessoryShadowView.h"
#import <React/RCTInputAccessoryShadowView.h>
#import <React/RCTUtils.h>
@@ -5,13 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTInputAccessoryView.h"
#import <React/RCTInputAccessoryView.h>
#import <React/RCTBridge.h>
#import <React/RCTTouchHandler.h>
#import <React/UIView+React.h>
#import "RCTInputAccessoryViewContent.h"
#import <React/RCTInputAccessoryViewContent.h>
@interface RCTInputAccessoryView()
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTInputAccessoryViewContent.h"
#import <React/RCTInputAccessoryViewContent.h>
#import <React/UIView+React.h>
@@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTInputAccessoryViewManager.h"
#import <React/RCTInputAccessoryViewManager.h>
#import "RCTInputAccessoryShadowView.h"
#import "RCTInputAccessoryView.h"
#import <React/RCTInputAccessoryShadowView.h>
#import <React/RCTInputAccessoryView.h>
@implementation RCTInputAccessoryViewManager
+1 -1
View File
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTTextSelection.h"
#import <React/RCTTextSelection.h>
@implementation RCTTextSelection
@@ -5,11 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/
#import "RCTSinglelineTextInputView.h"
#import <React/RCTSinglelineTextInputView.h>
#import <React/RCTBridge.h>
#import "RCTUITextField.h"
#import <React/RCTUITextField.h>
@implementation RCTSinglelineTextInputView
{
Loaded 100 of 150 files, more files were not shown because too many files have changed in this diff. Show more