appium-uiautomator2-driver 2.12.4 → 2.12.6

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 (43) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/index.js +1 -1
  3. package/build/lib/commands/actions.js +1 -1
  4. package/build/lib/commands/actions.js.map +1 -1
  5. package/build/lib/commands/alert.js +1 -1
  6. package/build/lib/commands/alert.js.map +1 -1
  7. package/build/lib/commands/battery.js +1 -1
  8. package/build/lib/commands/battery.js.map +1 -1
  9. package/build/lib/commands/element.js +1 -1
  10. package/build/lib/commands/element.js.map +1 -1
  11. package/build/lib/commands/find.js +1 -1
  12. package/build/lib/commands/find.js.map +1 -1
  13. package/build/lib/commands/general.js +1 -1
  14. package/build/lib/commands/general.js.map +1 -1
  15. package/build/lib/commands/gestures.js +1 -1
  16. package/build/lib/commands/gestures.js.map +1 -1
  17. package/build/lib/commands/index.js +1 -1
  18. package/build/lib/commands/index.js.map +1 -1
  19. package/build/lib/commands/screenshot.js +1 -1
  20. package/build/lib/commands/screenshot.js.map +1 -1
  21. package/build/lib/commands/touch.js +1 -1
  22. package/build/lib/commands/touch.js.map +1 -1
  23. package/build/lib/commands/viewport.js +1 -1
  24. package/build/lib/commands/viewport.js.map +1 -1
  25. package/build/lib/css-converter.js +1 -1
  26. package/build/lib/css-converter.js.map +1 -1
  27. package/build/lib/desired-caps.js +1 -1
  28. package/build/lib/desired-caps.js.map +1 -1
  29. package/build/lib/driver.js +1 -1
  30. package/build/lib/driver.js.map +1 -1
  31. package/build/lib/extensions.js +1 -1
  32. package/build/lib/extensions.js.map +1 -1
  33. package/build/lib/helpers.js +1 -1
  34. package/build/lib/helpers.js.map +1 -1
  35. package/build/lib/logger.js +1 -1
  36. package/build/lib/logger.js.map +1 -1
  37. package/build/lib/method-map.js +1 -1
  38. package/build/lib/method-map.js.map +1 -1
  39. package/build/lib/uiautomator2.js +1 -1
  40. package/build/lib/uiautomator2.js.map +1 -1
  41. package/npm-shrinkwrap.json +110 -103
  42. package/package.json +4 -3
  43. package/scripts/reset.js +30 -0
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "appium-uiautomator2-driver",
3
- "version": "2.12.4",
3
+ "version": "2.12.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-uiautomator2-driver",
9
- "version": "2.12.4",
9
+ "version": "2.12.6",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@babel/runtime": "^7.0.0",
13
13
  "appium-adb": "^9.10.14",
14
- "appium-android-driver": "^5.8.7",
14
+ "appium-android-driver": "^5.8.10",
15
15
  "appium-chromedriver": "^5.2.16",
16
16
  "appium-uiautomator2-server": "^5.7.2",
17
17
  "asyncbox": "^2.3.1",
@@ -44,7 +44,7 @@
44
44
  "fancy-log": "^2.0.0",
45
45
  "lint-staged": "^13.0.3",
46
46
  "mocha": "^10.0.0",
47
- "pngjs": "^6.0.0",
47
+ "pngjs": "^7.0.0",
48
48
  "pre-commit": "^1.2.2",
49
49
  "rimraf": "^4.0.4",
50
50
  "semantic-release": "^20.0.2",
@@ -312,6 +312,13 @@
312
312
  "proxy-from-env": "^1.1.0"
313
313
  }
314
314
  },
315
+ "node_modules/@appium/support/node_modules/pngjs": {
316
+ "version": "6.0.0",
317
+ "license": "MIT",
318
+ "engines": {
319
+ "node": ">=12.13.0"
320
+ }
321
+ },
315
322
  "node_modules/@appium/support/node_modules/rimraf": {
316
323
  "version": "3.0.2",
317
324
  "license": "ISC",
@@ -422,7 +429,7 @@
422
429
  }
423
430
  },
424
431
  "node_modules/@babel/runtime": {
425
- "version": "7.20.13",
432
+ "version": "7.21.0",
426
433
  "license": "MIT",
427
434
  "dependencies": {
428
435
  "regenerator-runtime": "^0.13.11"
@@ -449,10 +456,10 @@
449
456
  }
450
457
  },
