mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-28 12:15:14 +08:00
Add support for OS X to podspec and update .gitattributes
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -1,2 +1,3 @@
|
||||
docs/* linguist-documentation
|
||||
Example/Pods/* linguist-vendored
|
||||
Example/Pods/* linguist-vendored
|
||||
Example-Mac/Pods/* linguist-vendored
|
||||
@@ -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