@@ -792,6 +792,7 @@ class DebuggingOptions {
792792 this .nullAssertions = false ,
793793 this .nativeNullAssertions = false ,
794794 this .enableImpeller = false ,
795+ this .uninstallFirst = false ,
795796 }) : debuggingEnabled = true ;
796797
797798 DebuggingOptions .disabled (this .buildInfo, {
@@ -808,6 +809,7 @@ class DebuggingOptions {
808809 this .cacheSkSL = false ,
809810 this .traceAllowlist,
810811 this .enableImpeller = false ,
812+ this .uninstallFirst = false ,
811813 }) : debuggingEnabled = false ,
812814 useTestFonts = false ,
813815 startPaused = false ,
@@ -876,6 +878,7 @@ class DebuggingOptions {
876878 required this .nullAssertions,
877879 required this .nativeNullAssertions,
878880 required this .enableImpeller,
881+ required this .uninstallFirst,
879882 });
880883
881884 final bool debuggingEnabled;
@@ -912,6 +915,11 @@ class DebuggingOptions {
912915 final bool webUseSseForInjectedClient;
913916 final bool enableImpeller;
914917
918+ /// Whether the tool should try to uninstall a previously installed version of the app.
919+ ///
920+ /// This is not implemented for every platform.
921+ final bool uninstallFirst;
922+
915923 /// Whether to run the browser in headless mode.
916924 ///
917925 /// Some CI environments do not provide a display and fail to launch the
@@ -1026,6 +1034,7 @@ class DebuggingOptions {
10261034 nullAssertions: (json['nullAssertions' ] as bool ? )! ,
10271035 nativeNullAssertions: (json['nativeNullAssertions' ] as bool ? )! ,
10281036 enableImpeller: (json['enableImpeller' ] as bool ? ) ?? false ,
1037+ uninstallFirst: (json['uninstallFirst' ] as bool ? ) ?? false ,
10291038 );
10301039}
10311040
0 commit comments