451
458
  "node_modules/@jimp/bmp": {
452
- "version": "0.22.4",
459
+ "version": "0.22.5",
453
460
  "license": "MIT",
454
461
  "dependencies": {
455
- "@jimp/utils": "^0.22.4",
462
+ "@jimp/utils": "^0.22.5",
456
463
  "bmp-js": "^0.1.0"
457
464
  },
458
465
  "peerDependencies": {
@@ -460,10 +467,10 @@
460
467
  }
461
468
  },
462
469
  "node_modules/@jimp/core": {
463
- "version": "0.22.4",
470
+ "version": "0.22.5",
464
471
  "license": "MIT",
465
472
  "dependencies": {
466
- "@jimp/utils": "^0.22.4",
473
+ "@jimp/utils": "^0.22.5",
467
474
  "any-base": "^1.1.0",
468
475
  "buffer": "^5.2.0",
469
476
  "exif-parser": "^0.1.12",
@@ -475,17 +482,17 @@
475
482
  }
476
483
  },
477
484
  "node_modules/@jimp/custom": {
478
- "version": "0.22.4",
485
+ "version": "0.22.5",
479
486
  "license": "MIT",
480
487
  "dependencies": {
481
- "@jimp/core": "^0.22.4"
488
+ "@jimp/core": "^0.22.5"
482
489
  }
483
490
  },
484
491
  "node_modules/@jimp/gif": {
485
- "version": "0.22.4",
492
+ "version": "0.22.5",
486
493
  "license": "MIT",
487
494
  "dependencies": {
488
- "@jimp/utils": "^0.22.4",
495
+ "@jimp/utils": "^0.22.5",
489
496
  "gifwrap": "^0.9.2",
490
497
  "omggif": "^1.0.9"
491
498
  },
@@ -494,10 +501,10 @@
494
501
  }
495
502
  },
496
503
  "node_modules/@jimp/jpeg": {
497
- "version": "0.22.4",
504
+ "version": "0.22.5",
498
505
  "license": "MIT",
499
506
  "dependencies": {
500
- "@jimp/utils": "^0.22.4",
507
+ "@jimp/utils": "^0.22.5",
501
508
  "jpeg-js": "^0.4.4"
502
509
  },
503
510
  "peerDependencies": {
@@ -505,40 +512,40 @@
505
512
  }
506
513
  },
507
514
  "node_modules/@jimp/plugin-blit": {
508
- "version": "0.22.4",
515
+ "version": "0.22.5",
509
516
  "license": "MIT",
510
517
  "dependencies": {
511
- "@jimp/utils": "^0.22.4"
518
+ "@jimp/utils": "^0.22.5"
512
519
  },
513
520
  "peerDependencies": {
514
521
  "@jimp/custom": ">=0.3.5"
515
522
  }
516
523
  },
517
524
  "node_modules/@jimp/plugin-blur": {
518
- "version": "0.22.4",
525
+ "version": "0.22.5",
519
526
  "license": "MIT",
520
527
  "dependencies": {
521
- "@jimp/utils": "^0.22.4"
528
+ "@jimp/utils": "^0.22.5"
522
529
  },
523
530
  "peerDependencies": {
524
531
  "@jimp/custom": ">=0.3.5"
525
532
  }
526
533
  },
527
534
  "node_modules/@jimp/plugin-circle": {
528
- "version": "0.22.4",
535
+ "version": "0.22.5",
529
536
  "license": "MIT",
530
537
  "dependencies": {
531
- "@jimp/utils": "^0.22.4"
538
+ "@jimp/utils": "^0.22.5"
532
539
  },
533
540
  "peerDependencies": {
534
541
  "@jimp/custom": ">=0.3.5"
535
542
  }
536
543
  },
537
544
  "node_modules/@jimp/plugin-color": {
538
- "version": "0.22.4",
545
+ "version": "0.22.5",
539
546
  "license": "MIT",
540
547
  "dependencies": {
541
- "@jimp/utils": "^0.22.4",
548
+ "@jimp/utils": "^0.22.5",
542
549
  "tinycolor2": "^1.6.0"
543
550
  },
544
551
  "peerDependencies": {
@@ -546,10 +553,10 @@
546
553
  }
547
554
  },
548
555
  "node_modules/@jimp/plugin-contain": {
549
- "version": "0.22.4",
556
+ "version": "0.22.5",
550
557
  "license": "MIT",
551
558
  "dependencies": {
552
- "@jimp/utils": "^0.22.4"
559
+ "@jimp/utils": "^0.22.5"
553
560
  },
554
561
  "peerDependencies": {
555
562
  "@jimp/custom": ">=0.3.5",
@@ -559,10 +566,10 @@
559
566
  }
560
567
  },
