@@ -104,9 +104,6 @@ abstract class DesktopDevice extends Device {
104104 @override
105105 void clearLogs () {}
106106
107- @override
108- bool get supportsInstall => false ;
109-
110107 @override
111108 Future <LaunchResult > startApp (
112109 ApplicationPackage package, {
@@ -126,9 +123,9 @@ abstract class DesktopDevice extends Device {
126123 }
127124
128125 // Ensure that the executable is locatable.
129- final BuildInfo buildInfo = debuggingOptions.buildInfo;
126+ final BuildMode buildMode = debuggingOptions.buildInfo.mode ;
130127 final bool traceStartup = platformArgs['trace-startup' ] as bool ? ?? false ;
131- final String ? executable = executablePathForDevice (package, buildInfo );
128+ final String ? executable = executablePathForDevice (package, buildMode );
132129 if (executable == null ) {
133130 _logger.printError ('Unable to find executable to run' );
134131 return LaunchResult .failed ();
@@ -164,7 +161,7 @@ abstract class DesktopDevice extends Device {
164161 try {
165162 final Uri ? observatoryUri = await observatoryDiscovery.uri;
166163 if (observatoryUri != null ) {
167- onAttached (package, buildInfo , process);
164+ onAttached (package, buildMode , process);
168165 return LaunchResult .succeeded (observatoryUri: observatoryUri);
169166 }
170167 _logger.printError (
@@ -206,11 +203,11 @@ abstract class DesktopDevice extends Device {
206203
207204 /// Returns the path to the executable to run for [package] on this device for
208205 /// the given [buildMode] .
209- String ? executablePathForDevice (ApplicationPackage package, BuildInfo buildInfo );
206+ String ? executablePathForDevice (ApplicationPackage package, BuildMode buildMode );
210207
211208 /// Called after a process is attached, allowing any device-specific extra
212209 /// steps to be run.
213- void onAttached (ApplicationPackage package, BuildInfo buildInfo , Process process) {}
210+ void onAttached (ApplicationPackage package, BuildMode buildMode , Process process) {}
214211
215212 /// Computes a set of environment variables used to pass debugging information
216213 /// to the engine without interfering with application level command line
0 commit comments