From 04575138490400607fdc54737d6974a8fa51c790 Mon Sep 17 00:00:00 2001 From: Nelson Tai Date: Thu, 7 Apr 2016 17:23:51 +0800 Subject: [PATCH] Update podspec - There are two subspec: ObjC and Swift - Default subspec is ObjC --- CHTCollectionViewWaterfallLayout.podspec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CHTCollectionViewWaterfallLayout.podspec b/CHTCollectionViewWaterfallLayout.podspec index 7503f45..cf52b43 100644 --- a/CHTCollectionViewWaterfallLayout.podspec +++ b/CHTCollectionViewWaterfallLayout.podspec @@ -7,7 +7,17 @@ Pod::Spec.new do |s| s.license = 'MIT' s.author = { "Nelson" => "chiahsien@gmail.com" } s.source = { :git => "https://github.com/chiahsien/CHTCollectionViewWaterfallLayout.git", :tag => "#{s.version}" } - s.platform = :ios, '6.0' - s.source_files = '*.{h,m}' + s.ios.deployment_target = '6.0' + s.tvos.deployment_target = '9.0' s.requires_arc = true + + s.default_subspec = 'ObjC' + + s.subspec 'ObjC' do |ss| + ss.source_files = '*.{h,m}' + end + + s.subspec 'Swift' do |ss| + ss.source_files = '*.swift' + end end