code_assets 2.0.0
code_assets: ^2.0.0 copied to clipboard
This library contains the hook protocol specification for bundling native code with Dart packages.
2.0.0 #
- Validate bundled dynamic libraries by reading their header: when the file is a recognized ELF, Mach-O, or PE binary, check that it was built for the target architecture. Reject multi-architecture Mach-O output because hooks run once per target architecture. A file the built-in validators do not recognize, or a recognized library built for an architecture they do not know, warns on the supplied logger instead of failing.
- Bump the dependency on
package:hooksto^2.2.0. - Breaking change: Overrode
==andhashCodeinOS,Architecture, andSanitizerto support custom targets. These objects can no longer be used as keys ofconstmaps and sets.- Migration: Use
final(runtime) maps and sets instead ofconst, or use the string representations (e.g.,OS.name,Architecture.name) as keys ifconstis required.
- Migration: Use
- Support custom target OS, architecture, and santizer in protocol extension.
1.2.1 #
- Avoid throwing a null-assertion error/exception when
input.config.codeis accessed butinput.config.buildCodeAssetsisfalse. Instead, throw a clear and descriptiveStateError.
1.2.0 #
- Added an optional
sanitizerparameter toCodeConfigandCodeAssetExtensionsupportingasan,msan, andtsan.
1.1.0 #
- Bumped dependency on
package:hooksto^2.0.0and implemented the newoutputFilesprotocol extension method to track generated files for cache invalidation, correctly omitting non-local assets like system libraries.
1.0.0 #
- Stable release.
0.19.10 #
- Document
input.packageRootin more places. - Document
CodeAsset.idpackage namespacing.
0.19.9 #
- Document that asset file paths must be absolute.
0.19.8 #
- Polished README.md, Dartdocs, and examples.
0.19.7 #
- Bump examples to use
package:ffigen20.0.0-dev.0.
0.19.6 #
- Added a library comment detailing how to use the package.
- Fixed duplicate asset id detection with assets coming from both build and link hooks.
0.19.5 #
- Bump
package:hooksto 0.20.0.
0.19.4 #
- Add doc comments to all public members.
0.19.3 #
- Mark this package as in preview.
0.19.1 #
- Bump the SDK constraint to at least the one from
package:hooksto fix dartdoc generation on https://pub.dev.
0.19.0 #
- Split up
package:native_assets_cliinpackage:hooks,package:code_assets, andpackage:data_assets.
0.1.0 #
- Initial version.