[flutter_tools] Reland fast start by default for Android (#49315)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
782f9cceac
commit
2f59919496
@@ -26,7 +26,7 @@ void main() {
|
||||
print('run: starting...');
|
||||
final Process run = await startProcess(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
<String>['run', '--verbose', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/commands.dart'],
|
||||
<String>['run', '--verbose', '--disable-service-auth-codes', '--no-fast-start', '-d', device.deviceId, 'lib/commands.dart'],
|
||||
);
|
||||
final StreamController<String> stdout = StreamController<String>.broadcast();
|
||||
run.stdout
|
||||
|
||||
@@ -26,7 +26,7 @@ void main() {
|
||||
Completer<void> firstNameFound = Completer<void>();
|
||||
Completer<void> secondNameFound = Completer<void>();
|
||||
final Process runProcess = await _run(device: device, command:
|
||||
<String>['run', '--disable-service-auth-codes'], stdoutListener: (String line) {
|
||||
<String>['run', '--disable-service-auth-codes', '--no-fast-start'], stdoutListener: (String line) {
|
||||
if (line.contains(_kFirstIsolateName)) {
|
||||
firstNameFound.complete();
|
||||
} else if (line.contains(_kSecondIsolateName)) {
|
||||
|
||||
@@ -48,6 +48,7 @@ void main() {
|
||||
'run',
|
||||
'--machine',
|
||||
'--verbose',
|
||||
'--no-fast-start',
|
||||
'-d',
|
||||
device.deviceId,
|
||||
'lib/commands.dart',
|
||||
|
||||
@@ -25,7 +25,7 @@ void main() {
|
||||
print('run: starting...');
|
||||
final Process run = await startProcess(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
<String>['run', '--verbose', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'],
|
||||
<String>['run', '--verbose', '--no-fast-start', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'],
|
||||
);
|
||||
run.stdout
|
||||
.transform<String>(utf8.decoder)
|
||||
|
||||
@@ -719,6 +719,7 @@ class ReportedDurationTest {
|
||||
print('launching $project$test on device...');
|
||||
await flutter('run', options: <String>[
|
||||
'--verbose',
|
||||
'--no-fast-start',
|
||||
'--${_reportedDurationTestToString(flavor)}',
|
||||
'--no-resident',
|
||||
'-d', device.deviceId,
|
||||
|
||||
Reference in New Issue
Block a user