-
-
Notifications
You must be signed in to change notification settings - Fork 206
/
KSPlayer.podspec
73 lines (67 loc) · 2.64 KB
/
KSPlayer.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
Pod::Spec.new do |s|
s.name = 'KSPlayer'
s.version = '1.1.0'
s.summary = 'Video Player Using Swift, based on AVPlayer,FFmpeg'
s.description = <<-DESC
Video Player Using Swift, based on ffmpeg, support for the horizontal screen, vertical screen, the upper and lower slide to adjust the volume, the screen brightness, or so slide to adjust the playback progress.
DESC
s.homepage = 'https://github.com/kingslay/KSPlayer'
s.authors = { 'kintan' => '[email protected]' }
s.license = 'MIT'
s.source = { :git => 'https://github.com/kingslay/KSPlayer.git', :tag => s.version.to_s }
s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
# s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '13.0'
s.static_framework = true
s.subspec 'Subtitle' do |ss|
ss.source_files = 'Sources/KSPlayer/Subtitle/*.{swift}'
ss.frameworks = 'Foundation'
end
s.subspec 'Metal' do |ss|
ss.source_files = 'Sources/KSPlayer/Metal/*.{swift,metal}'
ss.resource_bundles = {
'KSPlayer_KSPlayer' => ['Sources/KSPlayer/Metal/*.metal']
}
ss.weak_framework = 'MetalKit'
end
#AVPlayer播放内核
s.subspec 'AVPlayer' do |ss|
ss.source_files = 'Sources/KSPlayer/AVPlayer/*.{swift}'
ss.frameworks = 'AVFoundation'
ss.ios.frameworks = 'UIKit'
ss.tvos.frameworks = 'UIKit'
ss.osx.frameworks = 'AppKit'
ss.dependency 'DisplayCriteria'
end
#ffmpeg播放内核
s.subspec 'MEPlayer' do |ss|
ss.source_files = 'Sources/KSPlayer/MEPlayer/**/*.{swift}'
ss.frameworks = 'AudioToolbox', 'VideoToolbox'
ss.dependency 'FFmpegKit'
ss.dependency 'KSPlayer/AVPlayer'
ss.dependency 'KSPlayer/Metal'
ss.dependency 'KSPlayer/Subtitle'
end
s.subspec 'Core' do |ss|
ss.source_files = 'Sources/KSPlayer/Core/*'
ss.dependency 'KSPlayer/AVPlayer'
end
s.subspec 'SwiftUI'do |ss|
ss.source_files = 'Sources/KSPlayer/SwiftUI/*.swift'
ss.dependency 'KSPlayer/AVPlayer'
end
s.subspec 'Audio'do |ss|
ss.source_files = 'Sources/KSPlayer/Audio/*.swift'
ss.dependency 'KSPlayer/Core'
end
s.subspec 'Video' do |ss|
ss.source_files = 'Sources/KSPlayer/Video/*.swift'
ss.dependency 'KSPlayer/Core'
ss.dependency 'KSPlayer/Subtitle'
end
s.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'Tests/KSPlayerTests/*.swift'
test_spec.resources = 'Tests/KSPlayerTests/Resources/*'
end
end