Skip to content

Commit

Permalink
unduplicate asset names
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Jan 3, 2025
1 parent 9330fad commit 8ec8291
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ import 'package:native_assets_cli/code_assets_builder.dart';
import 'package:native_toolchain_c/native_toolchain_c.dart';

Future<void> 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',
Expand Down

0 comments on commit 8ec8291

Please sign in to comment.