From 8ec82916117bfc919e59df20eca9785e6fff31f1 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Fri, 3 Jan 2025 18:00:39 +0100 Subject: [PATCH] unduplicate asset names --- .../download_asset/lib/src/hook_helpers/c_build.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/native_assets_cli/example/build/download_asset/lib/src/hook_helpers/c_build.dart b/pkgs/native_assets_cli/example/build/download_asset/lib/src/hook_helpers/c_build.dart index 18af28444..784d062ed 100644 --- a/pkgs/native_assets_cli/example/build/download_asset/lib/src/hook_helpers/c_build.dart +++ b/pkgs/native_assets_cli/example/build/download_asset/lib/src/hook_helpers/c_build.dart @@ -7,8 +7,15 @@ import 'package:native_assets_cli/code_assets_builder.dart'; import 'package:native_toolchain_c/native_toolchain_c.dart'; Future runBuild(BuildConfig config, BuildOutputBuilder output) async { + final target = createTargetName( + config.codeConfig.targetOS.name, + config.codeConfig.targetArchitecture.name, + config.codeConfig.targetOS == OS.iOS + ? config.codeConfig.iOSConfig.targetSdk.type + : null, + ); final cbuilder = CBuilder.library( - name: 'native_add', + name: 'native_add_$target', assetName: 'native_add.dart', sources: [ 'src/native_add.c',