forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
poco.yaml.cake
254 lines (189 loc) · 6.25 KB
/
poco.yaml.cake
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
/////////////////////////////////////////////////////
// Objects used to represent a component.yaml file //
/////////////////////////////////////////////////////
// public abstract class PathsBase
// {
// [YamlMember(Alias = "ios-unified")]
// public List<string> iOSUnifiedPaths { get; set; }
// [YamlMember(Alias = "ios")]
// public List<string> iOSPaths { get; set; }
// [YamlMember(Alias = "android")]
// public List<string> AndroidPaths { get; set; }
// }
// public class Libraries : PathsBase
// {
// }
// public class Packages : PathsBase
// {
// }
// public class AdditionalFile
// {
// [YamlMember(Alias = "source")]
// public string SourcePath { get; set; }
// [YamlMember(Alias = "destination")]
// public string DestinationPath { get; set; }
// }
// public class NuGetInstaller
// {
// [YamlMember(Alias = "project")]
// public string ProjectName { get; set; }
// [YamlMember(Alias = "packages")]
// public List<string> PackagesNames { get; set; }
// }
// public class Sample
// {
// [YamlMember(Alias = "name")]
// public string Name { get; set; }
// [YamlMember(Alias = "path")]
// public string Path { get; set; }
// [YamlMember(Alias = "removeProjects")]
// public List<string> ProjectsToRemove { get; set; }
// [YamlMember(Alias = "installNuGets")]
// public NuGetInstaller NuGetsToInstall { get; set; }
// [YamlMember(Alias = "removeFiles")]
// public List<string> FilesToRemove { get; set; }
// [YamlMember(Alias = "removeNodes")]
// public List<string> NodesToRemove { get; set; }
// }
// public class Component
// {
// [YamlMember(Alias = "version")]
// public string Version { get; set; }
// [YamlMember(Alias = "name")]
// public string Name { get; set; }
// [YamlMember(Alias = "id")]
// public string Id { get; set; }
// [YamlMember(Alias = "publisher")]
// public string Publisher { get; set; }
// [YamlMember(Alias = "license")]
// public string LicensePath { get; set; }
// [YamlMember(Alias = "publisher-url")]
// public string PublisherUrl { get; set; }
// [YamlMember(Alias = "src-url")]
// public string SourceUrl { get; set; }
// [YamlMember(Alias = "summary")]
// public string Summary { get; set; }
// [YamlMember(Alias = "icons")]
// public List<string> IconsPath { get; set; }
// [YamlMember(Alias = "docs-url")]
// public string DocsUrl { get; set; }
// [YamlMember(Alias = "libraries")]
// public Libraries Libraries { get; set; }
// [YamlMember(Alias = "is_shell")]
// public bool IsShell { get; set; }
// [YamlMember(Alias = "packages")]
// public Packages Packages { get; set; }
// [YamlMember(Alias = "samples")]
// public List<Sample> Samples { get; set; }
// [YamlMember(Alias = "local-nuget-repo")]
// public string LocalNuGetRepoPath { get; set; }
// [YamlMember(Alias = "no_build")]
// public bool NoBuild { get; set; }
// [YamlMember(Alias = "additional-files")]
// public List<AdditionalFile> AdditionalFiles { get; set; }
// }
///////////////////////////////////////////////////////////
// Temporary objects with JsonProperty attribute used to //
// represent a component.yaml file due YamlDotNet bug in //
// v3.8.0 //
///////////////////////////////////////////////////////////
public abstract class PathsBase
{
[JsonProperty ("ios-unified")]
[YamlMember(Alias = "ios-unified")]
public List<string> iOSUnifiedPaths { get; set; }
[JsonProperty ("ios")]
[YamlMember(Alias = "ios")]
public List<string> iOSPaths { get; set; }
[JsonProperty ("android")]
[YamlMember(Alias = "android")]
public List<string> AndroidPaths { get; set; }
}
public class Libraries : PathsBase
{
}
public class Packages : PathsBase
{
}
public class AdditionalFile
{
[JsonProperty ("source")]
[YamlMember(Alias = "source")]
public string SourcePath { get; set; }
[JsonProperty ("destination")]
[YamlMember(Alias = "destination")]
public string DestinationPath { get; set; }
}
public class NuGetInstaller
{
[JsonProperty ("project")]
[YamlMember(Alias = "project")]
public string ProjectName { get; set; }
[JsonProperty ("packages")]
[YamlMember(Alias = "packages")]
public List<string> PackagesNames { get; set; }
}
public class Sample
{
[YamlMember(Alias = "name")]
public string Name { get; set; }
[YamlMember(Alias = "path")]
public string Path { get; set; }
[JsonProperty ("removeProjects")]
[YamlMember(Alias = "removeProjects")]
public List<string> ProjectsToRemove { get; set; }
[JsonProperty ("installNuGets")]
[YamlMember(Alias = "installNuGets")]
public List<NuGetInstaller> NuGetsToInstall { get; set; }
[JsonProperty ("removeFiles")]
[YamlMember(Alias = "removeFiles")]
public List<string> FilesToRemove { get; set; }
[JsonProperty ("removeNodes")]
[YamlMember(Alias = "removeNodes")]
public List<string> NodesToRemove { get; set; }
}
public class Component
{
[YamlMember(Alias = "version")]
public string Version { get; set; }
[YamlMember(Alias = "name")]
public string Name { get; set; }
[YamlMember(Alias = "id")]
public string Id { get; set; }
[YamlMember(Alias = "publisher")]
public string Publisher { get; set; }
[JsonProperty ("publisher-url")]
[YamlMember(Alias = "publisher-url")]
public string PublisherUrl { get; set; }
[YamlMember(Alias = "license")]
public string LicensePath { get; set; }
[JsonProperty ("src-url")]
[YamlMember(Alias = "src-url")]
public string SourceUrl { get; set; }
[YamlMember(Alias = "summary")]
public string Summary { get; set; }
[JsonProperty ("icons")]
[YamlMember(Alias = "icons")]
public List<string> IconsPath { get; set; }
[JsonProperty ("docs-url")]
[YamlMember(Alias = "docs-url")]
public string DocsUrl { get; set; }
[YamlMember(Alias = "libraries")]
public Libraries Libraries { get; set; }
[JsonProperty ("is_shell")]
[YamlMember(Alias = "is_shell")]
public bool IsShell { get; set; }
[YamlMember(Alias = "packages")]
public Packages Packages { get; set; }
[YamlMember(Alias = "samples")]
public List<Sample> Samples { get; set; }
[JsonProperty ("local-nuget-repo")]
[YamlMember(Alias = "local-nuget-repo")]
public string LocalNuGetRepoPath { get; set; }
[JsonProperty ("no_build")]
[YamlMember(Alias = "no_build")]
public bool NoBuild { get; set; }
[JsonProperty ("additional-files")]
[YamlMember(Alias = "additional-files")]
public List<AdditionalFile> AdditionalFiles { get; set; }
}