561
568
  "node_modules/@jimp/plugin-cover": {
562
- "version": "0.22.4",
569
+ "version": "0.22.5",
563
570
  "license": "MIT",
564
571
  "dependencies": {
565
- "@jimp/utils": "^0.22.4"
572
+ "@jimp/utils": "^0.22.5"
566
573
  },
567
574
  "peerDependencies": {
568
575
  "@jimp/custom": ">=0.3.5",
@@ -572,50 +579,50 @@
572
579
  }
573
580
  },
574
581
  "node_modules/@jimp/plugin-crop": {
575
- "version": "0.22.4",
582
+ "version": "0.22.5",
576
583
  "license": "MIT",
577
584
  "dependencies": {
578
- "@jimp/utils": "^0.22.4"
585
+ "@jimp/utils": "^0.22.5"
579
586
  },
580
587
  "peerDependencies": {
581
588
  "@jimp/custom": ">=0.3.5"
582
589
  }
583
590
  },
584
591
  "node_modules/@jimp/plugin-displace": {
585
- "version": "0.22.4",
592
+ "version": "0.22.5",
586
593
  "license": "MIT",
587
594
  "dependencies": {
588
- "@jimp/utils": "^0.22.4"
595
+ "@jimp/utils": "^0.22.5"
589
596
  },
590
597
  "peerDependencies": {
591
598
  "@jimp/custom": ">=0.3.5"
592
599
  }
593
600
  },
594
601
  "node_modules/@jimp/plugin-dither": {
595
- "version": "0.22.4",
602
+ "version": "0.22.5",
596
603
  "license": "MIT",
597
604
  "dependencies": {
598
- "@jimp/utils": "^0.22.4"
605
+ "@jimp/utils": "^0.22.5"
599
606
  },
600
607
  "peerDependencies": {
601
608
  "@jimp/custom": ">=0.3.5"
602
609
  }
603
610
  },
604
611
  "node_modules/@jimp/plugin-fisheye": {
605
- "version": "0.22.4",
612
+ "version": "0.22.5",
606
613
  "license": "MIT",
607
614
  "dependencies": {
608
- "@jimp/utils": "^0.22.4"
615
+ "@jimp/utils": "^0.22.5"
609
616
  },
610
617
  "peerDependencies": {
611
618
  "@jimp/custom": ">=0.3.5"
612
619
  }
613
620
  },
614
621
  "node_modules/@jimp/plugin-flip": {
615
- "version": "0.22.4",
622
+ "version": "0.22.5",
616
623
  "license": "MIT",
617
624
  "dependencies": {
618
- "@jimp/utils": "^0.22.4"
625
+ "@jimp/utils": "^0.22.5"
619
626
  },
620
627
  "peerDependencies": {
621
628
  "@jimp/custom": ">=0.3.5",
@@ -623,50 +630,50 @@
623
630
  }
624
631
  },
625
632
  "node_modules/@jimp/plugin-gaussian": {
626
- "version": "0.22.4",
633
+ "version": "0.22.5",
627
634
  "license": "MIT",
628
635
  "dependencies": {
629
- "@jimp/utils": "^0.22.4"
636
+ "@jimp/utils": "^0.22.5"
630
637
  },
631
638
  "peerDependencies": {
632
639
  "@jimp/custom": ">=0.3.5"
633
640
  }
634
641
  },
635
642
  "node_modules/@jimp/plugin-invert": {
636
- "version": "0.22.4",
643
+ "version": "0.22.5",
637
644
  "license": "MIT",
638
645
  "dependencies": {
639
- "@jimp/utils": "^0.22.4"
646
+ "@jimp/utils": "^0.22.5"
640
647
  },
641
648
  "peerDependencies": {
642
649
  "@jimp/custom": ">=0.3.5"
643
650
  }
644
651
  },
645
652
  "node_modules/@jimp/plugin-mask": {
646
- "version": "0.22.4",
653
+ "version": "0.22.5",
647
654
  "license": "MIT",
648
655
  "dependencies": {
649
- "@jimp/utils": "^0.22.4"
656
+ "@jimp/utils": "^0.22.5"
650
657
  },
651
658
  "peerDependencies": {
652
659
  "@jimp/custom": ">=0.3.5"
653
660
  }
654
661
  },
