diff --git a/pkgs/native_assets_cli/CHANGELOG.md b/pkgs/native_assets_cli/CHANGELOG.md index 741fd3b6b..b69b235a1 100644 --- a/pkgs/native_assets_cli/CHANGELOG.md +++ b/pkgs/native_assets_cli/CHANGELOG.md @@ -1,11 +1,10 @@ -## 0.4.0-wip +## 0.4.0 - Added [example/use_dart_api/](example/use_dart_api/) detailing how to use `dart_api_dl.h` from the Dart SDK in native code. - **Breaking change** Moved code not used in `build.dart` to `package:native_assets_builder`. - ## 0.3.2 - Fixed an issue where `Depenendencies.dependencies` could not be diff --git a/pkgs/native_assets_cli/lib/native_assets_cli.dart b/pkgs/native_assets_cli/lib/native_assets_cli.dart index 8ee3d3064..0086a3d60 100644 --- a/pkgs/native_assets_cli/lib/native_assets_cli.dart +++ b/pkgs/native_assets_cli/lib/native_assets_cli.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// A library that contains the argument and file formats for implementing a -/// native assets CLI. +/// native assets CLI, e.g. a `build.dart` script. library native_assets_cli; export 'src/model/asset.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 new file mode 100644 index 000000000..a28dd9caa --- /dev/null +++ b/pkgs/native_assets_cli/lib/native_assets_cli_internal.dart @@ -0,0 +1,19 @@ +// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file +// 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. + +/// This library should not be used by `build.dart` scripts. +/// +/// Only `package:native_assets_builder` should use this. +library native_assets_cli; + +export 'src/model/asset.dart'; +export 'src/model/build_config.dart'; +export 'src/model/build_mode.dart'; +export 'src/model/build_output.dart'; +export 'src/model/dependencies.dart'; +export 'src/model/ios_sdk.dart'; +export 'src/model/link_mode.dart'; +export 'src/model/link_mode_preference.dart'; +export 'src/model/metadata.dart'; +export 'src/model/target.dart'; diff --git a/pkgs/native_assets_cli/pubspec.yaml b/pkgs/native_assets_cli/pubspec.yaml index 02ec12373..6efe5e7fc 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.0-wip +version: 0.4.0 repository: https://github.com/dart-lang/native/tree/main/pkgs/native_assets_cli topics: