Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Daco's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Aug 30, 2023
1 parent 2ffce3e commit dfc4bbb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# TODO: Change to 3.2.0 stable once it's released.
sdk: [3.2.0-114.0.dev]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- Add support for ObjC Blocks that can be invoked from any thread, using
NativeCallable.listener.
- Bump min SDK version to 3.2.
- Bump min SDK version to 3.2.0-114.0.dev.

# 9.0.1

Expand Down
3 changes: 3 additions & 0 deletions lib/src/code_generator/objc_block.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ class $name extends _ObjCBlockBase {
/// capabilities and limitations. This block can be invoked from any thread,
/// but only supports void functions, and is not run synchronously. See
/// NativeCallable.listener for more details.
///
/// Note that unlike the default behavior of NativeCallable.listener, listener
/// blocks do not keep the isolate alive.
$name.listener(${w.className} lib, ${funcType.getDartType(w)} fn) :
this._(lib.${builtInFunctions.newBlock.name}(
(_dartFuncListenerTrampoline ??= $nativeCallableType.listener($closureTrampoline
Expand Down
4 changes: 3 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

name: ffigen
version: 10.0.0-dev.0
description: Generator for FFI bindings, using LibClang to parse C header files.
description: >
Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift
files.
repository: https://github.com/dart-lang/ffigen

topics:
Expand Down

0 comments on commit dfc4bbb

Please sign in to comment.