655
662
  "node_modules/@jimp/plugin-normalize": {
656
- "version": "0.22.4",
663
+ "version": "0.22.5",
657
664
  "license": "MIT",
658
665
  "dependencies": {
659
- "@jimp/utils": "^0.22.4"
666
+ "@jimp/utils": "^0.22.5"
660
667
  },
661
668
  "peerDependencies": {
662
669
  "@jimp/custom": ">=0.3.5"
663
670
  }
664
671
  },
665
672
  "node_modules/@jimp/plugin-print": {
666
- "version": "0.22.4",
673
+ "version": "0.22.5",
667
674
  "license": "MIT",
668
675
  "dependencies": {
669
- "@jimp/utils": "^0.22.4",
676
+ "@jimp/utils": "^0.22.5",
670
677
  "load-bmfont": "^1.4.1"
671
678
  },
672
679
  "peerDependencies": {
@@ -675,20 +682,20 @@
675
682
  }
676
683
  },
677
684
  "node_modules/@jimp/plugin-resize": {
678
- "version": "0.22.4",
685
+ "version": "0.22.5",
679
686
  "license": "MIT",
680
687
  "dependencies": {
681
- "@jimp/utils": "^0.22.4"
688
+ "@jimp/utils": "^0.22.5"
682
689
  },
683
690
  "peerDependencies": {
684
691
  "@jimp/custom": ">=0.3.5"
685
692
  }
686
693
  },
687
694
  "node_modules/@jimp/plugin-rotate": {
688
- "version": "0.22.4",
695
+ "version": "0.22.5",
689
696
  "license": "MIT",
690
697
  "dependencies": {
691
- "@jimp/utils": "^0.22.4"
698
+ "@jimp/utils": "^0.22.5"
692
699
  },
693
700
  "peerDependencies": {
694
701
  "@jimp/custom": ">=0.3.5",
@@ -698,10 +705,10 @@
698
705
  }
699
706
  },
700
707
  "node_modules/@jimp/plugin-scale": {
701
- "version": "0.22.4",
708
+ "version": "0.22.5",
702
709
  "license": "MIT",
703
710
  "dependencies": {
704
- "@jimp/utils": "^0.22.4"
711
+ "@jimp/utils": "^0.22.5"
705
712
  },
706
713
  "peerDependencies": {
707
714
  "@jimp/custom": ">=0.3.5",
@@ -709,10 +716,10 @@
709
716
  }
710
717
  },
711
718
  "node_modules/@jimp/plugin-shadow": {
712
- "version": "0.22.4",
719
+ "version": "0.22.5",
713
720
  "license": "MIT",
714
721
  "dependencies": {
715
- "@jimp/utils": "^0.22.4"
722
+ "@jimp/utils": "^0.22.5"
716
723
  },
717
724
  "peerDependencies": {
718
725
  "@jimp/custom": ">=0.3.5",
@@ -721,10 +728,10 @@
721
728
  }
722
729
  },
723
730
  "node_modules/@jimp/plugin-threshold": {
724
- "version": "0.22.4",
731
+ "version": "0.22.5",
725
732
  "license": "MIT",
726
733
  "dependencies": {
727
- "@jimp/utils": "^0.22.4"
734
+ "@jimp/utils": "^0.22.5"
728
735
  },
729
736
  "peerDependencies": {
730
737
  "@jimp/custom": ">=0.3.5",
@@ -733,30 +740,30 @@
733
740
  }
734
741
  },
