From 1b523e4682513829928a03c8aa2c6ec94e51985d Mon Sep 17 00:00:00 2001 From: Nikolaj Schumacher Date: Wed, 19 Feb 2014 22:59:42 +0100 Subject: [PATCH] Update podspec to include optional Frank registration. --- Shelley.podspec | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Shelley.podspec b/Shelley.podspec index 15fa92a..a846228 100644 --- a/Shelley.podspec +++ b/Shelley.podspec @@ -12,8 +12,20 @@ Pod::Spec.new do |s| :tag => "#{s.version}" } - s.ios.source_files = 'Source/Shared/**/*.{h,m}', 'Source/iOS/**/*.{h,m}' - s.osx.source_files = 'Source/Shared/**/*.{h,m}', 'Source/Mac/**/*.{h,m}' - s.framework = 'CoreGraphics' + + s.default_subspec = 'Core' + + s.subspec 'Core' do |core| + core.source_files = 'Source/Shared/**/*.{h,m}' + core.ios.source_files = 'Source/iOS/**/*.{h,m}' + core.osx.source_files = 'Source/Mac/**/*.{h,m}' + end + + # Subspec that registers itself with Frank + s.subspec 'Frank' do |frank| + frank.dependency 'Shelley/Core' + frank.source_files = 'Source/Frank/**/*.{h,m}' + end + end