Skip to content

Releases: dart-lang/native

package:native_toolchain_c v0.7.0

20 Dec 13:19
0cce9a6
Compare
Choose a tag to compare
Pre-release
  • 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 to release. (The
    build mode was removed from the build config of the hooks.)
  • Add libraries and libraryDirectories to CTool.
  • Bump package:native_assets_cli to 0.10.0.

package:native_assets_cli v0.10.0

20 Dec 13:02
8ff7945
Compare
Choose a tag to compare
Pre-release
  • 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.

package:native_assets_builder v0.10.0

20 Dec 13:33
23a42e0
Compare
Choose a tag to compare
Pre-release
  • 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.

package:native_toolchain_c v0.6.0

05 Nov 11:38
a3749d2
Compare
Choose a tag to compare
Pre-release
  • Address analyzer info diagnostic about multi-line if requiring a block body.
  • Bump package:native_assets_cli to 0.9.0. This makes
    package:native_toolchain_c now take BuildOutputBuilder and
    LinkOutputBuilder objects.

package:native_assets_cli v0.9.0

04 Nov 14:52
b1f41b4
Compare
Choose a tag to compare
Pre-release
  • Add BuildConfig and LinkConfig outputDirectoryShared.
  • Remove package:native_assets_cli/locking.dart with runUnderDirectoryLock.
    Hook writers should not use this, the native_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 and package: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.
    The hook/{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 and BuildOutput now expose fromJson and
    toJson.
  • Breaking change Removed Asset class, removed {Build,Link}Output.assets*.
    Hook writers should now use e.g. output.dataAssets.add(DataAsset(...))
    instead of output.addAsset(DataAsset(...)).
  • Breaking change Introduce builder classes that construct hook configs and
    hook outputs.

package:native_assets_builder v0.9.0

04 Nov 21:38
16ed7ac
Compare
Choose a tag to compare
Pre-release
  • 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.

package:native_toolchain_c v0.5.4

13 Sep 12:18
e2f7d13
Compare
Choose a tag to compare
Pre-release
  • Bump package:native_assets_cli to 0.8.0.

package:native_assets_cli v0.8.0

13 Sep 11:49
3a12b0a
Compare
Choose a tag to compare
Pre-release
  • Add URI for the recorded usages file to the LinkConfig.
  • Added a validation step in the build and link methods.

package:native_assets_builder v0.8.3

13 Sep 12:37
4d55186
Compare
Choose a tag to compare
Pre-release
  • 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.

package:native_toolchain_c v0.5.3

02 Sep 09:51
83e38fe
Compare
Choose a tag to compare
Pre-release
  • Fix internal bug in LinkerOptions.
  • Bump package:native_assets_cli to 0.7.3.