start method
Implementation
Future<Process> start() async {
try {
// First, get available devices
final deviceId = await _selectDevice();
// Simple DCFlight run arguments
final args = [
'run',
'-d', deviceId,
...additionalArgs,
];
if (verbose) {
print('🎯 Starting DCFlight app: ${args.join(' ')}');
}
// Start DCFlight runtime (powered by Flutter engine)
final process = await Process.start(
'flutter',
args,
mode: ProcessStartMode.inheritStdio,
);
if (verbose) {
print('✅ DCFlight runtime started');
}
return process;
} catch (e) {
throw Exception('Failed to start DCFlight app: $e');
}
}