forked from AnyImageKit/AnyImageKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AnyImageKit.podspec
55 lines (49 loc) · 2.23 KB
/
AnyImageKit.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
Pod::Spec.new do |s|
s.name = 'AnyImageKit'
s.version = '0.13.5'
s.license = 'MIT'
s.summary = 'AnyImageKit is a toolbox for picking and editing photos.'
s.homepage = 'https://github.com/AnyImageProject/AnyImageKit'
s.authors = {
'anotheren' => '[email protected]',
'RayJiang16' => '[email protected]',
}
s.source = { :git => 'https://github.com/AnyImageProject/AnyImageKit.git', :tag => s.version }
s.ios.deployment_target = '12.0'
s.swift_versions = ['5.3']
s.frameworks = 'Foundation'
s.default_subspecs = 'Core', 'Picker', 'Editor', 'Capture'
s.subspec 'Core' do |core|
core.source_files = 'Sources/AnyImageKit/Core/**/*.swift'
core.resource_bundles = {
'AnyImageKit_Core' => ['Sources/AnyImageKit/Resources/Core/**/*']
}
core.dependency 'SnapKit'
core.dependency 'Kingfisher'
end
s.subspec 'Picker' do |picker|
picker.source_files = 'Sources/AnyImageKit/Picker/**/*.swift'
picker.resource_bundles = {
'AnyImageKit_Picker' => ['Sources/AnyImageKit/Resources/Picker/**/*']
}
picker.dependency 'AnyImageKit/Core'
picker.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'ANYIMAGEKIT_ENABLE_PICKER' }
end
s.subspec 'Editor' do |editor|
editor.source_files = 'Sources/AnyImageKit/Editor/**/*.swift'
editor.resource_bundles = {
'AnyImageKit_Editor' => ['Sources/AnyImageKit/Resources/Editor/**/*']
}
editor.dependency 'AnyImageKit/Core'
editor.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'ANYIMAGEKIT_ENABLE_EDITOR' }
end
s.subspec 'Capture' do |capture|
capture.source_files = 'Sources/AnyImageKit/Capture/**/*.{swift,metal}'
capture.resource_bundles = {
'AnyImageKit_Capture' => ['Sources/AnyImageKit/Resources/Capture/**/*']
}
capture.ios.pod_target_xcconfig = { 'METAL_LIBRARY_OUTPUT_DIR' => '${TARGET_BUILD_DIR}/AnyImageKit_Capture.bundle/' }
capture.dependency 'AnyImageKit/Core'
capture.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'ANYIMAGEKIT_ENABLE_CAPTURE' }
end
end