Releases: dart-lang/native
Releases · dart-lang/native
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.
package:native_assets_cli v0.7.3
- Fix some more cases of:
BuildConfig.dependencies
and
LinkConfig.dependencies
no longer have to specify Dart sources. DataAsset
examples report all assets fromassets/
dir and default the
asset names to the path inside the package.- Add
package:native_assets_cli/test.dart
withtestBuildHook
helper method
for testing build hooks. - Add
package:native_assets_cli/locking.dart
withrunUnderDirectoryLock
.
package:native_assets_builder v0.8.2
- Fix some more cases of:
BuildConfig.dependencies
and
LinkConfig.dependencies
no longer have to specify Dart sources. DataAsset
test projects report all assets fromassets/
dir and default the
asset names to the path inside the package.- Automatically locks build directories to prevent concurrency issues with
multiple concurrentdart
and orflutter
invocations. - Bump
package:native_assets_cli
to 0.7.3.
package:ffi v2.1.3
- Use
package:dart_flutter_team_lints
. - Migrate from
DynamicLibrary.process()
to@Native external
functions.
#1401