danger-app_size_report 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,590 @@
1
+ [
2
+ {
3
+ "variant": "ChargePointAppClip-0F01226A-99F0-4092-8BBD-6919103E6F0A.ipa",
4
+ "supported_variant_descriptors": [
5
+ {
6
+ "device": "iPhone8,4",
7
+ "os_version": "14.0"
8
+ },
9
+ {
10
+ "device": "iPhone8,1",
11
+ "os_version": "14.0"
12
+ },
13
+ {
14
+ "device": "iPod9,1",
15
+ "os_version": "14.0"
16
+ }
17
+ ],
18
+ "app_on_demand_resources_size": {
19
+ "compressed": {
20
+ "raw_value": "5.4 MB",
21
+ "value": 5.4,
22
+ "unit": "MB"
23
+ },
24
+ "uncompressed": {
25
+ "raw_value": "11.6 MB",
26
+ "value": 11.6,
27
+ "unit": "MB"
28
+ }
29
+ },
30
+ "app_size": {
31
+ "compressed": {
32
+ "raw_value": "5.4 MB",
33
+ "value": 5.4,
34
+ "unit": "MB"
35
+ },
36
+ "uncompressed": {
37
+ "raw_value": "11.6 MB",
38
+ "value": 11.6,
39
+ "unit": "MB"
40
+ }
41
+ },
42
+ "on_demand_resources_size": {
43
+ "compressed": {
44
+ "raw_value": "0 KB",
45
+ "value": 0.0,
46
+ "unit": "MB"
47
+ },
48
+ "uncompressed": {
49
+ "raw_value": "0 KB",
50
+ "value": 0.0,
51
+ "unit": "MB"
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "variant": "ChargePointAppClip-35AD0331-EA57-4B82-B8E6-029D7786B9B7.ipa",
57
+ "supported_variant_descriptors": [
58
+ {
59
+ "device": "iPhone10,3",
60
+ "os_version": "14.0"
61
+ },
62
+ {
63
+ "device": "iPhone10,6",
64
+ "os_version": "14.0"
65
+ },
66
+ {
67
+ "device": "iPhone13,4",
68
+ "os_version": "14.0"
69
+ },
70
+ {
71
+ "device": "iPhone9,4",
72
+ "os_version": "14.0"
73
+ },
74
+ {
75
+ "device": "iPhone10,2",
76
+ "os_version": "14.0"
77
+ },
78
+ {
79
+ "device": "iPhone12,3",
80
+ "os_version": "14.0"
81
+ },
82
+ {
83
+ "device": "iPhone12,5",
84
+ "os_version": "14.0"
85
+ },
86
+ {
87
+ "device": "iPhone11,4",
88
+ "os_version": "14.0"
89
+ },
90
+ {
91
+ "device": "iPhone9,2",
92
+ "os_version": "14.0"
93
+ },
94
+ {
95
+ "device": "iPhone11,2",
96
+ "os_version": "14.0"
97
+ },
98
+ {
99
+ "device": "iPhone13,1",
100
+ "os_version": "14.0"
101
+ },
102
+ {
103
+ "device": "iPhone13,3",
104
+ "os_version": "14.0"
105
+ },
106
+ {
107
+ "device": "iPhone10,5",
108
+ "os_version": "14.0"
109
+ },
110
+ {
111
+ "device": "iPhone13,2",
112
+ "os_version": "14.0"
113
+ },
114
+ {
115
+ "device": "iPhone11,6",
116
+ "os_version": "14.0"
117
+ }
118
+ ],
119
+ "app_on_demand_resources_size": {
120
+ "compressed": {
121
+ "raw_value": "6.6 MB",
122
+ "value": 6.6,
123
+ "unit": "MB"
124
+ },
125
+ "uncompressed": {
126
+ "raw_value": "12.9 MB",
127
+ "value": 12.9,
128
+ "unit": "MB"
129
+ }
130
+ },
131
+ "app_size": {
132
+ "compressed": {
133
+ "raw_value": "6.6 MB",
134
+ "value": 6.6,
135
+ "unit": "MB"
136
+ },
137
+ "uncompressed": {
138
+ "raw_value": "12.9 MB",
139
+ "value": 12.9,
140
+ "unit": "MB"
141
+ }
142
+ },
143
+ "on_demand_resources_size": {
144
+ "compressed": {
145
+ "raw_value": "0 KB",
146
+ "value": 0.0,
147
+ "unit": "MB"
148
+ },
149
+ "uncompressed": {
150
+ "raw_value": "0 KB",
151
+ "value": 0.0,
152
+ "unit": "MB"
153
+ }
154
+ }
155
+ },
156
+ {
157
+ "variant": "ChargePointAppClip-4982417C-64B2-48AA-B47A-AB97290C2D46.ipa",
158
+ "supported_variant_descriptors": [
159
+ {
160
+ "device": "iPad8,11",
161
+ "os_version": "14.0"
162
+ },
163
+ {
164
+ "device": "iPad8,5",
165
+ "os_version": "14.0"
166
+ },
167
+ {
168
+ "device": "MacFamily20,1",
169
+ "os_version": "14.0"
170
+ },
171
+ {
172
+ "device": "iPad8,6",
173
+ "os_version": "14.0"
174
+ },
175
+ {
176
+ "device": "iPad13,2",
177
+ "os_version": "14.0"
178
+ },
179
+ {
180
+ "device": "iPad8,8",
181
+ "os_version": "14.0"
182
+ },
183
+ {
184
+ "device": "iPad7,3",
185
+ "os_version": "14.0"
186
+ },
187
+ {
188
+ "device": "iPad11,4",
189
+ "os_version": "14.0"
190
+ },
191
+ {
192
+ "device": "iPad11,2",
193
+ "os_version": "14.0"
194
+ },
195
+ {
196
+ "device": "iPad6,3",
197
+ "os_version": "14.0"
198
+ },
199
+ {
200
+ "device": "iPad7,1",
201
+ "os_version": "14.0"
202
+ },
203
+ {
204
+ "device": "iPad8,12",
205
+ "os_version": "14.0"
206
+ },
207
+ {
208
+ "device": "iPad11,3",
209
+ "os_version": "14.0"
210
+ },
211
+ {
212
+ "device": "iPad7,4",
213
+ "os_version": "14.0"
214
+ },
215
+ {
216
+ "device": "iPad8,1",
217
+ "os_version": "14.0"
218
+ },
219
+ {
220
+ "device": "iPad11,1",
221
+ "os_version": "14.0"
222
+ },
223
+ {
224
+ "device": "iPad7,2",
225
+ "os_version": "14.0"
226
+ },
227
+ {
228
+ "device": "iPad8,10",
229
+ "os_version": "14.0"
230
+ },
231
+ {
232
+ "device": "iPad6,4",
233
+ "os_version": "14.0"
234
+ },
235
+ {
236
+ "device": "iPad8,9",
237
+ "os_version": "14.0"
238
+ },
239
+ {
240
+ "device": "iPad8,2",
241
+ "os_version": "14.0"
242
+ },
243
+ {
244
+ "device": "iPad8,3",
245
+ "os_version": "14.0"
246
+ },
247
+ {
248
+ "device": "iPad13,1",
249
+ "os_version": "14.0"
250
+ },
251
+ {
252
+ "device": "iPad8,7",
253
+ "os_version": "14.0"
254
+ },
255
+ {
256
+ "device": "iPad8,4",
257
+ "os_version": "14.0"
258
+ }
259
+ ],
260
+ "app_on_demand_resources_size": {
261
+ "compressed": {
262
+ "raw_value": "5.4 MB",
263
+ "value": 5.4,
264
+ "unit": "MB"
265
+ },
266
+ "uncompressed": {
267
+ "raw_value": "11.6 MB",
268
+ "value": 11.6,
269
+ "unit": "MB"
270
+ }
271
+ },
272
+ "app_size": {
273
+ "compressed": {
274
+ "raw_value": "5.4 MB",
275
+ "value": 5.4,
276
+ "unit": "MB"
277
+ },
278
+ "uncompressed": {
279
+ "raw_value": "11.6 MB",
280
+ "value": 11.6,
281
+ "unit": "MB"
282
+ }
283
+ },
284
+ "on_demand_resources_size": {
285
+ "compressed": {
286
+ "raw_value": "0 KB",
287
+ "value": 0.0,
288
+ "unit": "MB"
289
+ },
290
+ "uncompressed": {
291
+ "raw_value": "0 KB",
292
+ "value": 0.0,
293
+ "unit": "MB"
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "variant": "ChargePointAppClip-759FEA38-87EA-46C1-96A1-010F088B2E3A.ipa",
299
+ "supported_variant_descriptors": [
300
+ {
301
+ "device": "iPad5,3",
302
+ "os_version": "14.0"
303
+ },
304
+ {
305
+ "device": "iPad5,2",
306
+ "os_version": "14.0"
307
+ },
308
+ {
309
+ "device": "iPad6,11",
310
+ "os_version": "14.0"
311
+ },
312
+ {
313
+ "device": "iPad7,6",
314
+ "os_version": "14.0"
315
+ },
316
+ {
317
+ "device": "iPad6,8",
318
+ "os_version": "14.0"
319
+ },
320
+ {
321
+ "device": "iPad5,4",
322
+ "os_version": "14.0"
323
+ },
324
+ {
325
+ "device": "iPad7,12",
326
+ "os_version": "14.0"
327
+ },
328
+ {
329
+ "device": "iPad6,7",
330
+ "os_version": "14.0"
331
+ },
332
+ {
333
+ "device": "iPad7,5",
334
+ "os_version": "14.0"
335
+ },
336
+ {
337
+ "device": "iPad6,12",
338
+ "os_version": "14.0"
339
+ },
340
+ {
341
+ "device": "iPad11,6",
342
+ "os_version": "14.0"
343
+ },
344
+ {
345
+ "device": "iPad7,11",
346
+ "os_version": "14.0"
347
+ },
348
+ {
349
+ "device": "iPad5,1",
350
+ "os_version": "14.0"
351
+ },
352
+ {
353
+ "device": "iPad11,7",
354
+ "os_version": "14.0"
355
+ }
356
+ ],
357
+ "app_on_demand_resources_size": {
358
+ "compressed": {
359
+ "raw_value": "5.4 MB",
360
+ "value": 5.4,
361
+ "unit": "MB"
362
+ },
363
+ "uncompressed": {
364
+ "raw_value": "11.6 MB",
365
+ "value": 11.6,
366
+ "unit": "MB"
367
+ }
368
+ },
369
+ "app_size": {
370
+ "compressed": {
371
+ "raw_value": "5.4 MB",
372
+ "value": 5.4,
373
+ "unit": "MB"
374
+ },
375
+ "uncompressed": {
376
+ "raw_value": "11.6 MB",
377
+ "value": 11.6,
378
+ "unit": "MB"
379
+ }
380
+ },
381
+ "on_demand_resources_size": {
382
+ "compressed": {
383
+ "raw_value": "0 KB",
384
+ "value": 0.0,
385
+ "unit": "MB"
386
+ },
387
+ "uncompressed": {
388
+ "raw_value": "0 KB",
389
+ "value": 0.0,
390
+ "unit": "MB"
391
+ }
392
+ }
393
+ },
394
+ {
395
+ "variant": "ChargePointAppClip-9EC3FFDB-82C5-4EC0-882B-2005C6FEADD2.ipa",
396
+ "supported_variant_descriptors": [
397
+ {
398
+ "device": "iPhone8,2",
399
+ "os_version": "14.0"
400
+ }
401
+ ],
402
+ "app_on_demand_resources_size": {
403
+ "compressed": {
404
+ "raw_value": "6.6 MB",
405
+ "value": 6.6,
406
+ "unit": "MB"
407
+ },
408
+ "uncompressed": {
409
+ "raw_value": "12.9 MB",
410
+ "value": 12.9,
411
+ "unit": "MB"
412
+ }
413
+ },
414
+ "app_size": {
415
+ "compressed": {
416
+ "raw_value": "6.6 MB",
417
+ "value": 6.6,
418
+ "unit": "MB"
419
+ },
420
+ "uncompressed": {
421
+ "raw_value": "12.9 MB",
422
+ "value": 12.9,
423
+ "unit": "MB"
424
+ }
425
+ },
426
+ "on_demand_resources_size": {
427
+ "compressed": {
428
+ "raw_value": "0 KB",
429
+ "value": 0.0,
430
+ "unit": "MB"
431
+ },
432
+ "uncompressed": {
433
+ "raw_value": "0 KB",
434
+ "value": 0.0,
435
+ "unit": "MB"
436
+ }
437
+ }
438
+ },
439
+ {
440
+ "variant": "ChargePointAppClip-CDC4B730-FF8B-43B3-B392-3E29B1DC4A13.ipa",
441
+ "supported_variant_descriptors": [
442
+ {
443
+ "device": "iPhone12,8",
444
+ "os_version": "14.0"
445
+ },
446
+ {
447
+ "device": "iPhone9,3",
448
+ "os_version": "14.0"
449
+ },
450
+ {
451
+ "device": "iPhone9,1",
452
+ "os_version": "14.0"
453
+ },
454
+ {
455
+ "device": "iPhone10,1",
456
+ "os_version": "14.0"
457
+ },
458
+ {
459
+ "device": "iPhone10,4",
460
+ "os_version": "14.0"
461
+ }
462
+ ],
463
+ "app_on_demand_resources_size": {
464
+ "compressed": {
465
+ "raw_value": "5.4 MB",
466
+ "value": 5.4,
467
+ "unit": "MB"
468
+ },
469
+ "uncompressed": {
470
+ "raw_value": "11.6 MB",
471
+ "value": 11.6,
472
+ "unit": "MB"
473
+ }
474
+ },
475
+ "app_size": {
476
+ "compressed": {
477
+ "raw_value": "5.4 MB",
478
+ "value": 5.4,
479
+ "unit": "MB"
480
+ },
481
+ "uncompressed": {
482
+ "raw_value": "11.6 MB",
483
+ "value": 11.6,
484
+ "unit": "MB"
485
+ }
486
+ },
487
+ "on_demand_resources_size": {
488
+ "compressed": {
489
+ "raw_value": "0 KB",
490
+ "value": 0.0,
491
+ "unit": "MB"
492
+ },
493
+ "uncompressed": {
494
+ "raw_value": "0 KB",
495
+ "value": 0.0,
496
+ "unit": "MB"
497
+ }
498
+ }
499
+ },
500
+ {
501
+ "variant": "ChargePointAppClip-D958C2E0-14C7-481E-BB6B-6450CC20B2C1.ipa",
502
+ "supported_variant_descriptors": [
503
+ {
504
+ "device": "iPhone12,1",
505
+ "os_version": "14.0"
506
+ }
507
+ ],
508
+ "app_on_demand_resources_size": {
509
+ "compressed": {
510
+ "raw_value": "5.4 MB",
511
+ "value": 5.4,
512
+ "unit": "MB"
513
+ },
514
+ "uncompressed": {
515
+ "raw_value": "11.6 MB",
516
+ "value": 11.6,
517
+ "unit": "MB"
518
+ }
519
+ },
520
+ "app_size": {
521
+ "compressed": {
522
+ "raw_value": "5.4 MB",
523
+ "value": 5.4,
524
+ "unit": "MB"
525
+ },
526
+ "uncompressed": {
527
+ "raw_value": "11.6 MB",
528
+ "value": 11.6,
529
+ "unit": "MB"
530
+ }
531
+ },
532
+ "on_demand_resources_size": {
533
+ "compressed": {
534
+ "raw_value": "0 KB",
535
+ "value": 0.0,
536
+ "unit": "MB"
537
+ },
538
+ "uncompressed": {
539
+ "raw_value": "0 KB",
540
+ "value": 0.0,
541
+ "unit": "MB"
542
+ }
543
+ }
544
+ },
545
+ {
546
+ "variant": "ChargePointAppClip.ipa",
547
+ "supported_variant_descriptors": [
548
+ {
549
+ "device": "Universal",
550
+ "os_version": ""
551
+ }
552
+ ],
553
+ "app_on_demand_resources_size": {
554
+ "compressed": {
555
+ "raw_value": "9.3 MB",
556
+ "value": 9.3,
557
+ "unit": "MB"
558
+ },
559
+ "uncompressed": {
560
+ "raw_value": "16 MB",
561
+ "value": 16.0,
562
+ "unit": "MB"
563
+ }
564
+ },
565
+ "app_size": {
566
+ "compressed": {
567
+ "raw_value": "9.3 MB",
568
+ "value": 9.3,
569
+ "unit": "MB"
570
+ },
571
+ "uncompressed": {
572
+ "raw_value": "16 MB",
573
+ "value": 16.0,
574
+ "unit": "MB"
575
+ }
576
+ },
577
+ "on_demand_resources_size": {
578
+ "compressed": {
579
+ "raw_value": "0 KB",
580
+ "value": 0.0,
581
+ "unit": "MB"
582
+ },
583
+ "uncompressed": {
584
+ "raw_value": "0 KB",
585
+ "value": 0.0,
586
+ "unit": "MB"
587
+ }
588
+ }
589
+ }
590
+ ]
@@ -1,19 +1,21 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ require 'English'
4
+ lib = File.expand_path('lib', __dir__)
3
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'app_size_report/gem_version.rb'
6
+ require 'app_size_report/gem_version'
5
7
 
6
8
  Gem::Specification.new do |spec|
7
9
  spec.name = 'danger-app_size_report'
8
10
  spec.version = AppSizeReport::VERSION
9
- spec.authors = ['Vido Shaweddy']
10
- spec.email = ['vido.shaweddy@chargepoint.com']
11
- spec.description = %q{A danger plugin for reporting app sizes.}
12
- spec.summary = %q{Validates variant sizes of app thinning report json within a Pull Request and generates a brief report.}
11
+ spec.authors = ['Rishab Sukumar']
12
+ spec.email = ['rishab.sukumar@chargepoint.com']
13
+ spec.description = 'A Danger plugin for reporting iOS app size violations.'
14
+ spec.summary = 'A Danger plugin for reporting iOS app size violations. A valid App Thinning Size Report must be passed to the plugin for accurate functionality.'
13
15
  spec.homepage = 'https://github.com/ChargePoint/danger-app_size_report'
14
16
  spec.license = 'MIT'
15
17
 
16
- spec.files = `git ls-files`.split($/)
18
+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
21
  spec.require_paths = ['lib']
@@ -28,8 +30,8 @@ Gem::Specification.new do |spec|
28
30
  spec.add_development_dependency 'rspec', '~> 3.4'
29
31
 
30
32
  # Linting code and docs
31
- spec.add_development_dependency "rubocop"
32
- spec.add_development_dependency "yard"
33
+ spec.add_development_dependency 'rubocop', '~> 1.25.0'
34
+ spec.add_development_dependency 'yard', '~> 0.9.27'
33
35
 
34
36
  # Makes testing easy via `bundle exec guard`
35
37
  spec.add_development_dependency 'guard', '~> 2.14'
@@ -45,5 +47,5 @@ Gem::Specification.new do |spec|
45
47
  # binding.pry
46
48
  #
47
49
  # This will stop test execution and let you inspect the results
48
- spec.add_development_dependency 'pry'
50
+ spec.add_development_dependency 'pry', '~> 0.14.1'
49
51
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AppSizeReport
2
- VERSION = "0.0.1".freeze
4
+ VERSION = '0.0.3'
3
5
  end