forked from infinum/Japx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Japx.podspec
88 lines (71 loc) · 2.85 KB
/
Japx.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
80
81
82
83
84
85
86
87
88
Pod::Spec.new do |s|
s.name = 'Japx'
s.version = '1.0.3'
s.summary = 'Lightweight JSON:API parser.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
Lightweight JSON:API parser that flattens complex JSON:API structure and turns it into simple JSON. It can also take simple JSON and turn it into JSON:API structure.
It works by transfering Dictionary to Dictionary, so you can use Codable, Unbox, Wrap, ObjectMapper, or any other object mapping tool that you preffer.
DESC
s.homepage = 'https://github.com/infinum/Japx'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Infinum' => 'ios@infinum.hr', 'Vlaho Poluta' => 'vlaho.poluta@infinum.hr', 'Filip Gulan' => 'filip.gulan@infinum.hr' }
s.source = { :git => 'https://github.com/infinum/Japx.git', :tag => s.version.to_s }
s.requires_arc = true
s.ios.deployment_target = '9.0'
s.swift_version = '4.1'
s.default_subspec = 'Core'
s.subspec 'Core' do |sp|
sp.source_files = 'Japx/Classes/Core/**/*'
sp.frameworks = 'Foundation'
end
s.subspec 'Codable' do |sp|
sp.source_files = 'Japx/Classes/Codable/**/*'
sp.dependency 'Japx/Core'
end
s.subspec 'Alamofire' do |sp|
sp.source_files = 'Japx/Classes/Alamofire/**/*'
sp.dependency 'Japx/Core'
sp.dependency 'Alamofire', '~> 4.5'
end
s.subspec 'RxAlamofire' do |sp|
sp.source_files = 'Japx/Classes/RxAlamofire/**/*'
sp.dependency 'Japx/Alamofire'
sp.dependency 'RxSwift', '~> 4.0'
end
s.subspec 'CodableAlamofire' do |sp|
sp.source_files = 'Japx/Classes/CodableAlamofire/**/*'
sp.dependency 'Japx/Alamofire'
sp.dependency 'Japx/Codable'
end
s.subspec 'RxCodableAlamofire' do |sp|
sp.source_files = 'Japx/Classes/RxCodableAlamofire/**/*'
sp.dependency 'Japx/CodableAlamofire'
sp.dependency 'Japx/RxAlamofire'
end
s.subspec 'Moya' do |sp|
sp.source_files = 'Japx/Classes/Moya/**/*'
sp.dependency 'Japx/Core'
sp.dependency 'Moya/RxSwift', '~> 11.0'
end
s.subspec 'RxMoya' do |sp|
sp.source_files = 'Japx/Classes/RxMoya/**/*'
sp.dependency 'Japx/Moya'
end
s.subspec 'CodableMoya' do |sp|
sp.source_files = 'Japx/Classes/CodableMoya/**/*'
sp.dependency 'Japx/Core'
sp.dependency 'Japx/Codable'
sp.dependency 'Japx/Moya'
end
s.subspec 'RxCodableMoya' do |sp|
sp.source_files = 'Japx/Classes/RxCodableMoya/**/*'
sp.dependency 'Japx/Core'
sp.dependency 'Japx/CodableMoya'
sp.dependency 'Japx/RxMoya'
end
end