[flutter_tools] rollback to dwds 0.8.5, fix versioning (#49301)

This commit is contained in:
Jonah Williams 2020-01-22 11:05:07 -08:00 committed by GitHub
parent 14fc0e5ca8
commit d68278e3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 8 deletions

View File

@ -525,8 +525,11 @@ class _ExperimentalResidentWebRunner extends ResidentWebRunner {
if (device.device is ChromeDevice) {
final Chrome chrome = await ChromeLauncher.connectedInstance;
final ChromeTab chromeTab = await chrome.chromeConnection.getTab((ChromeTab chromeTab) {
return chromeTab.url.contains(debuggingOptions.hostname);
return !chromeTab.url.startsWith('chrome-extension');
});
if (chromeTab == null) {
throwToolExit('Failed to connect to Chrome instance.');
}
_wipConnection = await chromeTab.connect();
}
appStartedCompleter?.complete();

View File

@ -342,8 +342,8 @@ class WebFs {
dwds,
// Format ipv6 hosts according to RFC 5952.
internetAddress.type == InternetAddressType.IPv4
? '${internetAddress.address}:$hostPort'
: '[${internetAddress.address}]:$hostPort',
? 'http://${internetAddress.address}:$hostPort'
: 'http://[${internetAddress.address}]:$hostPort',
assetServer,
buildInfo.isDebug,
flutterProject,

View File

@ -23,6 +23,7 @@ const Map<String, String> _kManuallyPinnedDependencies = <String, String>{
'flutter_gallery_assets': '0.1.9+2', // See //examples/flutter_gallery/pubspec.yaml
'mockito': '^4.1.0', // Prevent mockito from downgrading to 4.0.0
'vm_service_client': '0.2.6+2', // Final version before being marked deprecated.
'dwds': '0.8.5', // Requires updates to web_fs due to breaking changes.
};
class UpdatePackagesCommand extends FlutterCommand {

View File

@ -280,8 +280,8 @@ class WebDevFS implements DevFS {
// Format ipv6 hosts according to RFC 5952.
return Uri.parse(
internetAddress.type == InternetAddressType.IPv4
? '${internetAddress.address}:$port'
: '[${internetAddress.address}]:$port'
? 'http://${internetAddress.address}:$port'
: 'http://[${internetAddress.address}]:$port'
);
}

View File

@ -11,7 +11,7 @@ dependencies:
# To update these, use "flutter update-packages --force-upgrade".
archive: 2.0.11
args: 1.5.2
dwds: 0.9.0
dwds: 0.8.5
completion: 0.2.1+1
coverage: 0.13.3+3
crypto: 2.1.3
@ -19,7 +19,6 @@ dependencies:
http: 0.12.0+4
intl: 0.16.1
json_rpc_2: 2.1.0
linter: 0.1.109
meta: 1.1.8
multicast_dns: 0.2.2
mustache: 1.1.1
@ -129,4 +128,4 @@ dartdoc:
# Exclude this package from the hosted API docs.
nodoc: true
# PUBSPEC CHECKSUM: 8f2f
# PUBSPEC CHECKSUM: 7cef