mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-19 23:30:42 +08:00
Add support for OS X to podspec and update .gitattributes
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user