Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Nov 29, 2023
1 parent 470e356 commit ded78ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/native_assets_cli/example/native_add_library/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:io';

import 'package:logging/logging.dart';
import 'package:native_assets_cli/native_assets_cli.dart';
import 'package:native_toolchain_c/native_toolchain_c.dart';
Expand Down Expand Up @@ -38,8 +40,10 @@ void main(List<String> args) async {
id: 'package:$packageName/ajsonfile',
linkMode: LinkMode.dynamic,
target: buildConfig.target,
path: AssetAbsolutePath(Uri.file(
'/home/mosum/projects/native/pkgs/native_assets_cli/example/native_add_library/data_asset_build.json')),
path: AssetAbsolutePath(File(
'native/pkgs/native_assets_cli/example/native_add_library/data_asset_build.json')
.absolute
.uri),
type: AssetType.data,
),
);
Expand Down

0 comments on commit ded78ff

Please sign in to comment.