Add support for OS X to podspec and update .gitattributes

This commit is contained in:
Michael Schneider
2016-01-04 17:40:06 +01:00
parent 8df9dc00c6
commit 2fe6c766d6
2 changed files with 12 additions and 2 deletions

View File

@@ -17,7 +17,8 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/pinterest/PINRemoteImage.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/garrettmoon'
s.platform = :ios, '6.0'
s.ios.deployment_target = "6.0"
s.osx.deployment_target = "10.8"
s.requires_arc = true
# Include optional FLAnimatedImage module
@@ -32,6 +33,14 @@ Pod::Spec.new do |s|
cs.dependency 'PINCache', '>=2.1'
end
s.subspec 'OSX' do |cs|
cs.source_files = 'Pod/Classes/**/*.{h,m}'
cs.exclude_files = 'Pod/Classes/Image Categories/FLAnimatedImageView+PINRemoteImage.h', 'Pod/Classes/Image Categories/FLAnimatedImageView+PINRemoteImage.m'
cs.public_header_files = 'Pod/Classes/**/*.h'
cs.frameworks = 'Cocoa', 'ImageIO', 'CoreImage'
cs.dependency 'PINCache', '>=2.1'
end
s.subspec "FLAnimatedImage" do |fs|
fs.dependency 'PINRemoteImage/Core'
fs.source_files = 'Pod/Classes/Image Categories/FLAnimatedImageView+PINRemoteImage.h', 'Pod/Classes/Image Categories/FLAnimatedImageView+PINRemoteImage.m'