@mcamdali/sdkbump 0.0.0-stage → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/LICENSE +21 -0
  2. package/README.de.md +251 -0
  3. package/README.es.md +252 -0
  4. package/README.fr.md +252 -0
  5. package/README.ja.md +250 -0
  6. package/README.ko.md +250 -0
  7. package/README.md +322 -2
  8. package/README.pt-BR.md +252 -0
  9. package/README.ru.md +252 -0
  10. package/README.tr.md +338 -0
  11. package/README.zh-CN.md +250 -0
  12. package/dist/cli/main.d.ts +2 -0
  13. package/dist/cli/main.js +11 -0
  14. package/dist/cli/run.d.ts +29 -0
  15. package/dist/cli/run.js +111 -0
  16. package/dist/collect/app.d.ts +48 -0
  17. package/dist/collect/app.js +117 -0
  18. package/dist/collect/blank.d.ts +6 -0
  19. package/dist/collect/blank.js +75 -0
  20. package/dist/collect/pbxproj.d.ts +45 -0
  21. package/dist/collect/pbxproj.js +260 -0
  22. package/dist/collect/plist-binary.d.ts +2 -0
  23. package/dist/collect/plist-binary.js +123 -0
  24. package/dist/collect/plist-value.d.ts +15 -0
  25. package/dist/collect/plist-value.js +14 -0
  26. package/dist/collect/plist-xml.d.ts +2 -0
  27. package/dist/collect/plist-xml.js +195 -0
  28. package/dist/collect/plist.d.ts +6 -0
  29. package/dist/collect/plist.js +19 -0
  30. package/dist/collect/regions.d.ts +9 -0
  31. package/dist/collect/regions.js +108 -0
  32. package/dist/collect/sources.d.ts +45 -0
  33. package/dist/collect/sources.js +99 -0
  34. package/dist/core/files.d.ts +22 -0
  35. package/dist/core/files.js +47 -0
  36. package/dist/core/lines.d.ts +2 -0
  37. package/dist/core/lines.js +21 -0
  38. package/dist/core/versions.d.ts +18 -0
  39. package/dist/core/versions.js +63 -0
  40. package/dist/detect/project.d.ts +46 -0
  41. package/dist/detect/project.js +220 -0
  42. package/dist/index.d.ts +26 -0
  43. package/dist/index.js +27 -0
  44. package/dist/model.d.ts +93 -0
  45. package/dist/model.js +2 -0
  46. package/dist/report/index.d.ts +12 -0
  47. package/dist/report/index.js +22 -0
  48. package/dist/report/markdown.d.ts +2 -0
  49. package/dist/report/markdown.js +113 -0
  50. package/dist/report/text.d.ts +27 -0
  51. package/dist/report/text.js +63 -0
  52. package/dist/report/tty.d.ts +7 -0
  53. package/dist/report/tty.js +112 -0
  54. package/dist/rules/check.d.ts +11 -0
  55. package/dist/rules/check.js +253 -0
  56. package/dist/rules/data.d.ts +217 -0
  57. package/dist/rules/data.js +141 -0
  58. package/dist/rules/fixes.d.ts +28 -0
  59. package/dist/rules/fixes.js +161 -0
  60. package/dist/rules/patterns.d.ts +29 -0
  61. package/dist/rules/patterns.js +109 -0
  62. package/dist/rules/query.d.ts +16 -0
  63. package/dist/rules/query.js +50 -0
  64. package/dist/scan.d.ts +10 -0
  65. package/dist/scan.js +115 -0
  66. package/dist/version.d.ts +2 -0
  67. package/dist/version.js +7 -0
  68. package/package.json +69 -4
  69. package/rules/ios27.json +613 -0
  70. package/rules/schema.json +449 -0
