Skip to content

Commit 11c7efb

Browse files
committed
Add CocoaPods support for tvOS
1 parent a090531 commit 11c7efb

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
language: objective-c
33

4+
osx_image: xcode7.1
5+
46
before_install:
57

68
- export LANG=en_US.UTF-8

SDWebImage.podspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Pod::Spec.new do |s|
22
s.name = 'SDWebImage'
33
s.version = '3.7.3'
4-
s.platform = :ios, '5.0'
4+
s.ios.deployment_target = '5.0'
5+
s.tvos.deployment_target = '9.0'
56
s.license = 'MIT'
67
s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.'
78
s.homepage = 'https://github.com/rs/SDWebImage'
@@ -24,9 +25,11 @@ Pod::Spec.new do |s|
2425
s.subspec 'Core' do |core|
2526
core.source_files = 'SDWebImage/{NS,SD,UI}*.{h,m}'
2627
core.exclude_files = 'SDWebImage/UIImage+WebP.{h,m}'
28+
core.tvos.exclude_files = 'SDWebImage/MKAnnotationView+WebCache.*'
2729
end
2830

2931
s.subspec 'MapKit' do |mk|
32+
mk.ios.deployment_target = '5.0'
3033
mk.source_files = 'SDWebImage/MKAnnotationView+WebCache.*'
3134
mk.framework = 'MapKit'
3235
mk.dependency 'SDWebImage/Core'

0 commit comments

Comments
 (0)