flutter/packages/flutter_tools/test/general.shard/build_system/targets
Andrew Kolos ebe53d570a
Fix asset transformation in the presence of resolution-aware asset variants (#151932)
For the necessary background knowledge, see the flutter.dev content on [Resolution-aware image assets](https://docs.flutter.dev/ui/assets/assets-and-images#resolution-aware) and [Conditional bundling of assets based on app flavor](https://docs.flutter.dev/ui/assets/assets-and-images#conditional-bundling-of-assets-based-on-app-flavor) if you don't have a basic understanding of these features.

Fixes https://github.com/flutter/flutter/issues/151813 by using unique temporary directories, per asset file, for transformations. Currently, only a single directory is used and the name of the temporary files was based only on the basename of files. This means that `assets/image.png` and `assets/2x/image.png` would share an output path (`<temp dir path>/image.png`), causing a race. If this quick and rough explanation is a bit confusing, the original issue—#151813—provides a full repro and correct identification of the exact cause of the failure that can occur in the asset transformation process.
2024-07-22 23:46:19 +00:00
..
android_test.dart Refactor ShaderTarget to not explicitly mention impeller or Skia (#141460) 2024-01-31 21:30:02 +00:00
asset_transformer_test.dart Fix asset transformation in the presence of resolution-aware asset variants (#151932) 2024-07-22 23:46:19 +00:00
assets_test.dart Fix asset transformation in the presence of resolution-aware asset variants (#151932) 2024-07-22 23:46:19 +00:00
common_test.dart Fix dep tracking (#147709) 2024-05-07 17:44:12 +00:00
dart_plugin_registrant_test.dart Reland: Update link branches to main (#146882) 2024-04-17 13:16:33 +00:00
deferred_components_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
desktop_test.dart Migrate some test files to null safety (#104469) 2022-05-24 16:53:08 -07:00
icon_tree_shaker_test.dart Update icon tree shaker to allow system font fallback (#147202) 2024-04-23 16:40:29 +00:00
ios_test.dart Fixes incorrect read/write permissions on Flutter.framework and FlutterMacOS.framework (#148580) 2024-05-20 14:41:52 -07:00
linux_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
localizations_test.dart Refactor "gen-l10n" command to use same code path when "l10n.yaml" is present or not present (#125429) 2023-04-26 11:49:25 -07:00
macos_test.dart Fixes incorrect read/write permissions on Flutter.framework and FlutterMacOS.framework (#148580) 2024-05-20 14:41:52 -07:00
shader_compiler_test.dart Avoid depending on files from build_system/targets other than from top level entrypoints in flutter_tools. (#142760) 2024-02-02 18:23:08 +00:00
web_defines_test.dart [web] Change --web-renderer default from auto to canvaskit (#149773) 2024-06-10 16:38:09 +00:00
web_test.dart Emit source maps for wasm in flutter build web --wasm (#151643) 2024-07-13 10:24:16 +02:00
windows_test.dart Enable native compilation for windows-arm64 (#141930) 2024-01-26 00:08:20 +00:00