Let flutter attach find the service port by looking through old logs again (#53153)

This commit is contained in:
xster
2020-03-24 23:26:01 -07:00
committed by GitHub
parent 6563b0de34
commit 0c5ffdc9ef
15 changed files with 220 additions and 69 deletions

View File

@@ -60,7 +60,10 @@ class ChromeDevice extends Device {
DeviceLogReader _logReader;
@override
DeviceLogReader getLogReader({ApplicationPackage app}) {
DeviceLogReader getLogReader({
ApplicationPackage app,
bool includePastLogs = false,
}) {
return _logReader ??= NoOpDeviceLogReader(app?.name);
}
@@ -221,7 +224,10 @@ class WebServerDevice extends Device {
DeviceLogReader _logReader;
@override
DeviceLogReader getLogReader({ApplicationPackage app}) {
DeviceLogReader getLogReader({
ApplicationPackage app,
bool includePastLogs = false,
}) {
return _logReader ??= NoOpDeviceLogReader(app?.name);
}