flutter/packages/flutter_tools/test/general.shard/isolated
Daco Harkes cec2400658
[native_assets] Stop running link hooks in JIT mode (#151534)
Stop running link hooks in debug mode.

Rationale: link hooks only get access to tree-shaking info in release builds, so they can't do anything meaningful in debug builds. Debug builds should be fast as development cycle, so running less is better.

More details:

* https://github.com/dart-lang/native/issues/1252

Also: rolls packages to latest versions.

## Implementation details

The decision whether linking is enabled is made as follows:

* For normal builds `build_info.dart::BuildMode` is used to determine whether Dart is compiled in JIT or AOT mode.
* Testers always run in JIT, so no linking.
* Native asset dry runs only run for JIT builds (e.g only when hot reload and hot restart are enabled).

## Testing

The integration test is updated to output an asset for linking if `BuildConfig.linkingEnabled` is true, and to output an asset for bundling directly if linking is not enabled.
2024-07-12 06:44:23 +00:00
..
android [native_assets] Stop running link hooks in JIT mode (#151534) 2024-07-12 06:44:23 +00:00
build_system/targets [deps] Bump native assets dependencies (#145612) 2024-03-25 15:02:49 +01:00
ios [native_assets] Stop running link hooks in JIT mode (#151534) 2024-07-12 06:44:23 +00:00
linux [native_assets] Stop running link hooks in JIT mode (#151534) 2024-07-12 06:44:23 +00:00
macos [native_assets] Stop running link hooks in JIT mode (#151534) 2024-07-12 06:44:23 +00:00
windows [native_assets] Stop running link hooks in JIT mode (#151534) 2024-07-12 06:44:23 +00:00
fake_native_assets_build_runner.dart [native_assets] Stop running link hooks in JIT mode (#151534) 2024-07-12 06:44:23 +00:00
hot_test.dart [native_assets] Add support for link hooks (#148474) 2024-05-22 16:02:00 +00:00
resident_runner_test.dart Refactor BuildInfo to always require packageConfigPath (#150559) 2024-07-02 11:19:31 +02:00