PackageTrack
Sign in Get early access

native_assets_builder

This package is the backend that invokes build hooks.

0.18.0 1.0M downloads/mo #360 most downloaded on pub.dev dart-lang/native

What this package is like to depend on

Last release 1 years ago

29 Apr 2025

Ships fairly regularly

a new release about every 3 weeks

Nearly every release is documented

notes for 30 of 31 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

32 releases · first in 2023

0 releases in the last 12 months

see the full history below

Release timeline

32 releases · Jul 2023 to Apr 2025
2024 2025 2026
Release Pre-release

Releases

latest 32
  1. 0.18.0 29 Apr 2025
    Release notes
    • Bump package:native_assets_cli to 0.18.0.
    Open source →
  2. 0.17.0 23 Apr 2025
    Release notes
    • Bump package:native_assets_cli to 0.17.0.
    Open source →
  3. 0.16.0 16 Apr 2025
    Release notes
    • Pass in path to pubspec (to read user-defines) in this package rather than in the SDKs using this package.
    • Bump package:native_assets_cli to 0.16.0.
    Open source →
  4. 0.15.0 15 Apr 2025
    Release notes
    • Bump package:native_assets_cli to 0.15.0.
    Open source →
  5. 0.15.0-0 11 Apr 2025 pre-release

    Nothing published for this version

  6. 0.14.0 08 Apr 2025
    Release notes
    • Bump package:native_assets_cli to 0.14.0.
    • Route assets from build hook to build hook with ToBuild Routing.
    • Support user-defines.
    Open source →
  7. 0.13.0 31 Mar 2025
    Release notes
    • Bump package:native_assets_cli to 0.13.0 and required fixes.
    • Stop reading HookInput and HookOutput version.
    Open source →
  8. 0.12.0 20 Mar 2025
    Release notes
    • Organized the ProtocolExtensions in a class.
    • Bump package:native_assets_cli to 0.12.0.
    Open source →
  9. 0.11.1 23 Jan 2025
    Release notes
    • Don't recompile hooks on package_config.json having an updated timestamp.
    Open source →
  10. 0.11.0 22 Jan 2025
    Release notes
    • Breaking change Complete overhaul of the use of NativeAssetsBuildRunner to support pub workspaces (#1905).
    • Bump package:native_assets_cli to 0.11.0.
    Open source →
  11. 0.10.2 02 Jan 2025
    Release notes
    • Export types (fix for 0.10.1).
    Open source →
  12. 0.10.1 02 Jan 2025
    Release notes
    • Pass in the environment for hook invocations.
    Open source →
  13. 0.10.0 20 Dec 2024
    Release notes
    • Removed support for dry run (Flutter no long requires it).
    • Various fixes to caching.
    • Breaking change BuildConfig.targetOS is now only provided if buildAssetTypes contains the code asset.
    • Breaking change NativeAssetsBuildRunner and PackageLayout now take a FileSystem from package:file/file.darts.
    • Bump package:native_assets_cli to 0.10.0.
    Open source →
  14. 0.9.0 04 Nov 2024
    Release notes
    • Also lock BuildConfig and LinkConfig outputDirectoryShared when invoking hooks to prevent concurrency issues with shared output caching.
    • Fix test packages with RecordUse annotations #1586.
    • Update SDK constraint to 3.5.0+
    • Rename the environment variables we use to communicate CCompilerConfig from Dart CI test runner to the package:native_assets_builder for testing the dart-lang/native repository to make it clear those are not intended to be used by end-users.
    • Remove link-dry-run concept as it's unused by Flutter Tools & Dart SDK
    • Bump native_assets_cli to 0.9.0.
    • Breaking change: Remove asset-type specific logic from package:native_assets_builder. Bundling tools have to now supply supportedAssetTypes and corresponding validation routines.
    • Breaking change: The NativeAssetsBuildRunner.link() command will now produce a LinkResult containing all assets for the application (not just those that happened to have a linker). This removes the need for a bundling tool to combine parts of BuildResult and LinkResult and possibly checking consistency of the sum of those parts. Effectively this means: Any asset that doesn't have an explicit linker will get a NOP linker that emits as outputs it's inputs.
    • Breaking change Removes knowledge about code & data assets from package:native_assets_builder. Users of this package can know hook into the build/link hook configuration that is used and e.g. initialize code configuration. Similarly users of this package now have to provide a callback to verify the consistency of the used hook configuration.
    Open source →
  15. 0.8.3 13 Sep 2024
    Release notes
    • Added a validation step on the output of the build and link hooks (both as a per package, and as in all the packages together).
    • Fixed caching bug for link hooks #1515.
    • Bump native_toolchain_c to 0.5.4 and native_assets_cli to 0.8.0.
    Open source →
  16. 0.8.2 02 Sep 2024
    Release notes
    • Fix some more cases of: BuildConfig.dependencies and LinkConfig.dependencies no longer have to specify Dart sources.
    • DataAsset test projects report all assets from assets/ dir and default the asset names to the path inside the package.
    • Automatically locks build directories to prevent concurrency issues with multiple concurrent dart and or flutter invocations.
    • Bump package:native_assets_cli to 0.7.3.
    Open source →
  17. 0.8.1 12 Jul 2024
    Release notes
    • BuildRunner now automatically invokes build hooks again if any of their Dart sources changed.
    • Add more data asset test files.
    Open source →
  18. 0.8.0 10 Jul 2024
    Release notes
    • BuildRunner.build and BuildRunner.buildDryRun now have a required linkingEnabled parameter.
    Open source →
  19. 0.7.1 08 Jul 2024
    Release notes
    • Use HookConfig.targetIosSdk and HookConfig.targetMacosSdk optional values, and add examples to fail builds based on this.
    • Add data asset test project.
    Open source →
  20. 0.7.0 16 May 2024
    Release notes
    • Add support for hook/link.dart including dry runs. Link hooks that do not have assets for link sent to them, are not run. Link hooks are not ordered.
    • Fix test.
    • Bump package:native_assets_cli to 0.6.0.
    • Copy resources.json to the build directory.
    Open source →
  21. 0.6.1 22 Mar 2024

    Nothing published for this version

  22. 0.6.0 22 Mar 2024
    Release notes
    • Breaking change Completely rewritten API in native_assets_cli.
    • Breaking change Move build.dart to hook/build.dart. https://github.com/dart-lang/native/issues/823 (Backwards compatibility, fallback to toplevel build.dart.)
    • Bump package:native_assets_cli to 0.5.0.
    Open source →
  23. 0.5.0 14 Feb 2024
    Release notes
    • Breaking change: Hide implementation of KernelAssets.
    Open source →
  24. 0.4.0 14 Feb 2024
    Release notes
    • Breaking change: Split out the KernelAssets from normal Assets.
    Open source →
  25. 0.3.2 17 Jan 2024
    Release notes
    • Reintroduce AssetRelativePath, it's used in dart build.
    Open source →
  26. 0.3.1 17 Jan 2024
    Release notes
    • Add support for runPackageName to avoid native assets for packages that the root package depends on but the package being run doesn't.
    • Bump package:native_assets_cli to 0.4.1.
    • Moved test projects from test/data/ to test_data/.
    Open source →
  27. 0.3.0 03 Oct 2023
    Release notes
    • Bump package:native_assets_cli to 0.3.0 (#142).
    Open source →
  28. 0.2.3 12 Sep 2023
    Release notes
    • Quicker build planning for 0 or 1 packages with native assets (#128).
    Open source →
  29. 0.2.2 12 Sep 2023
    Release notes
    • Take a PackageLayout argument for build and dryRun (flutter#134427).
    Open source →
  30. 0.2.1 12 Sep 2023
    Release notes
    • Provide a PackageLayout constructor for already parsed PackageConfig (flutter#134427).
    Open source →
  31. 0.2.0 08 Aug 2023
    Release notes
    • Breaking change NativeAssetsBuildRunners methods now return an object (#105).
    • Breaking change NativeAssetsBuildRunners methods now return value now contain a success bool instead of throwing (#106). Error messages are streamed to the logger.
    • Use an out/ sub directory for building native assets (#98).
    • Check asset ids on having having a package uri with the owning package (#96).
    • NativeAssetsBuildRunner now supports multiple calls (#102).
    Open source →
  32. 0.1.0 11 Jul 2023
    Release notes
    • Initial version.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive