Introduced subpecs

default for the spec is RN
RCT and FaceDetector need to be included
explicitly,.
This commit is contained in:
Ognen Ivanovski 2018-03-06 12:57:49 +01:00
parent 8989aa2354
commit 01bc01e230
1 changed files with 14 additions and 1 deletions

View File

@ -15,8 +15,21 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.platform = :ios, '8.0'
s.subspec "RCT" do |ss|
ss.source_files = "ios/RCT/**/*.{h,m}"
end
s.subspec "RN" do |ss|
ss.source_files = "ios/RN/**/*.{h,m}"
end
s.subspec "FaceDetector" do |ss|
ss.source_files = "ios/FaceDetector/**/*.{h,m}"
end
s.default_subspec = "RN"
s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js'
s.source_files = 'ios/**/*.{h,m}'
s.dependency 'React'
end