Repository navigation
Expand file tree
/
Copy pathProcedureKit.podspec
More file actions
77 lines (66 loc) · 2.41 KB
/
Copy pathProcedureKit.podspec
File metadata and controls
77 lines (66 loc) · 2.41 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Pod::Spec.new do |s|
s.name = "ProcedureKit"
s.version = "4.5.0"
s.summary = "Powerful Operation subclasses in Swift."
s.description = <<-DESC
A Swift framework inspired by Apple's WWDC 2015
session Advanced NSOperations: https://developer.apple.com/videos/wwdc/2015/?id=226.
DESC
s.homepage = "https://github.com/ProcedureKit/ProcedureKit"
s.license = 'MIT'
s.authors = { "ProcedureKit Core Contributors" => "hello@procedure.kit.run" }
s.source = { :git => "https://github.com/ProcedureKit/ProcedureKit.git", :tag => s.version.to_s }
s.module_name = 'ProcedureKit'
s.social_media_url = 'https://twitter.com/danthorpe'
s.requires_arc = true
s.ios.deployment_target = '8.0'
s.watchos.deployment_target = '3.0'
s.tvos.deployment_target = '9.2'
s.osx.deployment_target = '10.10'
# Ensure the correct version of Swift is used
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' }
# Defaul spec is 'Standard'
s.default_subspec = 'Standard'
# Default core framework suitable for an iOS, watchOS, tvOS or macOS application
s.subspec 'Standard' do |ss|
ss.source_files = ['Sources/ProcedureKit']
ss.exclude_files = [
'Sources/TestingProcedureKit',
'Sources/ProcedureKitMobile',
'Sources/ProcedureKitMac',
'Sources/ProcedureKitTV',
'Sources/ProcedureKitNetwork',
'Sources/ProcedureKitCloud',
'Sources/ProcedureKitLocation'
]
end
# ProcedureKitNetwork
s.subspec 'Network' do |ss|
ss.dependency 'ProcedureKit/Standard'
ss.source_files = ['Sources/ProcedureKitNetwork']
end
# ProcedureKitLocation
s.subspec 'Location' do |ss|
ss.dependency 'ProcedureKit/Standard'
ss.frameworks = 'CoreLocation', 'MapKit'
ss.source_files = ['Sources/ProcedureKitLocation']
end
# ProcedureKitCloud
s.subspec 'Cloud' do |ss|
ss.dependency 'ProcedureKit/Standard'
ss.frameworks = 'CloudKit'
ss.source_files = ['Sources/ProcedureKitCloud']
end
# All cross-platform ProcedureKit
s.subspec 'All' do |ss|
ss.dependency 'ProcedureKit/Network'
ss.dependency 'ProcedureKit/Location'
ss.dependency 'ProcedureKit/Cloud'
end
# ProcedureKitMobile
s.subspec 'Mobile' do |ss|
ss.platforms = { :ios => "8.0" }
ss.dependency 'ProcedureKit/Standard'
ss.source_files = ['Sources/ProcedureKitMobile']
end
end