-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMoya-Pretty.podspec
79 lines (66 loc) · 2.72 KB
/
Moya-Pretty.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
74
75
76
77
78
79
Pod::Spec.new do |s|
s.name = 'Moya-Pretty'
s.version = '4.0.0-alpha.2'
s.summary = 'Codable, ObjectMapper, RxSwift, PromiseKit, RESTful extensions for Moya.'
s.description = <<-DESC
*Moya-Pretty* provides many convenient extensions like *generic class-based target*, *plugins*, even *RESTful traits*. This allows you to declare [Moya](https://github.com/Moya/Moya) Target more pretty and without writing those extensions again by yourself.
DESC
s.homepage = 'https://github.com/arthurgau0419/Moya-Pretty'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'ObiCat' => '[email protected]' }
s.source = { :git => 'https://github.com/arthurgau0419/Moya-Pretty.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/Arthurgau'
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.subspec 'Core' do |ss|
ss.dependency 'Moya', '~> 15.0.0-alpha'
ss.source_files = 'Moya-Pretty/Classes/**/*'
end
s.subspec 'Combine' do |ss|
ss.source_files = 'Moya-Pretty/SubSpec/Combine/Sources/*'
ss.dependency 'Moya-Pretty/Core'
ss.dependency 'Moya/Combine', '~> 15.0.0-alpha'
ss.ios.deployment_target = '13.0'
ss.osx.deployment_target = '10.15'
end
s.subspec 'Japx' do |ss|
ss.source_files = 'Moya-Pretty/SubSpec/Japx/Sources/*'
ss.dependency 'Moya-Pretty/Core'
ss.dependency 'Japx/Codable'
end
s.subspec 'ObjectMapper' do |ss|
ss.source_files = 'Moya-Pretty/SubSpec/ObjectMapper/Sources/*'
ss.dependency 'Moya-Pretty/Core'
ss.dependency 'ObjectMapper'
end
s.subspec 'XMLDictionary' do |ss|
ss.source_files = 'Moya-Pretty/SubSpec/XMLDictionary/Sources/*'
ss.dependency 'Moya-Pretty/ObjectMapper'
ss.dependency 'XMLDictionary'
end
s.subspec 'PromiseKit' do |ss|
ss.source_files = 'Moya-Pretty/SubSpec/Promise/Sources/*'
ss.dependency 'Moya-Pretty/Core'
ss.dependency 'PromiseKit'
end
s.subspec 'RxSwift' do |ss|
ss.source_files = 'Moya-Pretty/SubSpec/RxSwift/Sources/*'
ss.dependency 'Moya-Pretty/Core'
ss.dependency 'Moya/RxSwift', '~> 15.0.0-alpha'
end
s.subspec 'ReactiveSwift' do |ss|
ss.source_files = 'Moya-Pretty/SubSpec/ReactiveSwift/Sources/*'
ss.dependency 'Moya-Pretty/Core'
ss.dependency 'Moya/ReactiveSwift', '~> 15.0.0-alpha'
end
s.subspec 'RESTful' do |ss|
ss.dependency 'Moya-Pretty/Core'
ss.source_files = 'Moya-Pretty/SubSpec/RESTful/Sources/*'
end
s.subspec 'Plugins' do |ss|
ss.dependency 'Moya-Pretty/Core'
ss.source_files = 'Moya-Pretty/SubSpec/Plugins/Sources/*'
end
s.default_subspecs = ['Core']
s.swift_versions = ['5.0', '5.1']
end