Releases: dart-lang/native
Releases · dart-lang/native
package:native_toolchain_c v0.7.0
- For Android, produce dylibs with page-size set to 16kb by default.
#1611 - Make optimization level configurable from
CBuilder
. It defaults to-3s
and
/O3
. #1267 - Make build mode configurable form
CBuilder
. It defaults torelease
. (The
build mode was removed from the build config of the hooks.) - Add
libraries
andlibraryDirectories
toCTool
. - Bump
package:native_assets_cli
to 0.10.0.
package:native_assets_cli v0.10.0
- 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.
package:native_assets_builder v0.10.0
- 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
andPackageLayout
now take a
FileSystem
frompackage:file/file.dart
s. - Bump
package:native_assets_cli
to 0.10.0.
package:native_toolchain_c v0.6.0
- Address analyzer info diagnostic about multi-line if requiring a block body.
- Bump
package:native_assets_cli
to0.9.0
. This makes
package:native_toolchain_c
now takeBuildOutputBuilder
and
LinkOutputBuilder
objects.
package:native_assets_cli v0.9.0
- 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.
package:native_assets_builder v0.9.0
- Also lock
BuildConfig
andLinkConfig
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 thepackage: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
to0.9.0
. - Breaking change: Remove asset-type specific logic from
package:native_assets_builder
.
Bundling tools have to now supplysupportedAssetTypes
and corresponding
validation routines. - Breaking change: The
NativeAssetsBuildRunner.link()
command will now
produce aLinkResult
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 ofBuildResult
andLinkResult
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.
package:native_toolchain_c v0.5.4
- Bump
package:native_assets_cli
to0.8.0
.
package:native_assets_cli v0.8.0
- Add URI for the recorded usages file to the
LinkConfig
. - Added a validation step in the
build
andlink
methods.
package:native_assets_builder v0.8.3
- 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
to0.5.4
andnative_assets_cli
to0.8.0
.
package:native_toolchain_c v0.5.3
- Fix internal bug in
LinkerOptions
. - Bump
package:native_assets_cli
to 0.7.3.