Skip to content

Commit 9ef30d6

Browse files
chore: update apiV100.json to include flutterVersion
1 parent 1d2408a commit 9ef30d6

File tree

1 file changed

+156
-37
lines changed

1 file changed

+156
-37
lines changed

test/fixtures/apiV100.json

Lines changed: 156 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"packageName": "api_guard_test",
44
"packageVersion": "0.0.1",
55
"sdkVersion": "^3.10.7",
6-
"dependencies": [{ "packageName": "flutter", "packageVersion": null }],
6+
"flutterVersion": ">=1.17.0",
7+
"dependencies": [
8+
{
9+
"packageName": "flutter",
10+
"packageVersion": null
11+
}
12+
],
713
"androidConstraints": null,
814
"iosConstraints": null
915
},
@@ -22,7 +28,11 @@
2228
"description": "",
2329
"type": {
2430
"name": "String",
25-
"superTypes": ["Object", "Comparable", "Pattern"],
31+
"superTypes": [
32+
"Object",
33+
"Comparable",
34+
"Pattern"
35+
],
2636
"isNullable": false
2737
},
2838
"named": false,
@@ -35,7 +45,11 @@
3545
"description": "",
3646
"type": {
3747
"name": "int",
38-
"superTypes": ["num", "Object", "Comparable"],
48+
"superTypes": [
49+
"num",
50+
"Object",
51+
"Comparable"
52+
],
3953
"isNullable": false
4054
},
4155
"named": false,
@@ -48,7 +62,11 @@
4862
"description": "",
4963
"type": {
5064
"name": "String?",
51-
"superTypes": ["Object", "Comparable", "Pattern"],
65+
"superTypes": [
66+
"Object",
67+
"Comparable",
68+
"Pattern"
69+
],
5270
"isNullable": true
5371
},
5472
"named": true,
@@ -66,29 +84,45 @@
6684
"name": "name",
6785
"type": {
6886
"name": "String",
69-
"superTypes": ["Object", "Comparable", "Pattern"],
87+
"superTypes": [
88+
"Object",
89+
"Comparable",
90+
"Pattern"
91+
],
7092
"isNullable": false
7193
},
7294
"description": "",
73-
"features": ["final"],
95+
"features": [
96+
"final"
97+
],
7498
"annotations": []
7599
},
76100
{
77101
"name": "age",
78102
"type": {
79103
"name": "int",
80-
"superTypes": ["num", "Object", "Comparable"],
104+
"superTypes": [
105+
"num",
106+
"Object",
107+
"Comparable"
108+
],
81109
"isNullable": false
82110
},
83111
"description": "",
84-
"features": ["final"],
112+
"features": [
113+
"final"
114+
],
85115
"annotations": []
86116
},
87117
{
88118
"name": "email",
89119
"type": {
90120
"name": "String?",
91-
"superTypes": ["Object", "Comparable", "Pattern"],
121+
"superTypes": [
122+
"Object",
123+
"Comparable",
124+
"Pattern"
125+
],
92126
"isNullable": true
93127
},
94128
"description": "",
@@ -110,7 +144,11 @@
110144
"description": "",
111145
"type": {
112146
"name": "String",
113-
"superTypes": ["Object", "Comparable", "Pattern"],
147+
"superTypes": [
148+
"Object",
149+
"Comparable",
150+
"Pattern"
151+
],
114152
"isNullable": false
115153
},
116154
"named": false,
@@ -148,7 +186,11 @@
148186
"description": "",
149187
"type": {
150188
"name": "String",
151-
"superTypes": ["Object", "Comparable", "Pattern"],
189+
"superTypes": [
190+
"Object",
191+
"Comparable",
192+
"Pattern"
193+
],
152194
"isNullable": false
153195
},
154196
"named": false,
@@ -161,7 +203,11 @@
161203
"description": "",
162204
"type": {
163205
"name": "double",
164-
"superTypes": ["num", "Object", "Comparable"],
206+
"superTypes": [
207+
"num",
208+
"Object",
209+
"Comparable"
210+
],
165211
"isNullable": false
166212
},
167213
"named": false,
@@ -179,22 +225,34 @@
179225
"name": "id",
180226
"type": {
181227
"name": "String",
182-
"superTypes": ["Object", "Comparable", "Pattern"],
228+
"superTypes": [
229+
"Object",
230+
"Comparable",
231+
"Pattern"
232+
],
183233
"isNullable": false
184234
},
185235
"description": "",
186-
"features": ["final"],
236+
"features": [
237+
"final"
238+
],
187239
"annotations": []
188240
},
189241
{
190242
"name": "price",
191243
"type": {
192244
"name": "double",
193-
"superTypes": ["num", "Object", "Comparable"],
245+
"superTypes": [
246+
"num",
247+
"Object",
248+
"Comparable"
249+
],
194250
"isNullable": false
195251
},
196252
"description": "",
197-
"features": ["final"],
253+
"features": [
254+
"final"
255+
],
198256
"annotations": []
199257
}
200258
],
@@ -222,7 +280,11 @@
222280
"description": "",
223281
"type": {
224282
"name": "String",
225-
"superTypes": ["Object", "Comparable", "Pattern"],
283+
"superTypes": [
284+
"Object",
285+
"Comparable",
286+
"Pattern"
287+
],
226288
"isNullable": false
227289
},
228290
"named": false,
@@ -240,11 +302,17 @@
240302
"name": "secret",
241303
"type": {
242304
"name": "String",
243-
"superTypes": ["Object", "Comparable", "Pattern"],
305+
"superTypes": [
306+
"Object",
307+
"Comparable",
308+
"Pattern"
309+
],
244310
"isNullable": false
245311
},
246312
"description": "",
247-
"features": ["final"],
313+
"features": [
314+
"final"
315+
],
248316
"annotations": []
249317
}
250318
],
@@ -264,7 +332,12 @@
264332
"name": "BaseClass",
265333
"description": "",
266334
"constructors": [
267-
{ "name": "new", "signature": [], "features": [], "annotations": [] }
335+
{
336+
"name": "new",
337+
"signature": [],
338+
"features": [],
339+
"annotations": []
340+
}
268341
],
269342
"properties": [],
270343
"methods": [],
@@ -283,7 +356,12 @@
283356
"name": "InterfaceA",
284357
"description": "",
285358
"constructors": [
286-
{ "name": "new", "signature": [], "features": [], "annotations": [] }
359+
{
360+
"name": "new",
361+
"signature": [],
362+
"features": [],
363+
"annotations": []
364+
}
287365
],
288366
"properties": [],
289367
"methods": [],
@@ -302,17 +380,30 @@
302380
"name": "ClassWithSuper",
303381
"description": "",
304382
"constructors": [
305-
{ "name": "new", "signature": [], "features": [], "annotations": [] }
383+
{
384+
"name": "new",
385+
"signature": [],
386+
"features": [],
387+
"annotations": []
388+
}
306389
],
307390
"properties": [],
308391
"methods": [],
309392
"type": "class",
310393
"aliasedType": null,
311394
"annotations": [],
312-
"superClasses": ["BaseClass"],
313-
"superClassPackages": ["api_guard_test"],
314-
"interfaces": ["InterfaceA"],
315-
"mixins": ["MixinA"],
395+
"superClasses": [
396+
"BaseClass"
397+
],
398+
"superClassPackages": [
399+
"api_guard_test"
400+
],
401+
"interfaces": [
402+
"InterfaceA"
403+
],
404+
"mixins": [
405+
"MixinA"
406+
],
316407
"typeParameters": []
317408
},
318409
{
@@ -324,7 +415,9 @@
324415
{
325416
"name": "new",
326417
"signature": [],
327-
"features": ["const"],
418+
"features": [
419+
"const"
420+
],
328421
"annotations": []
329422
}
330423
],
@@ -333,22 +426,34 @@
333426
"name": "active",
334427
"type": {
335428
"name": "Status",
336-
"superTypes": ["Enum", "Object"],
429+
"superTypes": [
430+
"Enum",
431+
"Object"
432+
],
337433
"isNullable": false
338434
},
339435
"description": "",
340-
"features": ["static", "const"],
436+
"features": [
437+
"static",
438+
"const"
439+
],
341440
"annotations": []
342441
},
343442
{
344443
"name": "inactive",
345444
"type": {
346445
"name": "Status",
347-
"superTypes": ["Enum", "Object"],
446+
"superTypes": [
447+
"Enum",
448+
"Object"
449+
],
348450
"isNullable": false
349451
},
350452
"description": "",
351-
"features": ["static", "const"],
453+
"features": [
454+
"static",
455+
"const"
456+
],
352457
"annotations": []
353458
},
354459
{
@@ -365,7 +470,10 @@
365470
"isNullable": false
366471
},
367472
"description": "",
368-
"features": ["static", "const"],
473+
"features": [
474+
"static",
475+
"const"
476+
],
369477
"annotations": []
370478
}
371479
],
@@ -390,7 +498,9 @@
390498
"name": "isValid",
391499
"type": {
392500
"name": "bool",
393-
"superTypes": ["Object"],
501+
"superTypes": [
502+
"Object"
503+
],
394504
"isNullable": false
395505
},
396506
"description": "",
@@ -419,7 +529,10 @@
419529
"name": "createdAt",
420530
"type": {
421531
"name": "DateTime?",
422-
"superTypes": ["Object", "Comparable"],
532+
"superTypes": [
533+
"Object",
534+
"Comparable"
535+
],
423536
"isNullable": true
424537
},
425538
"description": "",
@@ -475,7 +588,11 @@
475588
"description": "",
476589
"type": {
477590
"name": "int",
478-
"superTypes": ["num", "Object", "Comparable"],
591+
"superTypes": [
592+
"num",
593+
"Object",
594+
"Comparable"
595+
],
479596
"isNullable": false
480597
},
481598
"named": false,
@@ -484,7 +601,9 @@
484601
"annotations": []
485602
}
486603
],
487-
"features": ["static"],
604+
"features": [
605+
"static"
606+
],
488607
"description": "",
489608
"annotations": [],
490609
"typeParameters": []
@@ -517,4 +636,4 @@
517636
"typeParameters": []
518637
}
519638
]
520-
}
639+
}

0 commit comments

Comments
 (0)