[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:
@@ -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()],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user