-
Notifications
You must be signed in to change notification settings - Fork 14
/
Reactant.podspec
executable file
·148 lines (132 loc) · 4.9 KB
/
Reactant.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#
# Be sure to run `pod lib lint ProjectBase.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |spec|
spec.name = 'Reactant'
spec.version = '1.3.1'
spec.summary = 'Reactant is a reactive architecture for iOS'
spec.description = <<-DESC
Reactant is a foundation for rapid and safe iOS development. It allows you to cut down your development costs by improving reusability, testability and safety of your code, especially your UI.
DESC
spec.homepage = 'https://www.reactant.tech'
spec.license = 'MIT'
spec.author = {
'Tadeas Kriz' => '[email protected]',
'Matous Hybl' => '[email protected]',
'Filip Dolnik' => '[email protected]',
'Matyas Kriz' => '[email protected]'
}
spec.source = {
:git => 'https://github.com/Brightify/Reactant.git',
:tag => spec.version.to_s
}
spec.social_media_url = 'https://twitter.com/BrightifyOrg'
spec.requires_arc = true
spec.ios.deployment_target = '10.0'
spec.tvos.deployment_target = '10.0'
spec.default_subspec = 'Core', 'Result'
spec.swift_version = '5.1'
def self.rxSwift(subspec)
subspec.dependency 'RxSwift', '~> 5.0'
end
def self.snapKit(subspec)
subspec.dependency 'SnapKit', '~> 5.0'
end
def self.rxCocoa(subspec)
subspec.dependency 'RxCocoa', '~> 5.0'
end
def self.rxDataSources(subspec)
subspec.dependency 'RxDataSources', '~> 4.0'
end
def self.rxOptional(subspec)
subspec.dependency 'RxOptional', '~> 4.0'
end
def self.kingfisher(subspec)
subspec.dependency 'Kingfisher', '~> 5.0'
end
spec.subspec 'Core' do |subspec|
subspec.frameworks = 'UIKit'
subspec.dependency 'Reactant/Configuration'
rxSwift(subspec)
rxCocoa(subspec)
rxOptional(subspec)
snapKit(subspec)
subspec.source_files = [
'Source/Core/**/*.swift',
'Source/Utils/**/*.swift'
]
end
spec.subspec 'Configuration' do |subspec|
subspec.frameworks = 'UIKit'
subspec.source_files = 'Source/Configuration/**/*.swift'
end
spec.subspec 'Result' do |subspec|
rxSwift(subspec)
rxOptional(subspec)
subspec.source_files = 'Source/Result/**/*.swift'
end
spec.subspec 'Validation' do |subspec|
subspec.source_files = 'Source/Validation/**/*.swift'
end
spec.subspec 'TableView' do |subspec|
subspec.frameworks = 'UIKit'
subspec.dependency 'Reactant/Core'
rxCocoa(subspec)
rxDataSources(subspec)
subspec.source_files = [
'Source/TableView/**/*.swift',
'Source/CollectionView/CollectionViewState.swift'
]
end
spec.subspec 'CollectionView' do |subspec|
subspec.frameworks = 'UIKit'
subspec.dependency 'Reactant/Core'
rxCocoa(subspec)
rxDataSources(subspec)
subspec.source_files = 'Source/CollectionView/**/*.swift'
end
spec.subspec 'ActivityIndicator' do |subspec|
subspec.frameworks = 'UIKit'
rxCocoa(subspec)
subspec.source_files = 'Source/ActivityIndicator/**/*.swift'
end
spec.subspec 'StaticMap' do |subspec|
subspec.frameworks = ['UIKit', 'MapKit']
subspec.dependency 'Reactant/Core'
rxCocoa(subspec)
kingfisher(subspec)
subspec.source_files = 'Source/StaticMap/**/*.swift'
end
spec.subspec 'FallbackSafeAreaInsets' do |subspec|
subspec.ios.deployment_target = '10.0'
subspec.tvos.deployment_target = '10.0'
subspec.dependency 'Reactant/Core'
subspec.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-DENABLE_SAFEAREAINSETS_FALLBACK'
}
end
spec.subspec 'All-iOS' do |subspec|
subspec.dependency 'Reactant/Core'
subspec.dependency 'Reactant/Configuration'
subspec.dependency 'Reactant/Result'
subspec.dependency 'Reactant/Validation'
subspec.dependency 'Reactant/TableView'
subspec.dependency 'Reactant/CollectionView'
subspec.dependency 'Reactant/StaticMap'
subspec.dependency 'Reactant/ActivityIndicator'
end
spec.subspec 'All-tvOS' do |subspec|
subspec.dependency 'Reactant/Core'
subspec.dependency 'Reactant/Configuration'
subspec.dependency 'Reactant/Result'
subspec.dependency 'Reactant/Validation'
subspec.dependency 'Reactant/TableView'
subspec.dependency 'Reactant/CollectionView'
subspec.dependency 'Reactant/StaticMap'
subspec.dependency 'Reactant/ActivityIndicator'
end
end