forked from pinterest/PINCache
-
Notifications
You must be signed in to change notification settings - Fork 1
/
PINCache.podspec
32 lines (32 loc) · 1.18 KB
/
PINCache.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Pod::Spec.new do |s|
s.name = 'PINCache'
s.version = '3.0.1-beta.8'
s.homepage = 'https://github.com/pinterest/PINCache'
s.summary = 'Fast, thread safe, parallel object cache for iOS and OS X.'
s.authors = { 'Garrett Moon' => 'garrett@pinterest.com', 'Justin Ouellette' => 'jstn@tumblr.com' }
s.source = { :git => 'https://github.com/pinterest/PINCache.git', :tag => "#{s.version}" }
s.license = { :type => 'Apache 2.0', :file => 'LICENSE.txt' }
s.requires_arc = true
s.frameworks = 'Foundation'
s.ios.weak_frameworks = 'UIKit'
s.osx.weak_frameworks = 'AppKit'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
pch_PIN = <<-EOS
#ifndef TARGET_OS_WATCH
#define TARGET_OS_WATCH 0
#endif
EOS
s.prefix_header_contents = pch_PIN
s.subspec 'Core' do |sp|
sp.source_files = 'Source/*.{h,m}'
sp.dependency 'PINOperation', '~> 1.1.1'
end
s.subspec 'Arc-exception-safe' do |sp|
sp.dependency 'PINCache/Core'
sp.source_files = 'Source/PINDiskCache.m'
sp.compiler_flags = '-fobjc-arc-exceptions'
end
end