Skip to content

Commit a44ef95

Browse files
authored
Ffi enums (#1202)
1 parent 125af4a commit a44ef95

File tree

12 files changed

+1963
-245
lines changed

12 files changed

+1963
-245
lines changed

pkgs/ffigen/CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
- __Breaking change__: Code-gen the ObjC `id` type to `ObjCObjectBase` rather
44
than `NSObject`, since not all ObjC classes inherit from `NSObject`. Eg
55
`NSProxy`.
6-
- __Breaking change__: Enums are now generated as real Dart enums, instead of
7-
abstract classes. Since Dart enums cannot be empty, empty native enums are
8-
generated as empty sealed classes. Native enum members with duplicate integer
9-
values are handled properly, and are equal to each other in Dart as well.
6+
- __Breaking change__: Native enums are now generated as real Dart enums, instead
7+
of abstract classes with integer constants. Native enum members with the same
8+
integer values are handled properly on the Dart side, and native functions
9+
that use enums in their signatures now accept the generated enums on the Dart
10+
side, instead of integer values.
1011
- Rename ObjC interface methods that clash with type names. Fixes
1112
https://github.com/dart-lang/native/issues/1007.
1213
- __Breaking change__: Enum integer types are implementation-defined and not

0 commit comments

Comments
 (0)