From cbfe69e74c2ac325291368a50fa869fb7fff421e Mon Sep 17 00:00:00 2001 From: Martin Kustermann Date: Mon, 7 Oct 2024 13:02:25 +0200 Subject: [PATCH] [hooks] Remove explicit adding of source dependency in `hook/link.dart` scripts (#1632) --- .../test_data/drop_dylib_link/hook/link.dart | 1 - .../test_data/no_asset_for_link/hook/link.dart | 1 - 2 files changed, 2 deletions(-) diff --git a/pkgs/native_assets_builder/test_data/drop_dylib_link/hook/link.dart b/pkgs/native_assets_builder/test_data/drop_dylib_link/hook/link.dart index b3e266d9b..fb9921e47 100644 --- a/pkgs/native_assets_builder/test_data/drop_dylib_link/hook/link.dart +++ b/pkgs/native_assets_builder/test_data/drop_dylib_link/hook/link.dart @@ -14,6 +14,5 @@ Received ${config.codeAssets.all.length} encodedAssets: ${config.codeAssets.all. print(''' Keeping only ${output.codeAssets.all.map((e) => e.id)}. '''); - output.addDependency(config.packageRoot.resolve('hook/link.dart')); }); } diff --git a/pkgs/native_assets_builder/test_data/no_asset_for_link/hook/link.dart b/pkgs/native_assets_builder/test_data/no_asset_for_link/hook/link.dart index e73ad42ea..6909bb089 100644 --- a/pkgs/native_assets_builder/test_data/no_asset_for_link/hook/link.dart +++ b/pkgs/native_assets_builder/test_data/no_asset_for_link/hook/link.dart @@ -7,6 +7,5 @@ import 'package:native_assets_cli/native_assets_cli.dart'; void main(List arguments) async { await link(arguments, (config, output) async { output.addEncodedAssets(config.encodedAssets); - output.addDependency(config.packageRoot.resolve('hook/link.dart')); }); }