package:native_assets_cli v0.10.0
Pre-release
Pre-release
dcharkes
released this
20 Dec 13:02
·
44 commits
to main
since this release
- Breaking change The library import paths changed to be per asset type.
(This enables extensibility with custom asset types.) - Breaking change: Rename
supportedAssetTypes
tobuildAssetTypes
. Hooks
should no longer fail. Instead, the code should fail at runtime if an asset is
missing. This enables (1) code to run if an asset is missing but that code is
not invoked at runtime, and (2) doing fallback implementations in Dart if an
asset is missing. - Breaking change Move
BuildMode
topackage:native_toolchain_c
. This way
it can be controlled in the build hook together with theOptimizationLevel
.
Most likely, every package should ship withrelease
.BuildMode.debug
should only be used while developing the package locally. - Breaking change Move
HookConfig.targetOS
toCodeConfig
.DataAsset
s
and other asset types should not depend on OS for now. - Breaking change: Change the behavior of
testBuildHook
and
testCodeBuildHook
; instead of defining tests, these methods should now be
called from within tests. - Move the
package:test
dependency from a regular dependency (exported to
calling packages) to a dev_dependency.