-
Notifications
You must be signed in to change notification settings - Fork 14
/
Longinus.podspec
90 lines (74 loc) · 3.82 KB
/
Longinus.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# Be sure to run `pod lib lint Longinus.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'Longinus'
s.version = '1.1.17'
s.summary = 'Longinus is a pure-Swift high-performance asynchronous web image loading and caching framework.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
Longinus is a pure-Swift high-performance asynchronous web image loading and caching framework.
* Asynchronous image downloading and caching.
* Preload images and cache them to disk for further showing.
* Animated GIF support (dynamic buffer, lower memory usage).
* Baseline/progressive/interlaced image decode support.
* View extensions for UIImageView, UIButton, MKAnnotationView and CALayer to directly set an image from a URL.
* Image loading category for UIImageView, UIButton and CALayer.
* Built-in transition animation when setting images.(or you can set your custom image showing transion)
* Image Transform after downloading supported: blur, round corner, resize, color tint, crop, rotate and more.
* High performance memory and disk image cache. Use LRU algorithm to manage. For disk cache, it use file system and sqlite for better performance.
* Use FIFO queue to handle image downloading operation.
* Smooth sliding without UI lags. High performance image caching and decoding to avoid main thread blocked.
DESC
s.homepage = 'https://github.com/KittenYang/Longinus'
s.screenshots = 'https://github.com/KittenYang/Longinus/raw/master/Assets/Logo.png'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'KittenYang' => 'kittenyang@icloud.com' }
s.source = { :git => 'https://github.com/KittenYang/Longinus.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/KittenYang'
s.swift_version = "5.0"
s.ios.deployment_target = '10.0'
# s.osx.deployment_target = "10.15"
s.requires_arc = true
s.default_subspec = 'General'
# ---- subspec -----
s.subspec 'General' do |ss|
ss.source_files = ["Sources/General/*.swift"]
ss.dependency "Longinus/Networking"
end
s.subspec 'Cache' do |ss|
ss.source_files = 'Sources/Cache/*.swift'
ss.dependency "Longinus/Utility"
end
s.subspec 'ImageCode' do |ss|
ss.source_files = 'Sources/ImageCode/*.swift'
ss.dependency "Longinus/Utility"
end
s.subspec 'Networking' do |ss|
ss.source_files = 'Sources/Networking/*.swift'
ss.dependency "Longinus/ImageCode"
ss.dependency "Longinus/Cache"
end
s.subspec 'Utility' do |ss|
ss.source_files = 'Sources/Utility/*.swift'
end
s.subspec 'SwiftUI' do |ss|
ss.source_files = 'Sources/SwiftUI/*.swift'
ss.dependency "Longinus/General"
ss.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-weak_framework SwiftUI' }
end
# s.resource_bundles = {
# 'Longinus' => ['Longinus/Assets/*.png']
# }
# s.public_header_files = 'Pod/Classes/**/*.h'
s.ios.frameworks = 'UIKit', 'Foundation'
# s.dependency 'AFNetworking', '~> 2.3'
end