Skip to content

Releases

package:objective_c v9.6.4

Choose a tag to compare

@liamappelbe liamappelbe released this 11 Nov 09:22
cc974dd
  • Link the native support library against Foundation. Loading a built-in
    Foundation class (eg NSArray) no longer throws an internally caught
    ArgumentError before falling back to objc_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

Choose a tag to compare

@dcharkes dcharkes released this 06 Nov 13:20
0ca7d67
  • 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 related KernelAsset*
    classes) and Target.
  • 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_PATH to the environment variables allowlist.
  • Fix a race condition in NativeAssetsBuildRunner.link by writing
    recorded_uses.json under the directory lock.

package:code_assets v2.2.0

Choose a tag to compare

@dcharkes dcharkes released this 06 Nov 13:20
0ca7d67
  • Support complete iOS and macOS deployment versions through AppleVersion and
    deploymentVersion, and deprecate the integer targetVersion API while
    preserving compatibility. AppleVersion supports numeric comparison.
  • Add iOSDeploymentVersion and macOSDeploymentVersion to testCodeBuildHook, and
    deprecate its integer version parameters.

package:native_toolchain_c v0.19.6

Pre-release

Choose a tag to compare

@dcharkes dcharkes released this 06 Nov 13:20
0ca7d67
  • Decode vswhere -utf8 output 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
    CBuilder and CLinker. Requires package:code_assets 2.2.0.
  • Support listing .h files in CBuilder.sources to track header changes as
    build dependencies without passing them to the compiler.
  • Default linkerOptions to LinkerOptions.manual() in CLinker.run when omitted so static archives link all symbols by default.
  • Fix LinkerOptions.treeshake on 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 DLL MyDLL.
  • 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 the NoDefaultCurrentDirectoryInExePath environment 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.
  • environmentFromBatchFile now throws a ProcessException if running the
    batch file fails, instead of returning an empty environment.

package:objective_c v9.6.3

Choose a tag to compare

@liamappelbe liamappelbe released this 03 Nov 22:03
c9e8118
  • Make the NSInputStream returned by toNSInputStream avoid 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 toNSData copy the data once, rather than twice.
  • Increase the amount of data that toNSInputStream buffers ahead of the
    reader from 4 KiB to 1 MiB, which makes reading the returned NSInputStream
    up to 7x faster.
  • Fix a bug in the
    NSInputStream returned by toNSInputStream where 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 sets streamError
    if the isolate exited.
  • Fix a bug in the
    NSInputStream returned by toNSInputStream when it is scheduled in a run
    loop. The stream now sends NSStreamEvents to its delegate, and
    hasBytesAvailable only returns YES if a read won't wait. Before, a reader
    that waited for events never received any, and a reader that read when
    hasBytesAvailable returned YES blocked its run loop until data arrived.
  • Use minor and patch versions of iOS and macOS deployment targets from
    package:code_assets 2.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

Choose a tag to compare

@liamappelbe liamappelbe released this 03 Nov 22:02
c9e8118
  • Fix segfault when throwing UseAfterReleaseError or DoubleReleaseError in release builds (without asserts enabled).

package:jni v1.1.1

Choose a tag to compare

@goderbauer goderbauer released this 27 Oct 10:51
eb09430
  • Add ProGuard consumer rules for Kotlin classes used by suspend functions.

package:jni_flutter v1.0.4+1

Choose a tag to compare

@liamappelbe liamappelbe released this 06 Oct 12:27
a2a6179
  • Update Groovy Gradle property assignments to silence a warning.
  • Documentation updates.

package:ffigen v23.0.0

Choose a tag to compare

@liamappelbe liamappelbe released this 06 Oct 12:25
a2a6179
  • The YAML configuration format is deprecated and will be removed in a future
    release.
  • Added Input.appendCompilerOptions to allow appending custom compiler
    options to default options instead of replacing them. Removed
    defaultCompilerOpts from 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:
    class declarations 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 the class/struct keyword.
  • 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::Color becomes outer$inner$Color, and originalName is
    the qualified C++ name, so a Visitor or importType can 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_util versions 0.5.x and 0.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

Choose a tag to compare

@liamappelbe liamappelbe released this 01 Oct 03:41
cca065c
  • Documentation updates.