From 4a15dc814e6882d0b89c2fc09b58e53332588911 Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Thu, 30 Jun 2016 01:40:57 -0700 Subject: [PATCH] Add RCTAnimation to Podspec Summary: **Motivation** This PR adds a subspec for the `NativeAnimation` iOS library which so one can use it with CocoaPods. **Test plan (required)** Tested with the code in `NativeAnimationsExample.js` and this: ``` pod 'React', :subspecs => ['Core', 'RCTAnimation'], :path => 'node_modules/react-native' ``` Closes https://github.com/facebook/react-native/pull/8487 Differential Revision: D3502970 fbshipit-source-id: 0958acdbe088da8b50a1e5e3661f27b64db329c1 --- React.podspec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/React.podspec b/React.podspec index 3f767c95b..24c366dc9 100644 --- a/React.podspec +++ b/React.podspec @@ -54,6 +54,12 @@ Pod::Spec.new do |s| ss.preserve_paths = "Libraries/AdSupport/*.js" end + s.subspec 'RCTAnimation' do |ss| + ss.dependency 'React/Core' + ss.source_files = "Libraries/NativeAnimation/{Nodes/*,*}.{h,m}" + ss.preserve_paths = "Libraries/NativeAnimation/*.js" + end + s.subspec 'RCTCameraRoll' do |ss| ss.dependency 'React/Core' ss.dependency 'React/RCTImage'