From d6e693545532decea04946d0ae522e694bb09e50 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Mon, 22 Jan 2024 17:18:10 +0100 Subject: [PATCH] [native_assets_cli] Fix dartdoc generation (#947) --- pkgs/native_assets_cli/.gitignore | 3 +++ pkgs/native_assets_cli/CHANGELOG.md | 4 ++++ pkgs/native_assets_cli/dartdoc_options.yaml | 3 +++ pkgs/native_assets_cli/lib/native_assets_cli_internal.dart | 2 +- pkgs/native_assets_cli/pubspec.yaml | 2 +- 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 pkgs/native_assets_cli/dartdoc_options.yaml diff --git a/pkgs/native_assets_cli/.gitignore b/pkgs/native_assets_cli/.gitignore index ef8a06ea1..15d76927d 100644 --- a/pkgs/native_assets_cli/.gitignore +++ b/pkgs/native_assets_cli/.gitignore @@ -12,3 +12,6 @@ coverage/ *.dylib *.exe *.so + +# Dartdoc dir +doc/ diff --git a/pkgs/native_assets_cli/CHANGELOG.md b/pkgs/native_assets_cli/CHANGELOG.md index 402b91647..490791efd 100644 --- a/pkgs/native_assets_cli/CHANGELOG.md +++ b/pkgs/native_assets_cli/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.2 + +- Fix dartdoc generation. Hide the implementation details. + ## 0.4.1 - **Breaking change** Removed all code not used in `build.dart` scripts out of diff --git a/pkgs/native_assets_cli/dartdoc_options.yaml b/pkgs/native_assets_cli/dartdoc_options.yaml new file mode 100644 index 000000000..59642b621 --- /dev/null +++ b/pkgs/native_assets_cli/dartdoc_options.yaml @@ -0,0 +1,3 @@ +dartdoc: + nodoc: + - 'lib/native_assets_cli_internal.dart' diff --git a/pkgs/native_assets_cli/lib/native_assets_cli_internal.dart b/pkgs/native_assets_cli/lib/native_assets_cli_internal.dart index a28dd9caa..5eb34436a 100644 --- a/pkgs/native_assets_cli/lib/native_assets_cli_internal.dart +++ b/pkgs/native_assets_cli/lib/native_assets_cli_internal.dart @@ -5,7 +5,7 @@ /// This library should not be used by `build.dart` scripts. /// /// Only `package:native_assets_builder` should use this. -library native_assets_cli; +library native_assets_cli_internal; export 'src/model/asset.dart'; export 'src/model/build_config.dart'; diff --git a/pkgs/native_assets_cli/pubspec.yaml b/pkgs/native_assets_cli/pubspec.yaml index a367c44d8..ed64cbfe2 100644 --- a/pkgs/native_assets_cli/pubspec.yaml +++ b/pkgs/native_assets_cli/pubspec.yaml @@ -4,7 +4,7 @@ description: >- native assets CLI. # Note: Bump BuildConfig.version and BuildOutput.version on breaking changes! -version: 0.4.1 +version: 0.4.2 repository: https://github.com/dart-lang/native/tree/main/pkgs/native_assets_cli topics: