From cdb29b8c039b95d372ca68e5f0b66d11ca6aa5b6 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Wed, 8 Jan 2025 15:15:03 +0100 Subject: [PATCH] one more deprecated key --- .../test/code_assets/config_test.dart | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/native_assets_cli/test/code_assets/config_test.dart b/pkgs/native_assets_cli/test/code_assets/config_test.dart index 3f6937f32..85fa79b41 100644 --- a/pkgs/native_assets_cli/test/code_assets/config_test.dart +++ b/pkgs/native_assets_cli/test/code_assets/config_test.dart @@ -103,13 +103,14 @@ void main() async { }, }, }, - 'c_compiler': { - 'ar': fakeAr.toFilePath(), - 'ld': fakeLd.toFilePath(), - 'cc': fakeClang.toFilePath(), - 'env_script': fakeVcVars.toFilePath(), - 'env_script_arguments': ['arg0', 'arg1'], - }, + if (includeDeprecated) + 'c_compiler': { + 'ar': fakeAr.toFilePath(), + 'ld': fakeLd.toFilePath(), + 'cc': fakeClang.toFilePath(), + 'env_script': fakeVcVars.toFilePath(), + 'env_script_arguments': ['arg0', 'arg1'], + }, if (hookType == 'build' && includeDeprecated) 'dry_run': false, if (hookType == 'build' && includeDeprecated) 'linking_enabled': false, if (includeDeprecated) 'link_mode_preference': 'prefer-static',