735
742
  "node_modules/@jimp/plugins": {
736
- "version": "0.22.4",
737
- "license": "MIT",
738
- "dependencies": {
739
- "@jimp/plugin-blit": "^0.22.4",
740
- "@jimp/plugin-blur": "^0.22.4",
741
- "@jimp/plugin-circle": "^0.22.4",
742
- "@jimp/plugin-color": "^0.22.4",
743
- "@jimp/plugin-contain": "^0.22.4",
744
- "@jimp/plugin-cover": "^0.22.4",
745
- "@jimp/plugin-crop": "^0.22.4",
746
- "@jimp/plugin-displace": "^0.22.4",
747
- "@jimp/plugin-dither": "^0.22.4",
748
- "@jimp/plugin-fisheye": "^0.22.4",
749
- "@jimp/plugin-flip": "^0.22.4",
750
- "@jimp/plugin-gaussian": "^0.22.4",
751
- "@jimp/plugin-invert": "^0.22.4",
752
- "@jimp/plugin-mask": "^0.22.4",
753
- "@jimp/plugin-normalize": "^0.22.4",
754
- "@jimp/plugin-print": "^0.22.4",
755
- "@jimp/plugin-resize": "^0.22.4",
756
- "@jimp/plugin-rotate": "^0.22.4",
757
- "@jimp/plugin-scale": "^0.22.4",
758
- "@jimp/plugin-shadow": "^0.22.4",
759
- "@jimp/plugin-threshold": "^0.22.4",
743
+ "version": "0.22.5",
744
+ "license": "MIT",
745
+ "dependencies": {
746
+ "@jimp/plugin-blit": "^0.22.5",
747
+ "@jimp/plugin-blur": "^0.22.5",
748
+ "@jimp/plugin-circle": "^0.22.5",
749
+ "@jimp/plugin-color": "^0.22.5",
750
+ "@jimp/plugin-contain": "^0.22.5",
751
+ "@jimp/plugin-cover": "^0.22.5",
752
+ "@jimp/plugin-crop": "^0.22.5",
753
+ "@jimp/plugin-displace": "^0.22.5",
754
+ "@jimp/plugin-dither": "^0.22.5",
755
+ "@jimp/plugin-fisheye": "^0.22.5",
756
+ "@jimp/plugin-flip": "^0.22.5",
757
+ "@jimp/plugin-gaussian": "^0.22.5",
758
+ "@jimp/plugin-invert": "^0.22.5",
759
+ "@jimp/plugin-mask": "^0.22.5",
760
+ "@jimp/plugin-normalize": "^0.22.5",
761
+ "@jimp/plugin-print": "^0.22.5",
762
+ "@jimp/plugin-resize": "^0.22.5",
763
+ "@jimp/plugin-rotate": "^0.22.5",
764
+ "@jimp/plugin-scale": "^0.22.5",
765
+ "@jimp/plugin-shadow": "^0.22.5",
766
+ "@jimp/plugin-threshold": "^0.22.5",
760
767
  "timm": "^1.6.1"
761
768
  },
762
769
  "peerDependencies": {
@@ -764,18 +771,25 @@
764
771
  }
765
772
  },
766
773
  "node_modules/@jimp/png": {
767
- "version": "0.22.4",
774
+ "version": "0.22.5",
768
775
  "license": "MIT",
769
776
  "dependencies": {
770
- "@jimp/utils": "^0.22.4",
777
+ "@jimp/utils": "^0.22.5",
771
778
  "pngjs": "^6.0.0"
772
779
  },
773
780
  "peerDependencies": {
774
781
  "@jimp/custom": ">=0.3.5"
775
782
  }
776
783
  },
784
+ "node_modules/@jimp/png/node_modules/pngjs": {
785
+ "version": "6.0.0",
786
+ "license": "MIT",
787
+ "engines": {
788
+ "node": ">=12.13.0"
789
+ }
790
+ },
777
791
  "node_modules/@jimp/tiff": {
778
- "version": "0.22.4",
792
+ "version": "0.22.5",
779
793
  "license": "MIT",
780
794
  "dependencies": {
781
795
  "utif2": "^4.0.1"
@@ -785,14 +799,14 @@
785
799
  }
786
800
  },
787
801
  "node_modules/@jimp/types": {
788
- "version": "0.22.4",
802
+ "version": "0.22.5",
789
803
  "license": "MIT",
790
804
  "dependencies": {
791
- "@jimp/bmp": "^0.22.4",
792
- "@jimp/gif": "^0.22.4",
793
- "@jimp/jpeg": "^0.22.4",
794
- "@jimp/png": "^0.22.4",
795
- "@jimp/tiff": "^0.22.4",
805
+ "@jimp/bmp": "^0.22.5",
806
+ "@jimp/gif": "^0.22.5",
807
+ "@jimp/jpeg": "^0.22.5",
808
+ "@jimp/png": "^0.22.5",
809
+ "@jimp/tiff": "^0.22.5",
796
810
  "timm": "^1.6.1"
797
811
  },
798
812
  "peerDependencies": {
@@ -800,7 +814,7 @@
800
814
  }
801
815
  },
802
816
  "node_modules/@jimp/utils": {
803
- "version": "0.22.4",
817
+ "version": "0.22.5",
804
818
  "license": "MIT",
805
819
  "dependencies": {
806
820
  "regenerator-runtime": "^0.13.3"
@@ -1029,7 +1043,7 @@
1029
1043
  }
1030
1044
  },
1031
1045
  "node_modules/@types/node": {
1032
- "version": "18.13.0",
1046
+ "version": "18.14.0",
1033
1047
  "license": "MIT"
1034
1048
  },
1035
1049
  "node_modules/@types/normalize-package-data": {
@@ -1245,14 +1259,14 @@
1245
1259
  }
1246
1260
  },
