Skip to content

Commit

Permalink
[ffigen] Stable release 10.0.0 (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Nov 15, 2023
1 parent e3e6340 commit c64e9c8
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 25 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ffigen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# TODO: Change to 3.2.0 stable once it's released.
sdk: [3.2.0-210.4.beta]
sdk: [3.2.0]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
Expand Down Expand Up @@ -57,7 +56,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: 3.2.0-210.4.beta
sdk: 3.2.0
- name: Install dependencies
run: dart pub get
- name: Install libclang-14-dev
Expand All @@ -77,7 +76,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: 3.2.0-210.4.beta
sdk: 3.2.0
- name: Install dependencies
run: dart pub get
- name: Build test dylib and bindings
Expand All @@ -102,7 +101,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: 3.2.0-210.4.beta
sdk: 3.2.0
- name: Install dependencies
run: dart pub get
- name: Build test dylib and bindings
Expand Down
5 changes: 3 additions & 2 deletions pkgs/ffigen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## 10.0.0-dev.0
## 10.0.0

- Stable release targeting Dart 3.2 using new `dart:ffi` features available
in Dart 3.2 and later.
- Add support for ObjC Blocks that can be invoked from any thread, using
NativeCallable.listener.
- Fix invalid exceptional return value ObjCBlocks that return floats.
Expand All @@ -10,7 +12,6 @@
generate a typedef for the `Function`.
- Use Dart wrapper types in args and returns of ObjCBlocks.
- Use Dart wrapper types in args and returns of static functions.
- Bump min SDK version to 3.2.0-210.4.beta.
- Renamed `asset` to `assetId` for `ffi-native`.

## 9.0.1
Expand Down
4 changes: 2 additions & 2 deletions pkgs/ffigen/example/c_json/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
name: c_json_example

environment:
sdk: ">=3.2.0-210.4.beta <4.0.0"
sdk: '>=3.2.0 <4.0.0'

dependencies:
ffi: ^2.0.1
path: ^1.8.0

dev_dependencies:
ffigen:
path: "../../"
path: '../../'
lints: ^2.0.1
4 changes: 2 additions & 2 deletions pkgs/ffigen/example/ffinative/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
name: ffinative_example

environment:
sdk: ">=3.2.0-210.4.beta <4.0.0"
sdk: '>=3.2.0 <4.0.0'

dependencies:
ffi: ^2.0.1
dev_dependencies:
ffigen:
path: "../../"
path: '../../'
lints: ^2.0.0
4 changes: 2 additions & 2 deletions pkgs/ffigen/example/libclang-example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
name: libclang_example

environment:
sdk: ">=3.2.0-210.4.beta <4.0.0"
sdk: '>=3.2.0 <4.0.0'

dependencies:
ffi: ^2.0.1
dev_dependencies:
ffigen:
path: "../../"
path: '../../'
lints: ^2.0.1
4 changes: 2 additions & 2 deletions pkgs/ffigen/example/objective_c/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
name: objective_c_example

environment:
sdk: ">=3.2.0-210.4.beta <4.0.0"
sdk: '>=3.2.0 <4.0.0'

dependencies:
ffi: ^2.0.1
dev_dependencies:
ffigen:
path: "../../"
path: '../../'
lints: ^2.0.0
4 changes: 2 additions & 2 deletions pkgs/ffigen/example/shared_bindings/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name: shared_bindings

environment:
sdk: ">=3.2.0-210.4.beta <4.0.0"
sdk: '>=3.2.0 <4.0.0'

dependencies:
cli_util: ^0.4.0
Expand All @@ -14,5 +14,5 @@ dependencies:

dev_dependencies:
ffigen:
path: "../../"
path: '../../'
lints: ^2.0.1
4 changes: 2 additions & 2 deletions pkgs/ffigen/example/simple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
name: simple_example

environment:
sdk: ">=3.2.0-210.4.beta <4.0.0"
sdk: '>=3.2.0 <4.0.0'

dependencies:
ffi: ^2.0.1
dev_dependencies:
ffigen:
path: "../../"
path: '../../'
lints: ^2.0.1
11 changes: 5 additions & 6 deletions pkgs/ffigen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
# BSD-style license that can be found in the LICENSE file.

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

topics:
- interop
- ffi
- codegen
- interop
- ffi
- codegen

environment:
sdk: ">=3.2.0-210.4.beta <4.0.0"
sdk: '>=3.2.0 <4.0.0'

dependencies:
ffi: ^2.0.1
Expand Down

0 comments on commit c64e9c8

Please sign in to comment.