Fix failure of `pod lib lint`, which will close #6448. Tested on 0.23.0.

Summary:The subspec should declare enough dependencies. Or the lint of podspec file will fail because CoaoaPods will not import necessary source on the building step.
Closes https://github.com/facebook/react-native/pull/6955

Differential Revision: D3174681

fb-gh-sync-id: 59315efaeeb949951d7ee8e55dc7c979fcea4fbf
fbshipit-source-id: 59315efaeeb949951d7ee8e55dc7c979fcea4fbf
This commit is contained in:
Jesse Luo 2016-04-13 12:24:23 -07:00 committed by Facebook Github Bot 6
parent 802fdefcd2
commit ef044e2c0d
1 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ Pod::Spec.new do |s|
s.subspec 'RCTCameraRoll' do |ss|
ss.dependency 'React/Core'
ss.dependency 'React/RCTImage'
ss.source_files = "Libraries/CameraRoll/*.{h,m}"
ss.preserve_paths = "Libraries/CameraRoll/*.js"
end
@ -114,9 +115,9 @@ Pod::Spec.new do |s|
end
s.subspec 'RCTTest' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/RCTTest/**/*.{h,m}"
ss.preserve_paths = "Libraries/RCTTest/**/*.js"
ss.frameworks = "XCTest"
end
end