@@ -0,0 +1,449 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string"
7
+ },
8
+ "ruleSet": {
9
+ "type": "string",
10
+ "pattern": "^[a-z0-9]+$"
11
+ },
12
+ "dataVersion": {
13
+ "type": "string",
14
+ "pattern": "^\\d{4}\\.\\d{2}\\.\\d{2}$"
15
+ },
16
+ "sdk": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "rules": {
21
+ "minItems": 1,
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "properties": {
26
+ "id": {
27
+ "type": "string",
28
+ "enum": [
29
+ "SCN001",
30
+ "SCN002",
31
+ "SCN003",
32
+ "SCN004"
33
+ ]
34
+ },
35
+ "severity": {
36
+ "type": "string",
37
+ "enum": [
38
+ "error",
39
+ "warning",
40
+ "info"
41
+ ]
42
+ },
43
+ "title": {
44
+ "type": "string",
45
+ "minLength": 1
46
+ },
47
+ "summary": {
48
+ "type": "string",
49
+ "minLength": 1
50
+ },
51
+ "sources": {
52
+ "minItems": 1,
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "title": {
58
+ "type": "string",
59
+ "minLength": 1
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "format": "uri"
64
+ }
65
+ },
66
+ "required": [
67
+ "title",
68
+ "url"
69
+ ],
70
+ "additionalProperties": false
71
+ }
72
+ }
73
+ },
74
+ "required": [
75
+ "id",
76
+ "severity",
77
+ "title",
78
+ "summary",
79
+ "sources"
80
+ ],
81
+ "additionalProperties": false
82
+ }
83
+ },
84
+ "hooks": {
85
+ "minItems": 1,
86
+ "type": "array",
87
+ "items": {
88
+ "type": "object",
89
+ "properties": {
90
+ "id": {
91
+ "type": "string",
92
+ "pattern": "^[a-z-]+$"
93
+ },
94
+ "kind": {
95
+ "type": "string",
96
+ "enum": [
97
+ "method",
98
+ "launch-option"
99
+ ]
100
+ },
101
+ "swift": {
102
+ "type": "string",
103
+ "minLength": 1
104
+ },
105
+ "objc": {
106
+ "type": "string",
107
+ "minLength": 1
108
+ },
109
+ "replacement": {
110
+ "type": "string",
111
+ "minLength": 1
112
+ },
113
+ "swiftUI": {
114
+ "type": [
115
+ "string",
116
+ "null"
117
+ ]
118
+ },
119
+ "sources": {
120
+ "minItems": 1,
121
+ "type": "array",
122
+ "items": {
123
+ "type": "object",
124
+ "properties": {
125
+ "title": {
126
+ "type": "string",
127
+ "minLength": 1
128
+ },
129
+ "url": {
130
+ "type": "string",
131
+ "format": "uri"
132
+ }
133
+ },
134
+ "required": [
135
+ "title",
136
+ "url"
137
+ ],
138
+ "additionalProperties": false
139
+ }
140
+ }
141
+ },
142
+ "required": [
143
+ "id",
144
+ "kind",
145
+ "swift",
146
+ "objc",
147
+ "replacement",
148
+ "swiftUI",
149
+ "sources"
150
+ ],
151
+ "additionalProperties": false
152
+ }
153
+ },
154
+ "windowLookups": {
155
+ "minItems": 1,
156
+ "type": "array",
157
+ "items": {
158
+ "type": "object",
159
+ "properties": {
160
+ "id": {
161
+ "type": "string",
162
+ "pattern": "^[a-z-]+$"
163
+ },
164
+ "title": {
165
+ "type": "string",
166
+ "minLength": 1
167
+ },
168
+ "api": {
169
+ "type": "string",
170
+ "minLength": 1
171
+ },
172
+ "message": {
173
+ "type": "string",
174
+ "minLength": 1
175
+ },
176
+ "sources": {
177
+ "minItems": 1,
178
+ "type": "array",
179
+ "items": {
180
+ "type": "object",
181
+ "properties": {
182
+ "title": {
183
+ "type": "string",
184
+ "minLength": 1
185
+ },
186
+ "url": {
187
+ "type": "string",
188
+ "format": "uri"
189
+ }
190
+ },
191
+ "required": [
192
+ "title",
193
+ "url"
194
+ ],
195
+ "additionalProperties": false
196
+ }
197
+ }
198
+ },
199
+ "required": [
200
+ "id",
201
+ "title",
202
+ "api",
203
+ "message",
204
+ "sources"
205
+ ],
206
+ "additionalProperties": false
207
+ }
208
+ },
209
+ "fixes": {
210
+ "minItems": 1,
211
+ "type": "array",
212
+ "items": {
213
+ "type": "object",
214
+ "properties": {
215
+ "id": {
216
+ "type": "string",
217
+ "pattern": "^[a-z0-9-]+$"
218
+ },
219
+ "ecosystems": {
220
+ "minItems": 1,
221
+ "type": "array",
222
+ "items": {
223
+ "type": "string",
224
+ "enum": [
225
+ "native",
226
+ "flutter",
227
+ "react-native",
228
+ "expo"
229
+ ]
230
+ }
231
+ },
232
+ "title": {
233
+ "type": "string",
234
+ "minLength": 1
235
+ },
236
+ "steps": {
237
+ "minItems": 1,
238
+ "type": "array",
239
+ "items": {
240
+ "type": "string",
241
+ "minLength": 1
242
+ }
243
+ },
244
+ "guide": {
245
+ "type": "string",
246
+ "pattern": "^docs\\/guides\\/[a-z0-9-]+\\.md$"
247
+ },
248
+ "sources": {
249
+ "minItems": 1,
250
+ "type": "array",
251
+ "items": {
252
+ "type": "object",
253
+ "properties": {
254
+ "title": {
255
+ "type": "string",
256
+ "minLength": 1
257
+ },
258
+ "url": {
259
+ "type": "string",
260
+ "format": "uri"
261
+ }
262
+ },
263
+ "required": [
264
+ "title",
265
+ "url"
266
+ ],
267
+ "additionalProperties": false
268
+ }
269
+ }
270
+ },
271
+ "required": [
272
+ "id",
273
+ "ecosystems",
274
+ "title",
275
+ "steps",
276
+ "guide",
277
+ "sources"
278
+ ],
279
+ "additionalProperties": false
280
+ }
281
+ },
282
+ "workarounds": {
283
+ "type": "array",
284
+ "items": {
285
+ "type": "object",
286
+ "properties": {
287
+ "package": {
288
+ "type": "string",
289
+ "minLength": 1
290
+ },
291
+ "ecosystems": {
292
+ "minItems": 1,
293
+ "type": "array",
294
+ "items": {
295
+ "type": "string",
296
+ "enum": [
297
+ "native",
298
+ "flutter",
299
+ "react-native",
300
+ "expo"
301
+ ]
302
+ }
303
+ },
304
+ "mitigates": {
305
+ "minItems": 1,
306
+ "type": "array",
307
+ "items": {
308
+ "type": "string",
309
+ "enum": [
310
+ "SCN001",
311
+ "SCN002",
312
+ "SCN003",
313
+ "SCN004"
314
+ ]
315
+ }
316
+ },
317
+ "summary": {
318
+ "type": "string",
319
+ "minLength": 1
320
+ },
321
+ "limits": {
322
+ "type": "array",
323
+ "items": {
324
+ "type": "string",
325
+ "minLength": 1
326
+ }
327
+ },
328
+ "sources": {
329
+ "minItems": 1,
330
+ "type": "array",
331
+ "items": {
332
+ "type": "object",
333
+ "properties": {
334
+ "title": {
335
+ "type": "string",
336
+ "minLength": 1
337
+ },
338
+ "url": {
339
+ "type": "string",
340
+ "format": "uri"
341
+ }
342
+ },
343
+ "required": [
344
+ "title",
345
+ "url"
346
+ ],
347
+ "additionalProperties": false
348
+ }
349
+ }
350
+ },
351
+ "required": [
352
+ "package",
353
+ "ecosystems",
354
+ "mitigates",
355
+ "summary",
356
+ "limits",
357
+ "sources"
358
+ ],
359
+ "additionalProperties": false
360
+ }
361
+ },
362
+ "milestones": {
363
+ "type": "object",
364
+ "properties": {
365
+ "reactNativeScenes": {
366
+ "type": "string",
367
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
368
+ },
369
+ "expoSceneSupport": {
370
+ "type": "string",
371
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
372
+ },
373
+ "expoBuildProperties": {
374
+ "type": "string",
375
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
376
+ },
377
+ "expoScenesByDefault": {
378
+ "type": "string",
379
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
380
+ },
381
+ "flutterAutoMigration": {
382
+ "type": "string",
383
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
384
+ }
385
+ },
386
+ "required": [
387
+ "reactNativeScenes",
388
+ "expoSceneSupport",
389
+ "expoBuildProperties",
390
+ "expoScenesByDefault",
391
+ "flutterAutoMigration"
392
+ ],
393
+ "additionalProperties": false
394
+ },
395
+ "sceneForwarders": {
396
+ "type": "array",
397
+ "items": {
398
+ "type": "string",
399
+ "minLength": 1
400
+ }
401
+ },
402
+ "flutterTemplates": {
403
+ "type": "object",
404
+ "properties": {
405
+ "source": {
406
+ "type": "string",
407
+ "format": "uri"
408
+ },
409
+ "swift": {
410
+ "minItems": 1,
411
+ "type": "array",
412
+ "items": {
413
+ "type": "string",
414
+ "pattern": "^[0-9a-f]{64}$"
415
+ }
416
+ },
417
+ "objcHeader": {
418
+ "type": "string",
419
+ "pattern": "^[0-9a-f]{64}$"
420
+ },
421
+ "objcImplementation": {
422
+ "type": "string",
423
+ "pattern": "^[0-9a-f]{64}$"
424
+ }
425
+ },
426
+ "required": [
427
+ "source",
428
+ "swift",
429
+ "objcHeader",
430
+ "objcImplementation"
431
+ ],
432
+ "additionalProperties": false
433
+ }
434
+ },
435
+ "required": [
436
+ "ruleSet",
437
+ "dataVersion",
438
+ "sdk",
439
+ "rules",
440
+ "hooks",
441
+ "windowLookups",
442
+ "fixes",
443
+ "workarounds",
444
+ "milestones",
445
+ "sceneForwarders",
446
+ "flutterTemplates"
447
+ ],
448
+ "additionalProperties": false
449
+ }