Skip to content

Commit

Permalink
[native_assets_cli] Example use assets/ directory (#1542)
Browse files Browse the repository at this point in the history
We use the `assets/` directory in all other test_data and examples.
  • Loading branch information
dcharkes authored Sep 11, 2024
1 parent edbfc9e commit 1f7ae88
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'dart:io';
import 'package:native_assets_cli/native_assets_cli.dart';

const assetName = 'asset.txt';
final packageAssetPath = Uri.file('data/$assetName');
final packageAssetPath = Uri.file('assets/$assetName');

Future<void> main(List<String> args) async {
await build(args, (config, output) async {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/native_assets_cli/test/example/local_asset_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void main() async {
expect(
dependencies,
[
testPackageUri.resolve('data/asset.txt'),
testPackageUri.resolve('assets/asset.txt'),
],
);
}
Expand Down

0 comments on commit 1f7ae88

Please sign in to comment.