[flutter_tools] Reland fast start by default for Android (#49315)

This commit is contained in:
Jonah Williams
2020-01-24 19:18:01 -08:00
committed by Flutter GitHub Bot
parent 782f9cceac
commit 2f59919496
7 changed files with 12 additions and 19 deletions

View File

@@ -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

View File

@@ -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)) {

View File

@@ -48,6 +48,7 @@ void main() {
'run',
'--machine',
'--verbose',
'--no-fast-start',
'-d',
device.deviceId,
'lib/commands.dart',

View File

@@ -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)

View File

@@ -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,