[native_assets] Roll dependencies (#166282)

Updating the dart-lang/native dependencies to the ones published today.

No functional changes, but `CodeAsset` does not expose an `architecture`
and `os ` anymore (https://github.com/dart-lang/native/issues/2127).
Instead these should be taken from what is passed in for the
`CodeConfig`. This PR refactors the `DartBuildResult` to carry around
the `Target` with `CodeAsset`s as `FlutterCodeAsset`s.

(This PR avoid refactoring relevant code due to
https://github.com/flutter/flutter/pull/164094 already refactoring this
code.)
This commit is contained in:
Daco Harkes
2025-04-03 07:42:31 +02:00
committed by GitHub
parent b85c0fc2fe
commit dec31cbab6
12 changed files with 158 additions and 131 deletions

View File

@@ -254,10 +254,11 @@ void main() {
),
),
);
expect(result.codeAssets.map((CodeAsset c) => c.file!.toString()).toList()..sort(), <String>[
directSoFile.uri.toString(),
linkedSoFile.uri.toString(),
]);
expect(
result.codeAssets.map((FlutterCodeAsset c) => c.codeAsset.file!.toString()).toList()
..sort(),
<String>[directSoFile.uri.toString(), linkedSoFile.uri.toString()],
);
},
);
}

View File

@@ -189,7 +189,7 @@ void main(List<String> args) async {
await build(args, (input, output) async {
final packageName = input.packageName;
if (!input.config.buildAssetTypes.contains(CodeAsset.type)) {
if (!input.config.buildCodeAssets) {
return;
}
final builders = [