@@ -14,7 +14,193 @@ public function getName(): string
14
14
15
15
public function getFiles (): array
16
16
{
17
- return \array_merge (parent ::getFiles (), [
17
+ return [
18
+ [
19
+ 'scope ' => 'default ' ,
20
+ 'destination ' => 'README.md ' ,
21
+ 'template ' => 'swift/README.md.twig ' ,
22
+ ],
23
+ [
24
+ 'scope ' => 'default ' ,
25
+ 'destination ' => 'CHANGELOG.md ' ,
26
+ 'template ' => 'swift/CHANGELOG.md.twig ' ,
27
+ ],
28
+ [
29
+ 'scope ' => 'default ' ,
30
+ 'destination ' => 'LICENSE ' ,
31
+ 'template ' => 'swift/LICENSE.twig ' ,
32
+ ],
33
+ [
34
+ 'scope ' => 'default ' ,
35
+ 'destination ' => 'Package.swift ' ,
36
+ 'template ' => 'swift/Package.swift.twig ' ,
37
+ ],
38
+ [
39
+ 'scope ' => 'method ' ,
40
+ 'destination ' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md ' ,
41
+ 'template ' => 'swift/docs/example.md.twig ' ,
42
+ ],
43
+ [
44
+ 'scope ' => 'default ' ,
45
+ 'destination ' => '/Tests/{{ spec.title | caseUcfirst}}Tests/Tests.swift ' ,
46
+ 'template ' => 'swift/Tests/Tests.swift.twig ' ,
47
+ ],
48
+ [
49
+ 'scope ' => 'default ' ,
50
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Models/{{ spec.title | caseUcfirst}}Error.swift ' ,
51
+ 'template ' => '/swift/Sources/Models/Error.swift.twig ' ,
52
+ ],
53
+ [
54
+ 'scope ' => 'default ' ,
55
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Models/InputFile.swift ' ,
56
+ 'template ' => 'swift/Sources/Models/InputFile.swift.twig ' ,
57
+ ],
58
+ [
59
+ 'scope ' => 'default ' ,
60
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Permission.swift ' ,
61
+ 'template ' => 'swift/Sources/Permission.swift.twig ' ,
62
+ ],
63
+ [
64
+ 'scope ' => 'default ' ,
65
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Role.swift ' ,
66
+ 'template ' => 'swift/Sources/Role.swift.twig ' ,
67
+ ],
68
+ [
69
+ 'scope ' => 'default ' ,
70
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/ID.swift ' ,
71
+ 'template ' => 'swift/Sources/ID.swift.twig ' ,
72
+ ],
73
+ [
74
+ 'scope ' => 'default ' ,
75
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Query.swift ' ,
76
+ 'template ' => 'swift/Sources/Query.swift.twig ' ,
77
+ ],
78
+ [
79
+ 'scope ' => 'default ' ,
80
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Models/UploadProgress.swift ' ,
81
+ 'template ' => 'swift/Sources/Models/UploadProgress.swift.twig ' ,
82
+ ],
83
+ [
84
+ 'scope ' => 'default ' ,
85
+ 'destination ' => '/Sources/JSONCodable/Codable+JSON.swift ' ,
86
+ 'template ' => 'swift/Sources/JSONCodable/Codable+JSON.swift.twig ' ,
87
+ ],
88
+ [
89
+ 'scope ' => 'default ' ,
90
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Extensions/Cookie+Codable.swift ' ,
91
+ 'template ' => 'swift/Sources/Extensions/Cookie+Codable.swift.twig ' ,
92
+ ],
93
+ [
94
+ 'scope ' => 'default ' ,
95
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Extensions/HTTPClientRequest+Cookies.swift ' ,
96
+ 'template ' => 'swift/Sources/Extensions/HTTPClientRequest+Cookies.swift.twig ' ,
97
+ ],
98
+ [
99
+ 'scope ' => 'default ' ,
100
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Extensions/String+MimeTypes.swift ' ,
101
+ 'template ' => 'swift/Sources/Extensions/String+MimeTypes.swift.twig ' ,
102
+ ],
103
+ [
104
+ 'scope ' => 'default ' ,
105
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/StreamingDelegate.swift ' ,
106
+ 'template ' => 'swift/Sources/StreamingDelegate.swift.twig ' ,
107
+ ],
108
+ [
109
+ 'scope ' => 'default ' ,
110
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Services/Service.swift ' ,
111
+ 'template ' => 'swift/Sources/Service.swift.twig ' ,
112
+ ],
113
+ [
114
+ 'scope ' => 'default ' ,
115
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/iOS/IOSDeviceInfo.swift ' ,
116
+ 'template ' => 'swift/Sources/DeviceInfo/iOS/IOSDeviceInfo.swift ' ,
117
+ ],
118
+ [
119
+ 'scope ' => 'default ' ,
120
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/iOS/UIDevice+ModelName.swift ' ,
121
+ 'template ' => 'swift/Sources/DeviceInfo/iOS/UIDevice+ModelName.swift ' ,
122
+ ],
123
+ [
124
+ 'scope ' => 'default ' ,
125
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/Linux/LinuxDeviceInfo.swift ' ,
126
+ 'template ' => 'swift/Sources/DeviceInfo/Linux/LinuxDeviceInfo.swift ' ,
127
+ ],
128
+ [
129
+ 'scope ' => 'default ' ,
130
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/macOS/MacOSDeviceInfo.swift ' ,
131
+ 'template ' => 'swift/Sources/DeviceInfo/macOS/MacOSDeviceInfo.swift ' ,
132
+ ],
133
+ [
134
+ 'scope ' => 'default ' ,
135
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/watchOS/WatchOSDeviceInfo.swift ' ,
136
+ 'template ' => 'swift/Sources/DeviceInfo/watchOS/WatchOSDeviceInfo.swift ' ,
137
+ ],
138
+ [
139
+ 'scope ' => 'default ' ,
140
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/watchOS/WKInterfaceDevice+ModelName.swift ' ,
141
+ 'template ' => 'swift/Sources/DeviceInfo/watchOS/WKInterfaceDevice+ModelName.swift ' ,
142
+ ],
143
+ [
144
+ 'scope ' => 'default ' ,
145
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/macOS/CwlSysCtl.swift ' ,
146
+ 'template ' => 'swift/Sources/DeviceInfo/macOS/CwlSysCtl.swift ' ,
147
+ ],
148
+ [
149
+ 'scope ' => 'default ' ,
150
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/Windows/WindowsDeviceInfo.swift ' ,
151
+ 'template ' => 'swift/Sources/DeviceInfo/Windows/WindowsDeviceInfo.swift ' ,
152
+ ],
153
+ [
154
+ 'scope ' => 'default ' ,
155
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/DeviceInfo/OSDeviceInfo.swift ' ,
156
+ 'template ' => 'swift/Sources/DeviceInfo/OSDeviceInfo.swift ' ,
157
+ ],
158
+ [
159
+ 'scope ' => 'default ' ,
160
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/PackageInfo/Apple/PackageInfo+Apple.swift ' ,
161
+ 'template ' => 'swift/Sources/PackageInfo/Apple/PackageInfo+Apple.swift ' ,
162
+ ],
163
+ [
164
+ 'scope ' => 'default ' ,
165
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/PackageInfo/Linux/PackageInfo+Linux.swift ' ,
166
+ 'template ' => 'swift/Sources/PackageInfo/Linux/PackageInfo+Linux.swift ' ,
167
+ ],
168
+ [
169
+ 'scope ' => 'default ' ,
170
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/PackageInfo/Windows/PackageInfo+Windows.swift ' ,
171
+ 'template ' => 'swift/Sources/PackageInfo/Windows/PackageInfo+Windows.swift ' ,
172
+ ],
173
+ [
174
+ 'scope ' => 'default ' ,
175
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/PackageInfo/OSPackageInfo.swift ' ,
176
+ 'template ' => 'swift/Sources/PackageInfo/OSPackageInfo.swift ' ,
177
+ ],
178
+ [
179
+ 'scope ' => 'default ' ,
180
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/PackageInfo/PackageInfo.swift ' ,
181
+ 'template ' => 'swift/Sources/PackageInfo/PackageInfo.swift ' ,
182
+ ],
183
+ [
184
+ 'scope ' => 'service ' ,
185
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Services/{{service.name | caseUcfirst}}.swift ' ,
186
+ 'template ' => 'swift/Sources/Services/Service.swift.twig ' ,
187
+ ],
188
+ [
189
+ 'scope ' => 'definition ' ,
190
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}Models/{{ definition.name | caseUcfirst }}.swift ' ,
191
+ 'template ' => '/swift/Sources/Models/Model.swift.twig ' ,
192
+ ],
193
+ [
194
+ 'scope ' => 'enum ' ,
195
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}Enums/{{ enum.name | caseUcfirst }}.swift ' ,
196
+ 'template ' => '/swift/Sources/Enums/Enum.swift.twig ' ,
197
+ ],
198
+ // Apple specific
199
+ [
200
+ 'scope ' => 'default ' ,
201
+ 'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/Client.swift ' ,
202
+ 'template ' => '/apple/Sources/Client.swift.twig ' ,
203
+ ],
18
204
[
19
205
'scope ' => 'default ' ,
20
206
'destination ' => '/Sources/{{ spec.title | caseUcfirst}}/OAuth/WebAuthComponent.swift ' ,
@@ -292,6 +478,6 @@ public function getFiles(): array
292
478
'destination ' => '/example-uikit/UIKitExampleUITests/UIKitExampleUITests.swift ' ,
293
479
'template ' => '/swift/example-uikit/UIKitExampleUITests/UIKitExampleUITests.swift ' ,
294
480
],
295
- ]) ;
481
+ ];
296
482
}
297
483
}
0 commit comments