Skip to content

Commit 1e6c853

Browse files
authored
[ffigen] Prepare to publish ffigen 20 and objective_c 9 (#2749)
1 parent b8a62a9 commit 1e6c853

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

pkgs/ffigen/CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
## 20.0.0-dev.1
2-
3-
- Make the `Logger` argument of `FfiGenerator.generate` optional. It defaults to
4-
a logger printing to stdout and stderr.
5-
6-
## 20.0.0-dev.0
1+
## 20.0.0
72

83
- __Breaking change__: Completely rewrite the public Dart API for FFIgen.
94
The new API is focused on a declartive configuration: `FfiGenerate(...)` with
@@ -45,6 +40,8 @@
4540
param is `NSError** error`, capture any error returned, and throw it as a Dart
4641
`NSErrorException`.
4742
- Fix for opaque dependencies for struct/union const arrays.
43+
- Make the `Logger` argument of `FfiGenerator.generate` optional. It defaults to
44+
a logger printing to stdout and stderr.
4845

4946
## 19.1.0
5047

pkgs/ffigen/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# BSD-style license that can be found in the LICENSE file.
44

55
name: ffigen
6-
version: 20.0.0-dev.1
6+
version: 20.0.0
77
description: >
88
Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift
99
files.
@@ -40,7 +40,7 @@ dev_dependencies:
4040
dart_flutter_team_lints: ^3.5.2
4141
json_schema: ^5.1.1
4242
leak_tracker: ^10.0.7
43-
objective_c: ^9.0.0-dev.0
43+
objective_c: ^9.0.0
4444
test: ^1.16.2
4545

4646
dependency_overrides:

pkgs/objective_c/CHANGELOG.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
## 9.0.0-dev.1
2-
3-
- The collection classes, `NSArray`, `NSSet`, `NSDictionary`, and their mutable
4-
counterparts, no longer directly implement the corresponding Dart collections.
5-
Instead they each have a `.toDart()` method that wraps the class in an adapter
6-
that implements the Dart collection. Note that this is a *shallow* conversion.
7-
For deep conversions, continue using `toObjCObject` and `toDartObject`.
8-
- Rename the internal C types `ObjCObject` and `ObjCProtocol` to
9-
`ObjCObjectImpl` and `ObjCProtocolImpl` respectively.
10-
- Rename the internal Dart types `ObjCObjectBase` and `ObjCProtocolBase` to
11-
`ObjObject` and `ObjCProtocol` respectively.
12-
13-
## 9.0.0-dev.0
1+
## 9.0.0
142

153
- Use FFIgen 20.0.0
4+
- __Breaking change__: The collection classes, `NSArray`, `NSSet`,
5+
`NSDictionary`, and their mutable counterparts, no longer directly implement
6+
the corresponding Dart collections. Instead they each have a `.toDart()`
7+
method that wraps the class in an adapter that implements the Dart collection.
8+
Note that this is a *shallow* conversion. For deep conversions, continue using
9+
`toObjCObject` and `toDartObject`.
10+
- __Breaking change__: Rename the internal C types `ObjCObject` and
11+
`ObjCProtocol` to `ObjCObjectImpl` and `ObjCProtocolImpl` respectively.
12+
- __Breaking change__: Rename the internal Dart types `ObjCObjectBase` and
13+
`ObjCProtocolBase` to `ObjObject` and `ObjCProtocol` respectively.
1614
- Fix missing `NSNumber` category includes in iOS and macOS `objective_c.m`
1715
files.
1816
- Add `NSBundle` and `NSNull` to the bindings.

pkgs/objective_c/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
name: objective_c
66
description: 'A library to access Objective C from Flutter that acts as a support library for package:ffigen.'
7-
version: 9.0.0-dev.0
7+
version: 9.0.0
88
repository: https://github.com/dart-lang/native/tree/main/pkgs/objective_c
99
issue_tracker: https://github.com/dart-lang/native/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aobjective_c
1010

@@ -28,7 +28,7 @@ dependencies:
2828
dev_dependencies:
2929
args: ^2.6.0
3030
dart_flutter_team_lints: ^3.5.2
31-
ffigen: ^20.0.0-dev.1
31+
ffigen: ^20.0.0
3232
flutter_test:
3333
sdk: flutter
3434
native_test_helpers:

0 commit comments

Comments
 (0)