forked from tomlokhorst/Promissum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPromissum.podspec
46 lines (35 loc) · 1.84 KB
/
Promissum.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Pod::Spec.new do |s|
s.name = "Promissum"
s.version = "5.0.0"
s.license = "MIT"
s.summary = "A promises library written in Swift featuring combinators like map, flatMap, whenAll, whenAny."
s.description = <<-DESC
Promissum is a promise library written in Swift. It features some known functions from Functional Programming like, `map` and `flatMap`.
It has useful combinators for working with promises like; `whenAll` for doing something when multiple promises complete, and `whenAny` for doing something when a single one of a list of promises completes. As well as their binary counterparts: `whenBoth` and `whenEither`.
Promissum really shines when used to combine asynchronous operations from different libraries. There are currently some basic extensions to UIKit and Alamofire, and contributions for extensions to other libraries are very welcome.
DESC
s.authors = { "Tom Lokhorst" => "[email protected]" }
s.social_media_url = "https://twitter.com/tomlokhorst"
s.homepage = "https://github.com/tomlokhorst/Promissum"
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '3.0'
s.source = { :git => "https://github.com/tomlokhorst/Promissum.git", :tag => s.version }
s.requires_arc = true
s.default_subspec = "Core"
s.swift_version = "5.1"
s.subspec "Core" do |ss|
ss.source_files = "Sources/Promissum"
end
s.subspec "Alamofire" do |ss|
ss.source_files = "sources/PromissumAlamofire/Alamofire+Promise.swift"
ss.dependency "Promissum/Core"
ss.dependency "Alamofire", "~> 5.0"
end
s.subspec "UIKit" do |ss|
ss.ios.deployment_target = '10.0'
ss.source_files = "sources/PromissumUIKit/UIKit+Promise.swift"
ss.dependency "Promissum/Core"
end
end