Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Feb 28, 2024
1 parent 653dd16 commit a1a3554
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkgs/native_assets_cli/example/local_asset/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ void main(List<String> args) async {
}

output.addAsset(
// TODO: Change to DataAsset once the Dart/Flutter SDK can consume it.
CCodeAsset(
id: 'library:$packageName/asset.txt',
file: assetPath,
Expand Down
1 change: 0 additions & 1 deletion pkgs/native_assets_cli/lib/native_assets_cli.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ export 'src/api/ios_sdk.dart' show IOSSdk;
export 'src/api/link_mode.dart' show LinkMode;
export 'src/api/link_mode_preference.dart' show LinkModePreference;
export 'src/api/os.dart' show OS;
// export 'src/api/target.dart' show Target;
1 change: 1 addition & 0 deletions pkgs/native_assets_cli/lib/src/api/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import 'build_output.dart';
/// }
///
/// output.addAsset(
/// // TODO: Change to DataAsset once the Dart/Flutter SDK can consume it.
/// CCodeAsset(
/// id: 'library:$packageName/asset.txt',
/// file: assetPath,
Expand Down
3 changes: 2 additions & 1 deletion pkgs/native_assets_cli/lib/src/api/build_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ abstract final class BuildConfig {
/// Not available during a [dryRun].
CCompilerConfig get cCompiler;

/// Whether the current run is a "dry run".
/// Indicates whether a run should build (wet run) or report potential assets
/// (dry run).
///
/// If so, the build won't actually be run, but will report the native assets
/// which would have been produced.
Expand Down

0 comments on commit a1a3554

Please sign in to comment.