diff --git a/Concorde.podspec b/Concorde.podspec
index f393958..44401ce 100644
--- a/Concorde.podspec
+++ b/Concorde.podspec
@@ -15,24 +15,30 @@ Pod::Spec.new do |s|
:tag => s.version.to_s }
s.requires_arc = true
- s.default_subspecs = 'Core'
-
s.ios.deployment_target = '8.0'
s.ios.frameworks = 'UIKit'
s.osx.deployment_target = '10.9'
+ s.default_subspecs = 'Core', 'UI'
+
s.subspec 'Core' do |core_spec|
core_spec.source_files = 'Code/*.{h,m}', 'vendor/libjpeg-turbo/include/*'
core_spec.public_header_files = 'Code/CCBufferedImageDecoder.h'
core_spec.vendored_libraries = 'vendor/libjpeg-turbo/lib/libturbojpeg.a'
+ end
- core_spec.ios.source_files = 'Code/CCBufferedImageView.swift'
+ s.subspec 'UI' do |ui|
+ ui.ios.source_files = 'Code/CCBufferedImageView.swift'
+
+ ui.dependency 'Concorde/Core'
end
s.subspec 'Contentful' do |contentful_spec|
contentful_spec.ios.source_files = 'Code/CCBufferedImageView+Contentful.swift'
contentful_spec.dependency 'Concorde/Core'
+ contentful_spec.dependency 'Concorde/UI'
contentful_spec.dependency 'ContentfulDeliveryAPI', '>= 1.6.0'
end
+
end