flutter/packages/flutter_tools/test
David Iglesias c7c9d8eea6
[web] Encode AssetManifest.bin as JSON and use that on the web. (#131382)
This PR modifies the web build slightly to create an `AssetManifest.json`, that is a JSON(base64)-encoded version of the `AssetManifest.bin` file.

_(This should enable all browsers to download the file without any interference, and all servers to serve it with the correct headers.)_

It also modifies Flutter's `AssetManifest` class so it loads and uses said file `if (kIsWeb)`.

### Issues

* Fixes https://github.com/flutter/flutter/issues/124883

### Tests

* Unit tests added.
* Some tests that run on the Web needed to be informed of the new filename, but their behavior didn't have to change (binary contents are the same across all platforms).
* I've deployed a test app, so users affected by the BIN issue may take a look at the PR in action:
  * https://dit-tests.web.app
2023-09-19 22:38:51 +00:00
..
commands.shard Makes scheme and target optional parameter when getting universal lin… (#134571) 2023-09-15 21:01:05 +00:00
data Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
general.shard [web] Encode AssetManifest.bin as JSON and use that on the web. (#131382) 2023-09-19 22:38:51 +00:00
host_cross_arch.shard Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
integration.shard Native assets support for Linux (#134031) 2023-09-18 11:13:37 +00:00
src Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
web.shard Add vmservice for android build options (#123034) 2023-04-18 18:16:09 +00:00