Skip to content

Commit 0e4bd91

Browse files
adblfacebook-github-bot-3
authored andcommitted
Add RCTCameraRoll cocoapod subspec
Summary: Struggled for some time to figure out why CameraRoll could not (anymore, upgraded from RN 0.11 iirc) be used in a cocoapods setup. This was the cleanest way to make it work, is it a bad idea for some reason? Closes facebook/react-native#4230 Reviewed By: svcscm Differential Revision: D2674063 Pulled By: nicklockwood fb-gh-sync-id: 3d9e6a8ac1834d05ad807ff1fea1b89a724b9cc8
1 parent 0ebb690 commit 0e4bd91

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

React.podspec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ Pod::Spec.new do |s|
4949
ss.preserve_paths = "Libraries/AdSupport/*.js"
5050
end
5151

52+
s.subspec 'RCTCameraRoll' do |ss|
53+
ss.dependency 'React/Core'
54+
ss.source_files = "Libraries/CameraRoll/*.{h,m}"
55+
ss.preserve_paths = "Libraries/CameraRoll/*.js"
56+
end
57+
5258
s.subspec 'RCTGeolocation' do |ss|
5359
ss.dependency 'React/Core'
5460
ss.source_files = "Libraries/Geolocation/*.{h,m}"

0 commit comments

Comments
 (0)