1247
1261
  "node_modules/appium-adb/node_modules/lru-cache": {
1248
- "version": "7.15.0",
1262
+ "version": "7.17.0",
1249
1263
  "license": "ISC",
1250
1264
  "engines": {
1251
1265
  "node": ">=12"
1252
1266
  }
1253
1267
  },
1254
1268
  "node_modules/appium-android-driver": {
1255
- "version": "5.8.9",
1269
+ "version": "5.8.10",
1256
1270
  "license": "Apache-2.0",
1257
1271
  "dependencies": {
1258
1272
  "@babel/runtime": "^7.0.0",
@@ -1284,14 +1298,14 @@
1284
1298
  }
1285
1299
  },
1286
1300
  "node_modules/appium-android-driver/node_modules/lru-cache": {
1287
- "version": "7.15.0",
1301
+ "version": "7.17.0",
1288
1302
  "license": "ISC",
1289
1303
  "engines": {
1290
1304
  "node": ">=12"
1291
1305
  }
1292
1306
  },
1293
1307
  "node_modules/appium-chromedriver": {
1294
- "version": "5.2.17",
1308
+ "version": "5.3.0",
1295
1309
  "hasInstallScript": true,
1296
1310
  "license": "Apache-2.0",
1297
1311
  "dependencies": {
@@ -3601,13 +3615,6 @@
3601
3615
  "node": ">=4"
3602
3616
  }
3603
3617
  },
3604
- "node_modules/pngjs": {
3605
- "version": "6.0.0",
3606
- "license": "MIT",
3607
- "engines": {
3608
- "node": ">=12.13.0"
3609
- }
3610
- },
3611
3618
  "node_modules/portfinder": {
3612
3619
  "version": "1.0.32",
3613
3620
  "license": "MIT",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "2.12.4",
10
+ "version": "2.12.6",
11
11
  "author": "Appium Contributors",
12
12
  "license": "Apache-2.0",
13
13
  "repository": {
@@ -52,12 +52,13 @@
52
52
  "lib",
53
53
  "build/index.js",
54
54
  "build/lib",
55
+ "scripts",
55
56
  "CHANGELOG.md"
56
57
  ],
57
58
  "dependencies": {
58
59
  "@babel/runtime": "^7.0.0",
59
60
  "appium-adb": "^9.10.14",
60
- "appium-android-driver": "^5.8.7",
61
+ "appium-android-driver": "^5.8.10",
61
62
  "appium-chromedriver": "^5.2.16",
62
63
  "appium-uiautomator2-server": "^5.7.2",
63
64
  "asyncbox": "^2.3.1",
@@ -111,7 +112,7 @@
111
112
  "fancy-log": "^2.0.0",
112
113
  "lint-staged": "^13.0.3",
113
114
  "mocha": "^10.0.0",
114
- "pngjs": "^6.0.0",
115
+ "pngjs": "^7.0.0",
115
116
  "pre-commit": "^1.2.2",
116
117
  "rimraf": "^4.0.4",
117
118
  "semantic-release": "^20.0.2",
@@ -0,0 +1,30 @@
1
+ const { ADB } = require('appium-adb');
2
+ const B = require('bluebird');
3
+ const log = require('fancy-log');
4
+
5
+ const SERVER_PKGS = [
6
+ 'io.appium.uiautomator2.server',
7
+ 'io.appium.uiautomator2.server.test',
8
+ 'io.appium.settings',
9
+ ];
10
+
11
+ async function runReset () {
12
+ const adb = await ADB.createADB();
13
+ const udids = (await adb.getConnectedDevices())
14
+ .filter(({state}) => state === 'device')
15
+ .map(({udid}) => udid);
16
+ if (0 === udids.length) {
17
+ return;
18
+ }
19
+
20
+ log.info(`About to perform reset for the following device${udids.length === 1 ? '' : 's'}: ${udids}`);
21
+ const uninstallPromises = [];
22
+ for (const udid of udids) {
23
+ const deviceAdb = udids.length === 1 ? adb : await ADB.createADB();
24
+ deviceAdb.setDeviceId(udid);
25
+ uninstallPromises.push(...(SERVER_PKGS.map((pkgId) => deviceAdb.uninstallApk(pkgId))));
26
+ }
27
+ await B.all(uninstallPromises);
28
+ }
29
+
30
+ (async () => await runReset())();