forked from onevcat/Kingfisher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kingfisher.podspec
59 lines (45 loc) · 2.94 KB
/
Kingfisher.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
47
48
49
50
51
52
53
54
55
56
57
58
59
Pod::Spec.new do |s|
s.name = "Kingfisher"
s.version = "5.13.3"
s.summary = "A lightweight and pure Swift implemented library for downloading and cacheing image from the web."
s.description = <<-DESC
Kingfisher is a powerful and pure Swift implemented library for downloading and cacheing image from the web. It provides you a chance to use pure Swift alternation in your next app.
* Everything in Kingfisher goes asynchronously, not only downloading, but also caching. That means you can never worry about blocking your UI thread.
* Multiple-layer cache. Downloaded image will be cached in both memory and disk. So there is no need to download it again and this could boost your app dramatically.
* Cache management. You can set the max duration or size the cache could take. And the cache will also be cleaned automatically to prevent taking too much resource.
* Modern framework. Kingfisher uses `NSURLSession` and the latest technology of GCD, which makes it a strong and swift framework. It also provides you easy APIs to use.
* Cancellable processing task. You can cancel the downloading or retriving image process if it is not needed anymore.
* Independent components. You can use the downloader or caching system separately. Or even create your own cache based on Kingfisher's code.
* Options to decompress the image in background before render it, which could improve the UI performance.
* A category over `UIImageView` for setting image from an url directly.
DESC
s.homepage = "https://github.com/onevcat/Kingfisher"
s.screenshots = "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/logo.png"
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { "onevcat" => "[email protected]" }
s.social_media_url = "https://twitter.com/onevcat"
s.swift_version = "4.2"
s.swift_versions = ['4.0', '4.2', '5.0']
s.ios.deployment_target = "10.0"
s.tvos.deployment_target = "10.0"
s.osx.deployment_target = "10.12"
s.watchos.deployment_target = "3.0"
s.source = { :git => "https://github.com/onevcat/Kingfisher.git", :tag => s.version }
s.default_subspecs = "Core"
s.requires_arc = true
s.frameworks = "CFNetwork", "Accelerate"
s.subspec "Core" do |sp|
sp.source_files = ["Sources/**/*.swift", "Sources/Kingfisher.h"]
sp.exclude_files = ["Sources/SwiftUI/**"]
end
s.subspec "SwiftUI" do |sp|
sp.source_files = ["Sources/SwiftUI/**"]
sp.exclude_files = ["Sources/SwiftUI/Delegate.swift"]
sp.dependency "Kingfisher/Core"
sp.ios.deployment_target = "13.0"
sp.tvos.deployment_target = "13.0"
sp.osx.deployment_target = "10.15"
sp.watchos.deployment_target = "6.0"
sp.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DKingfisherCocoaPods' }
end
end