Repository navigation
Releases
Releases · dart-lang/native
package:objective_c v9.6.4
- Link the native support library against Foundation. Loading a built-in
Foundation class (egNSArray) no longer throws an internally caught
ArgumentErrorbefore falling back toobjc_getClass, which stopped
debuggers that break on all exceptions. - Fix a bug where object
validity debug checks would fail on the iOS simulator for some objects.
package:hooks_runner v2.0.0
- Decode hook stdout and stderr as streaming UTF-8, fixing garbled non-ASCII
output on Windows and characters split across process output chunks. - Breaking change: Remove
KernelAssets(and relatedKernelAsset*
classes) andTarget. - Drop regular dependency on
package:code_assets. - Track header dependencies in C build test projects.
- Fail eagerly instead of waiting for timeout when running on a file system that
does not support process locks. - Add
PKG_CONFIG_PATHto the environment variables allowlist. - Fix a race condition in
NativeAssetsBuildRunner.linkby writing
recorded_uses.jsonunder the directory lock.
package:code_assets v2.2.0
- Support complete iOS and macOS deployment versions through
AppleVersionand
deploymentVersion, and deprecate the integertargetVersionAPI while
preserving compatibility.AppleVersionsupports numeric comparison. - Add
iOSDeploymentVersionandmacOSDeploymentVersiontotestCodeBuildHook, and
deprecate its integer version parameters.
package:native_toolchain_c v0.19.6
- Decode
vswhere -utf8output as streaming UTF-8, preserving localized
installation paths and JSON. Other tools still default to the system encoding. - Preserve minor and patch components of iOS and macOS deployment targets in
CBuilderandCLinker. Requirespackage:code_assets2.2.0. - Support listing
.hfiles inCBuilder.sourcesto track header changes as
build dependencies without passing them to the compiler. - Default
linkerOptionstoLinkerOptions.manual()inCLinker.runwhen omitted so static archives link all symbols by default. - Fix
LinkerOptions.treeshakeon Windows for thousands of symbols: no longer
pass an/INCLUDE:flag per symbol in addition to the generated
module-definition file, which exceeded the Windows command-line length limit.
The generated module-definition file also no longer names the DLLMyDLL. - Do not pass linker flags (
-Wl,-encryptable,-Wl,-z,max-page-size=16384,
-framework, and C++ standard library link flags) when compiling object files
for static libraries (-c). - Fix
environmentFromBatchFile, and with it finding the MSVC environment on
Windows, when theNoDefaultCurrentDirectoryInExePathenvironment variable
is set. The batch file was run by its bare file name, which cmd.exe then
doesn't look for in the working directory, so the environment came back
empty. It now runs as.\<name>.bat. environmentFromBatchFilenow throws aProcessExceptionif running the
batch file fails, instead of returning an empty environment.
package:objective_c v9.6.3
- Make the
NSInputStreamreturned bytoNSInputStreamavoid copying the
data added to it, and avoid moving the unread data after every read. For
large chunks of data, this makes reading up to 1.8x faster and halves memory
use. - Make
toNSDatacopy the data once, rather than twice. - Increase the amount of data that
toNSInputStreambuffers ahead of the
reader from 4 KiB to 1 MiB, which makes reading the returnedNSInputStream
up to 7x faster. - Fix a bug in the
NSInputStreamreturned bytoNSInputStreamwhere a read that was waiting
for data never returned if the stream was closed or if the isolate that
created the stream exited. The read now returns-1, and setsstreamError
if the isolate exited. - Fix a bug in the
NSInputStreamreturned bytoNSInputStreamwhen it is scheduled in a run
loop. The stream now sendsNSStreamEvents to its delegate, and
hasBytesAvailableonly returnsYESif a read won't wait. Before, a reader
that waited for events never received any, and a reader that read when
hasBytesAvailablereturnedYESblocked its run loop until data arrived. - Use minor and patch versions of iOS and macOS deployment targets from
package:code_assets2.2.0 in the native support library's build hook. - Replace the expensive debug assert that blocks and objects are valid with a
cheaper and safer check.
package:jni v1.1.2
- Fix segfault when throwing
UseAfterReleaseErrororDoubleReleaseErrorin release builds (without asserts enabled).
package:jni v1.1.1
- Add ProGuard consumer rules for Kotlin classes used by suspend functions.
package:jni_flutter v1.0.4+1
- Update Groovy Gradle property assignments to silence a warning.
- Documentation updates.
package:ffigen v23.0.0
- The YAML configuration format is deprecated and will be removed in a future
release. - Added
Input.appendCompilerOptionsto allow appending custom compiler
options to default options instead of replacing them. Removed
defaultCompilerOptsfrom the public API, since it is now redundant and was
always a hack. - Remove internal details from the public API of
ImportedType. - Default to C++17 compiler options when C++ bindings are enabled.
- Preserve documentation comments on same-name typedefs when generating the
underlying type binding. - Fix a bug where functions
using pointers to a C++ class were skipped unless C++ support was configured:
classdeclarations are now treated like structs, and with C++ support on,
the C++ class wrapper vs. plain struct decision is made by POD-ness rather
than by theclass/structkeyword. - Fix a bug where a C++ type named through a using-declaration (e.g.
std::uint16_t) was left unresolved, which dropped every function that
mentioned it from the bindings. Such types now resolve through their
canonical type. - Generate bindings for declarations inside C++
extern "C" { ... }
blocks, which were previously skipped entirely. - Generate bindings for C++ enums declared inside a namespace or a record.
Their Dart name is the scope path flattened with$, e.g.
outer::inner::Colorbecomesouter$inner$Color, andoriginalNameis
the qualified C++ name, so aVisitororimportTypecan filter or rename
by it. - Generate bindings for C++ structs, classes and unions declared inside a
namespace or a record, named the same way. Scoped records are not yet
surfaced when C++ class support is enabled. - Allow
package:cli_utilversions0.5.xand0.6.x. - Fix a crash during code generation when a typedef refers to a function
pointer with an unsupported parameter type (e.g. a C++ reference). Such
typedefs are now skipped like other unsupported typedefs, so struct members
and functions using them are dropped instead of crashing the writer.
package:swift2objc v0.3.1
- Documentation updates.