Skip to content

Commit dff22c1

Browse files
author
xiaoxiang
committed
🚀 Add cocopods
1 parent d69561e commit dff22c1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

PhotoPreview.podspec

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ Pod::Spec.new do |s|
88
s.platform = :ios, '13.0'
99

1010
s.source = { :git => 'https://github.com/xiaoxiaowesley/PhotoPreview.git', :tag => s.version.to_s }
11-
s.source_files = 'PhotoPreview/**/*.{swift}'
11+
s.source_files = 'Sources/PhotoPreview/*.swift'
1212
s.dependency 'SDWebImage', '~> 5.20.0'
13-
14-
s.test_spec 'Tests' do |test|
15-
test.source_files = 'PhotoPreviewTests/**/*.{swift}'
16-
test.dependency 'PhotoPreview'
17-
end
13+
14+
# 添加 Swift 版本
15+
s.swift_version = '5.0' # 根据您的项目选择合适的 Swift 版本
1816
end
1917

0 commit comments

Comments
 (0)