forked from SilenceLove/HXPHPicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HXPHPicker.podspec
62 lines (55 loc) · 2.51 KB
/
HXPHPicker.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
Pod::Spec.new do |spec|
spec.name = "HXPHPicker"
spec.version = "1.4.3"
spec.summary = "Photo selector - Support LivePhoto, GIF selection"
spec.homepage = "https://github.com/SilenceLove/HXPHPicker"
spec.license = { :type => "MIT", :file => "LICENSE" }
spec.author = { "SilenceLove" => "[email protected]" }
spec.swift_versions = ['5.0']
spec.ios.deployment_target = "12.0"
spec.source = { :git => "https://github.com/SilenceLove/HXPHPicker.git", :tag => "#{spec.version}" }
spec.framework = 'UIKit','Photos','PhotosUI'
spec.requires_arc = true
spec.default_subspec = 'Full'
spec.subspec 'Core' do |core|
core.source_files = "Sources/HXPHPicker/Core/**/*.{swift}"
core.resources = "Sources/HXPHPicker/Resources/*.{bundle}"
end
spec.subspec 'Picker' do |picker|
picker.subspec 'Lite' do |lite|
lite.source_files = "Sources/HXPHPicker/Picker/**/*.{swift}"
lite.dependency 'HXPHPicker/Core'
lite.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_PICKER' }
end
picker.subspec 'KF' do |kf|
kf.dependency 'HXPHPicker/Picker/Lite'
kf.dependency 'Kingfisher', '~> 7.0'
end
end
spec.subspec 'Editor' do |editor|
editor.subspec 'Lite' do |lite|
lite.source_files = "Sources/HXPHPicker/Editor/**/*.{swift}"
lite.dependency 'HXPHPicker/Core'
lite.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_EDITOR' }
end
editor.subspec 'KF' do |kf|
kf.dependency 'HXPHPicker/Editor/Lite'
kf.dependency 'Kingfisher', '~> 7.0'
end
end
spec.subspec 'Camera' do |camera|
camera.source_files = "Sources/HXPHPicker/Camera/**/*.{swift,metal}"
camera.dependency 'HXPHPicker/Core'
camera.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_CAMERA' }
end
spec.subspec 'Lite' do |lite|
lite.dependency 'HXPHPicker/Picker/Lite'
lite.dependency 'HXPHPicker/Editor/Lite'
lite.dependency 'HXPHPicker/Camera'
end
spec.subspec 'Full' do |full|
full.dependency 'HXPHPicker/Picker'
full.dependency 'HXPHPicker/Editor'
full.dependency 'HXPHPicker/Camera'
end
end