11Pod ::Spec . new do |spec |
22 spec . name = "HXPhotoPicker"
3- spec . version = "4.2.5 "
3+ spec . version = "5.0.0 "
44 spec . summary = "照片/视频选择器 - 支持LivePhoto、GIF图片选择、自定义编辑照片/视频、3DTouch预览、浏览网络图片/网络视频 功能 - Imitation weibo photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, browse the web image function"
55 spec . homepage = "https://github.com/SilenceLove/HXPhotoPicker"
66 spec . license = { :type => "MIT" , :file => "LICENSE" }
77 spec . author = { "SilenceLove" => "[email protected] " } 88
99 spec . swift_versions = [ '5.0' ]
10- spec . platform = :ios , "13 .0"
11- spec . ios . deployment_target = "13 .0"
10+ spec . platform = :ios , "10 .0"
11+ spec . ios . deployment_target = "10 .0"
1212 spec . source = { :git => "https://github.com/SilenceLove/HXPhotoPicker.git" , :tag => "#{ spec . version } " }
1313
1414 spec . framework = 'UIKit' , 'Photos' , 'PhotosUI'
1515 spec . requires_arc = true
16- spec . default_subspec = 'Full '
16+ spec . default_subspec = 'Default '
1717
1818 spec . subspec 'Core' do |core |
1919 core . source_files = "Sources/HXPhotoPicker/Core/**/*.{swift}"
2020 core . dependency 'HXPhotoPicker/Resources'
21+ core . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_CORE' }
2122 end
2223
2324 spec . subspec 'Resources' do |resources |
@@ -26,40 +27,21 @@ Pod::Spec.new do |spec|
2627 end
2728
2829 spec . subspec 'Picker' do |picker |
29- picker . subspec 'Lite' do |lite |
30- lite . source_files = "Sources/HXPhotoPicker/Picker/**/*.{swift}"
31- lite . dependency 'HXPhotoPicker/Core'
32- lite . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_PICKER' }
33- end
34- picker . subspec 'KF' do |kf |
35- kf . dependency 'HXPhotoPicker/Picker/Lite'
36- kf . dependency 'Kingfisher' , '~> 8.0'
37- end
30+ picker . source_files = "Sources/HXPhotoPicker/Picker/**/*.{swift}"
31+ picker . dependency 'HXPhotoPicker/Core'
32+ picker . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_PICKER' }
3833 end
3934
4035 spec . subspec 'Editor' do |editor |
41- editor . subspec 'Lite' do |lite |
42- lite . source_files = "Sources/HXPhotoPicker/Editor/**/*.{swift}"
43- lite . dependency 'HXPhotoPicker/EditorView/Lite'
44- lite . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_EDITOR' }
45- end
46- editor . subspec 'KF' do |kf |
47- kf . dependency 'HXPhotoPicker/EditorView/KF'
48- kf . dependency 'HXPhotoPicker/Editor/Lite'
49- kf . dependency 'Kingfisher' , '~> 8.0'
50- end
36+ editor . source_files = "Sources/HXPhotoPicker/Editor/**/*.{swift}"
37+ editor . dependency 'HXPhotoPicker/EditorView'
38+ editor . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_EDITOR' }
5139 end
5240
5341 spec . subspec 'EditorView' do |editor_view |
54- editor_view . subspec 'Lite' do |lite |
55- lite . source_files = "Sources/HXPhotoPicker/Editor+View/**/*.{swift}"
56- lite . dependency 'HXPhotoPicker/Core'
57- lite . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_EDITOR_VIEW' }
58- end
59- editor_view . subspec 'KF' do |kf |
60- kf . dependency 'HXPhotoPicker/EditorView/Lite'
61- kf . dependency 'Kingfisher' , '~> 8.0'
62- end
42+ editor_view . source_files = "Sources/HXPhotoPicker/Editor+View/**/*.{swift}"
43+ editor_view . dependency 'HXPhotoPicker/Core'
44+ editor_view . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_EDITOR_VIEW' }
6345 end
6446
6547 spec . subspec 'Camera' do |camera |
@@ -69,27 +51,51 @@ Pod::Spec.new do |spec|
6951 lite . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_CAMERA' }
7052 end
7153 camera . subspec 'Location' do |loca |
54+ loca . dependency 'HXPhotoPicker/Camera/Lite'
7255 loca . source_files = "Sources/HXPhotoPicker/Camera+Location/**/*.{swift}"
7356 loca . pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'HXPICKER_ENABLE_CAMERA_LOCATION' }
74- loca . dependency 'HXPhotoPicker/Camera/Lite'
7557 end
7658 end
7759
78- spec . subspec 'Lite' do |lite |
79- lite . dependency 'HXPhotoPicker/Picker/Lite'
80- lite . dependency 'HXPhotoPicker/Editor/Lite'
81- lite . dependency 'HXPhotoPicker/Camera/Lite'
82- end
83-
8460 spec . subspec 'NoLocation' do |noLocation |
8561 noLocation . dependency 'HXPhotoPicker/Picker'
8662 noLocation . dependency 'HXPhotoPicker/Editor'
8763 noLocation . dependency 'HXPhotoPicker/Camera/Lite'
8864 end
8965
90- spec . subspec 'Full' do |full |
91- full . dependency 'HXPhotoPicker/Picker'
92- full . dependency 'HXPhotoPicker/Editor'
93- full . dependency 'HXPhotoPicker/Camera'
66+ spec . subspec 'GIFImageView' do |sd |
67+ sd . source_files = "Sources/ImageView/GIFImageView.swift"
68+ sd . dependency 'SwiftyGif'
69+ end
70+
71+ spec . subspec 'KFImageView' do |kf |
72+ kf . source_files = "Sources/ImageView/KFImageView.swift"
73+ kf . dependency 'Kingfisher'
74+ end
75+
76+ spec . subspec 'SDImageView' do |sd |
77+ sd . source_files = "Sources/ImageView/SDImageView.swift"
78+ sd . dependency 'SDWebImage'
79+ end
80+
81+ spec . subspec 'SwiftyGif' do |sd |
82+ sd . dependency 'HXPhotoPicker/Default'
83+ sd . dependency 'HXPhotoPicker/GIFImageView'
84+ end
85+
86+ spec . subspec 'Kingfisher' do |kf |
87+ kf . dependency 'HXPhotoPicker/Default'
88+ kf . dependency 'HXPhotoPicker/KFImageView'
89+ end
90+
91+ spec . subspec 'SDWebImage' do |sd |
92+ sd . dependency 'HXPhotoPicker/Default'
93+ sd . dependency 'HXPhotoPicker/SDImageView'
94+ end
95+
96+ spec . subspec 'Default' do |default |
97+ default . dependency 'HXPhotoPicker/Picker'
98+ default . dependency 'HXPhotoPicker/Editor'
99+ default . dependency 'HXPhotoPicker/Camera'
94100 end
95101end
0 commit comments