Elliott Brooks
01eef7ca13
Upgrade Flutter deps to pull in latest vm_service and dwds ( #136734 )
...
Generated by running `flutter update-packages --force-upgrade`
Updates vm_service to [12.0.0](https://pub.dev/packages/vm_service/versions/12.0.0 ) and dwds to [22.0.0](https://pub.dev/packages/dwds/versions/22.0.0 )
The changes to `packages/flutter_tools/lib/src/isolated/devfs_web.dart` are for the new interface of DWDS introduced in https://github.com/dart-lang/webdev/pull/2243
FYI @bkonyi
2023-10-19 18:29:02 +00:00
Aran Donohue
48eee14f0e
Support --web-header option for flutter run ( #136297 )
...
Adds support for a new --web-header option to flutter run.
Creates a workaround for https://github.com/flutter/flutter/issues/127902
This PR allows adding additional headers for the flutter run web server. This is useful to add headers like Cross-Origin-Embedder-Policy and Cross-Origin-Opener-Policy without the use of a proxy server. These headers are required enable advanced web features. This approach provides flexibility to the developer to make use of the feature as they see fit and is backward-compatible. One tradeoff is that it increases the surface area to support for future changes to the flutter web server.
https://github.com/flutter/flutter/issues/127902 is not fully addressed by this change. The solution for that task will be more opinionated. This PR creates a general-purpose workaround for anyone who needs a solution sooner while the bigger solution is developed.
2023-10-17 19:42:01 +00:00
Yegor
0f082889a8
[web] remove loading indicator in -d web-server builds ( #136482 )
...
Fixes https://github.com/flutter/flutter/issues/135226
2023-10-12 23:45:06 +00:00
Elliott Brooks
118544972a
Update DWDS to 20.0.1
in flutter_tools
( #132350 )
...
- Updates DWDS from `19.0.2` to `20.0.1`
- Makes the required changes for the breaking changes to the `AssetReader` class
2023-08-11 23:09:07 +00:00
Martin Kustermann
7068a2088e
Prepare for utf8.encode() to return more precise Uint8List type ( #129769 )
...
To avoid analyzer warnings when utf8.encode() will return the more
precise Uint8List type, we use const Utf8Encoder().convert() which
already returns Uint8List
See https://github.com/dart-lang/sdk/issues/52801
2023-06-29 22:44:57 +02:00
Kevin Moore
895879c195
flutter_tools: Flutter Web CLI cleanup ( #124564 )
...
flutter_tools: Flutter Web CLI cleanup
2023-04-12 00:01:15 +00:00
Jackson Gardner
37d4e7d60e
Always use the canvaskit path from the web sdk. ( #123915 )
...
Always use the canvaskit path from the web sdk.
2023-04-04 22:36:43 +00:00
Elliott Brooks
840993be38
[flutter_tools] Pass app entrypoint to DWDS version 19.0.0 ( #124138 )
2023-04-04 12:34:07 -07:00
Andrew Kolos
66e6acbe9f
throw ToolExit
when --web-port
is an integer outside the valid TCP port range ( #123269 )
...
throw `ToolExit` when `--web-port` is an integer outside the valid TCP port range
2023-03-27 19:58:37 +00:00
Christopher Fujino
3736274a6d
Revert "[flutter_tools] Remove sound null safety flag ( #123031 )" ( #123280 )
...
Revert "[flutter_tools] Remove sound null safety flag (#123031 )"
2023-03-22 22:53:49 +00:00
Christopher Fujino
f4c3facfdd
Revert "Revert "[flutter_tools] Remove sound null safety flag ( #120936 )" ( #122909 )" ( #123031 )
...
[flutter_tools] Remove sound null safety flag #2
2023-03-20 22:32:07 +00:00
Christopher Fujino
f6bc147c91
Revert "[flutter_tools] Remove sound null safety flag ( #120936 )" ( #122909 )
...
This reverts commit 7c3088cf22c8a863ca38e3890851fd8dc776768d.
2023-03-17 11:31:48 -07:00
Christopher Fujino
7c3088cf22
[flutter_tools] Remove sound null safety flag ( #120936 )
...
[flutter_tools] Remove sound null safety flag
2023-03-17 17:48:35 +00:00
Mouad Debbar
95c2ad5047
[web] Ensure CanvasKit is served from the correct location ( #121902 )
...
[web] Ensure CanvasKit is served from the correct location
2023-03-07 21:38:35 +00:00
Flutter GitHub Bot
cf4ef28b94
Roll pub packages ( #121569 )
...
Roll pub packages
2023-02-28 03:10:07 +00:00
Ian Hickson
6205c110d6
Remove "note that" in our documentation (as per style guide) ( #120842 )
...
* lerp documentation
* Remove Note, Note That from repo
* Improve BorderSide documentation.
* apply review comments
2023-02-17 22:27:33 +00:00
Mouad Debbar
d5dbcb7085
Revert "Revert "[web] Move JS content to its own .js
files ( #117691 )" ( #120275 )" ( #120363 )
...
This reverts commit 0fb4406c30d6427044fa8322a6278b92982cc22b.
2023-02-10 21:24:08 +00:00
Kevin Chisholm
0fb4406c30
Revert "[web] Move JS content to its own .js
files ( #117691 )" ( #120275 )
...
This reverts commit e03029ef6a0c2040476bf6602da4e5d1271eb77d.
2023-02-08 18:17:29 -06:00
Mouad Debbar
e03029ef6a
[web] Move JS content to its own .js
files ( #117691 )
2023-02-07 10:51:52 -05:00
Kevin Moore
a27802e2db
flutter_tool: remove explicit length header in HTTP response ( #119869 )
...
This is already handled by pkg:shelf
There is some subtlety with String here, since String.length might not
align with the size in bytes over the wire, depending on the contents
and the encoding
Best to just let pkg:shelf handle it
2023-02-03 01:27:23 +00:00
Christopher Fujino
d820aec786
Manual pub roll with dwds fix ( #119575 )
...
* roll packages
* fix dwds
* empty
---------
Co-authored-by: fluttergithubbot <fluttergithubbot@gmail.com>
2023-02-02 21:38:08 +00:00
Mouad Debbar
d4b6898478
[web] Put all index.html operations in one place ( #118188 )
...
* [web] Put all index.html operations in one place
* review comments
* fix build
* change quotes
* fix test
2023-02-02 19:49:18 +00:00
Nicholas Shahan
3735231841
Cleanup old Dart SDK layout compatibility ( #118819 )
...
The changes to the Dart SDK have rolled so the backward compatibility
is no longer needed.
2023-01-24 09:22:13 -08:00
Michael Goderbauer
38630b6bd1
Remove unnecessary null checks in flutter_tool
( #118857 )
...
* dart fix --apply
* manual fixes
* fix after merge conflicts
* review
2023-01-23 21:43:08 +00:00
Brandon DeRosier
700fe3d2b0
[Impeller Scene] Add SceneC asset importing ( #118157 )
2023-01-10 01:51:40 -08:00
Nicholas Shahan
e9bbb1137f
Fix path for require.js ( #118120 )
...
- Matches new location in the Dart SDK.
https://dart-review.googlesource.com/c/sdk/+/275482
- Includes fall back logic so the existing and new locations will work
depending on the file that is available.
2023-01-09 14:44:23 -08:00
Jackson Gardner
db1c3e208d
Platform binaries reland ( #115502 )
...
You can now specify a --local-web-sdk flag to point to a wasm_release folder. This will make it so that only artifacts that pertain to the web sdk are overridden to point to the wasm_release folder. Other artifacts (such as impellerc) will pull from the cache, or from the --local-engine path if that is specified.
This also uses precompiled platform kernel files for both ddc and dart2js
2022-12-02 14:13:40 -08:00
Jenn Magder
c1d2b854ef
Change some required nullable parameters in tool to non-null ( #114115 )
2022-11-04 17:36:01 +00:00
Jonah Williams
4f19a9fa46
[flutter_tools] Add support for compiling shaders to JSON bundle for web ( #114295 )
2022-10-31 16:52:09 +00:00
Elliott Brooks (she/her)
57e42f0223
Manually update DWDS version to v.16.0.0
( #110822 )
2022-09-02 19:17:48 +00:00
Anna Gringauze
3b6e3a6938
Temporarily remove a bogus warning until fixed by dwds update ( #109793 )
...
* Temporarily remove a bogus warning until fixed by dwds update
* Addressed CR feedback
2022-08-19 11:06:53 -07:00
Christopher Fujino
017dd3e7d6
[flutter_tools] Fix race condition with completer in devfs_web ( #109059 )
2022-08-09 23:57:06 +00:00
Jonah Williams
921c80302c
[flutter_tools] support hot reload of font assets ( #109091 )
2022-08-08 20:42:06 +00:00
Jonah Williams
7e683c023a
[flutter_tools] add tool support for shader hot reload ( #107963 )
2022-07-27 03:31:06 +00:00
Lau Ching Jun
922eea8763
Dart registrant location ( #107967 )
2022-07-20 08:51:04 +00:00
Christopher Fujino
81045d4a44
Revert "Read dart_plugin_registrant path from FlutterProject to support non-standard path." ( #107850 )
2022-07-18 19:58:10 +00:00
Lau Ching Jun
8f834cf150
Read dart_plugin_registrant path from FlutterProject to support non-standard path. ( #107617 )
2022-07-15 12:33:07 -07:00
Zachary Anderson
9c0f239947
Put shaders under a 'shaders' section in the manifest ( #106752 )
2022-06-28 19:31:27 -07:00
Jonah Williams
92034482f9
[flutter_tool] partial null safety migration of tool source code ( #105798 )
2022-06-15 20:02:07 +00:00
David Iglesias
1af8cc1183
[tools][web] Make Plugin Registrant file ephemeral. ( #102185 )
2022-05-11 17:54:11 -07:00
Anna Gringauze
29fecb5980
Provide flutter sdk kernel files to dwds launcher instead of dart ones ( #103436 )
...
* Provide flutter sdk kernel files to dwds launcher instead of dart ones
* Update log test to report all warnings
* Update licences for new files
* Addressed CR comments
* Addressed CR comments
2022-05-11 08:52:43 -07:00
Christopher Fujino
e8c01a8aa8
[flutter_tools] pub roll ( #103220 )
...
Co-authored-by: Michael Goderbauer <goderbauer@google.com>
2022-05-10 10:26:54 -07:00
Phil Quitslund
b5e7fb076c
[flutter_tools] rename local functions with _
s ( #102688 )
2022-04-27 16:19:07 -07:00
Alexandre Ardhuin
07f1c20474
add missing trailing commas in list/set/map literals ( #102585 )
2022-04-27 09:15:35 +02:00
Christopher Fujino
5a3e10047f
[flutter_tools] Add test that "Unresolve URI" warnings from DWDS are filtered from logs ( #102399 )
2022-04-22 15:29:07 -07:00
Elliott Brooks (she/her)
5414ef4c86
Hide unresolved DartUri log messages ( #102338 )
2022-04-22 12:43:39 -07:00
Anna Gringauze
74944d528f
Run update-packages ( #101450 )
...
* Run update-packages
* Update DwdsLauncher, disable failing test
* Fix analyze error
Co-authored-by: Jenn Magder <magder@google.com>
2022-04-07 17:07:05 -07:00
David Iglesias
e52b777a2c
[web] flutter.js initialization with ui.webOnlyWarmupEngine ( #100177 )
2022-03-30 23:00:09 -07:00
Sergey Fedotov
2a4e573dcd
Serve assets with correct content-type header value ( #94357 )
2021-12-08 12:29:07 -08:00
Anna Gringauze
ca62470796
De-flake web tool tests ( #93948 )
2021-11-30 17:39:05 -08:00