native_assets_cli 0.9.0
native_assets_cli: ^0.9.0 copied to clipboard
A library that contains the argument and file formats for implementing a native assets CLI.
0.9.0 #
- Add
BuildConfigandLinkConfigoutputDirectoryShared. - Remove
package:native_assets_cli/locking.dartwithrunUnderDirectoryLock. Hook writers should not use this, thenative_assets_builderdoes this. - Fix example packages with RecordUse annotations #1586.
- Remove v1.0 / v1.1 related serialization
- Update SDK constraint to 3.5.0+
- Remove (deprecated) support for accepting yaml as config
- Remove usage of
package:cli_configandpackage:args: it minimizes dependencies and it simplifies logic any hook has to do (as it no longer has to look into environment variables, arguments and json file, determine which has presence over other, etc) - Use
DART_HOOK_TESTINGprefix for environment variables used for testing on Dart CI - No longer try to resolve uris encoded in
config.jsonagainst any base uri. Thehook/{build,link}.dartinvoker has to ensure the uris it encodes can be opened as-is (i.e. without resolving against any base uri) - Breaking change Moved some methods to be extension methods.
- Some classes in the
BuildConfigandBuildOutputnow exposefromJsonandtoJson. - Breaking change Removed
Assetclass, removed{Build,Link}Output.assets*. Hook writers should now use e.g.output.dataAssets.add(DataAsset(...))instead ofoutput.addAsset(DataAsset(...)). - Breaking change Introduce builder classes that construct hook configs and hook outputs.
0.8.0 #
- Add URI for the recorded usages file to the
LinkConfig. - Added a validation step in the
buildandlinkmethods.
0.7.3 #
- Fix some more cases of:
BuildConfig.dependenciesandLinkConfig.dependenciesno longer have to specify Dart sources. DataAssetexamples report all assets fromassets/dir and default the asset names to the path inside the package.- Add
package:native_assets_cli/test.dartwithtestBuildHookhelper method for testing build hooks. - Add
package:native_assets_cli/locking.dartwithrunUnderDirectoryLock.
0.7.2 #
- Deprecate metadata concept.
0.7.1 #
BuildConfig.dependenciesandLinkConfig.dependenciesno longer have to specify Dart sources.
0.7.0 #
BuildConfigconstructors now have a requiredlinkingEnabledparameter.
0.6.1 #
- Introduce
BuilderandLinkerinterface. - Copy
resources.jsonto the build directory. - Introduce
HookConfig.targetIosSdkandHookConfig.targetMacosSdkoptional values.
0.6.0 #
- Add support for
hook/link.dart.
0.5.4 #
- Update documentation about providing
NativeCodeAsset.filein dry runs.
0.5.3 #
- Fix V1_0_0 dry run backwards compatibility. https://github.com/dart-lang/native/issues/1053
0.5.2 #
- Fix test.
0.5.1 #
- Update documentation about providing
NativeCodeAsset.filein dry runs. https://github.com/dart-lang/native/issues/1049
0.5.0 #
- Breaking change Completely rewritten API. https://github.com/dart-lang/native/pull/946
- Breaking change Move
build.darttohook/build.dart. https://github.com/dart-lang/native/issues/823 - Breaking change Use JSON instead of YAML in the protocol. https://github.com/dart-lang/native/issues/991
- Bump examples dependencies to path dependencies.
0.4.2 #
- Fix dartdoc generation. Hide the implementation details.
0.4.1 #
- Breaking change Removed all code not used in
build.dartscripts out of the public API.
0.4.0 #
- Added example/use_dart_api/ detailing how to use
dart_api_dl.hfrom the Dart SDK in native code. - Breaking change Moved code not used in
build.darttopackage:native_assets_builder.
0.3.2 #
- Fixed an issue where
Depenendencies.dependenciescould not be modified when expected to.
0.3.1 #
- Added
Target.androidRiscv64.
0.2.0 #
0.1.0 #
- Initial version.