package:native_assets_cli v0.9.0
mkustermann
released this
04 Nov 14:52
·
11 commits
to main
since this release
- Add
BuildConfig
andLinkConfig
outputDirectoryShared
. - Remove
package:native_assets_cli/locking.dart
withrunUnderDirectoryLock
.
Hook writers should not use this, thenative_assets_builder
does 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_config
andpackage: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_TESTING
prefix for environment variables used for testing on
Dart CI - No longer try to resolve uris encoded in
config.json
against any base uri.
Thehook/{build,link}.dart
invoker 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
BuildConfig
andBuildOutput
now exposefromJson
and
toJson
. - Breaking change Removed
Asset
class, 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.