Skip to content

package:native_assets_cli v0.10.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@dcharkes dcharkes released this 20 Dec 13:02
· 44 commits to main since this release
8ff7945
  • Breaking change The library import paths changed to be per asset type.
    (This enables extensibility with custom asset types.)
  • Breaking change: Rename supportedAssetTypes to buildAssetTypes. 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 to package:native_toolchain_c. This way
    it can be controlled in the build hook together with the OptimizationLevel.
    Most likely, every package should ship with release. BuildMode.debug
    should only be used while developing the package locally.
  • Breaking change Move HookConfig.targetOS to CodeConfig. DataAssets
    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.