Skip to content

Commit 28a4e85

Browse files
authored
Use dwds 24.4.0 (flutter#171669)
Requires a modification to how we compute the hotReloadSourcesUri contents. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
1 parent a9a2d74 commit 28a4e85

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/flutter_tools/lib/src/isolated/web_asset_server.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ class WebAssetServer implements AssetReader {
131131
static const String _reloadScriptsFileName = 'reload_scripts.json';
132132

133133
/// Given a list of [modules] that need to be reloaded, writes a file that
134-
/// contains a list of objects each with two fields:
134+
/// contains a list of objects each with three fields:
135135
///
136136
/// `src`: A string that corresponds to the file path containing a DDC library
137137
/// bundle. To support embedded libraries, the path should include the
138138
/// `baseUri` of the web server.
139+
/// `module`: The name of the library bundle in `src`.
139140
/// `libraries`: An array of strings containing the libraries that were
140141
/// compiled in `src`.
141142
///
@@ -144,6 +145,7 @@ class WebAssetServer implements AssetReader {
144145
/// [
145146
/// {
146147
/// "src": "<baseUri>/<file_name>",
148+
/// "module": "<module_name>",
147149
/// "libraries": ["<lib1>", "<lib2>"],
148150
/// },
149151
/// ]
@@ -160,7 +162,11 @@ class WebAssetServer implements AssetReader {
160162
);
161163
final List<String> libraries = metadata.libraries.keys.toList();
162164
final String moduleUri = baseUri != null ? '$baseUri/$module' : module;
163-
moduleToLibrary.add(<String, Object>{'src': moduleUri, 'libraries': libraries});
165+
moduleToLibrary.add(<String, Object>{
166+
'src': moduleUri,
167+
'module': metadata.name,
168+
'libraries': libraries,
169+
});
164170
}
165171
writeFile(_reloadScriptsFileName, json.encode(moduleToLibrary));
166172
}

packages/flutter_tools/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
archive: 3.6.1
1414
args: 2.7.0
1515
dds: 5.0.4
16-
dwds: 24.3.11
16+
dwds: 24.4.0
1717
code_builder: 4.10.1
1818
collection: 1.19.1
1919
completion: 1.0.1
@@ -126,4 +126,4 @@ dev_dependencies:
126126
dartdoc:
127127
# Exclude this package from the hosted API docs.
128128
nodoc: true
129-
# PUBSPEC CHECKSUM: e37mug
129+
# PUBSPEC CHECKSUM: 36e76b

0 commit comments

Comments
 (0)