-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathADPhotoKit.podspec
84 lines (72 loc) · 3.15 KB
/
ADPhotoKit.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
#
# Be sure to run `pod lib lint ADPhotoKit.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 = 'ADPhotoKit'
s.version = '1.5.0'
s.summary = 'A library for select photos from album implemented by pure-Swift.'
# 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
ADPhotoKit is a pure-Swift library to select assets (e.g. photo,video,gif,livephoto) from system album.
DESC
s.homepage = 'https://github.com/duzexu/ADPhotoKit.git'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'duzexu' => '[email protected]' }
s.source = { :git => 'https://github.com/duzexu/ADPhotoKit.git', :tag => s.version.to_s }
s.documentation_url = 'https://duzexu.github.io/ADPhotoKit/'
s.ios.deployment_target = '10.0'
s.swift_version = '5.1'
s.requires_arc = true
s.frameworks = 'UIKit','Photos','PhotosUI','AVFoundation'
s.default_subspec = 'CoreUI'
s.subspec "DocC" do |d|
d.source_files = ["ADPhotoKit/ADPhotoKit.docc/**/*.*"]
end
s.subspec "Base" do |b|
b.dependency 'ADPhotoKit/DocC'
b.source_files = ["ADPhotoKit/Classes/Base/**/*.swift"]
b.resource_bundles = {
'ADPhotoKitBase' => ['ADPhotoKit/Assets/Base/**/*']
}
end
s.subspec "Core" do |c|
c.dependency 'ADPhotoKit/Base'
c.dependency 'Kingfisher', '~> 6.3.1'
c.source_files = ["ADPhotoKit/Classes/Core/**/*.swift"]
c.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'Module_Core'}
end
s.subspec "CoreUI" do |ui|
ui.dependency 'ADPhotoKit/Core'
ui.dependency 'SnapKit'
ui.source_files = ["ADPhotoKit/Classes/CoreUI/**/*.swift"]
ui.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'Module_UI'}
ui.resource_bundles = {
'ADPhotoKitCoreUI' => ['ADPhotoKit/Assets/CoreUI/**/*']
}
end
s.subspec "ImageEdit" do |img|
img.dependency 'ADPhotoKit/Base'
img.dependency 'SnapKit'
img.source_files = ["ADPhotoKit/Classes/ImageEdit/**/*.swift","ADPhotoKit/Classes/EditCore/**/*.swift"]
img.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'Module_ImageEdit'}
img.resource_bundles = {
'ADPhotoKitImageEdit' => ['ADPhotoKit/Assets/ImageEdit/**/*']
}
end
s.subspec "VideoEdit" do |video|
video.dependency 'ADPhotoKit/CoreUI'
video.source_files = ["ADPhotoKit/Classes/VideoEdit/**/*.swift","ADPhotoKit/Classes/EditCore/**/*.swift"]
video.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'Module_VideoEdit'}
video.resource_bundles = {
'ADPhotoKitVideoEdit' => ['ADPhotoKit/Assets/VideoEdit/**/*']
}
end
end