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
This commit is contained in:
Joel Arvidsson 2016-06-30 01:40:57 -07:00 committed by Facebook Github Bot 4
parent f5f86113bd
commit 4a15dc814e
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,12 @@ Pod::Spec.new do |s|
ss.preserve_paths = "Libraries/AdSupport/*.js" ss.preserve_paths = "Libraries/AdSupport/*.js"
end 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| s.subspec 'RCTCameraRoll' do |ss|
ss.dependency 'React/Core' ss.dependency 'React/Core'
ss.dependency 'React/RCTImage' ss.dependency 'React/RCTImage'