Skip to content

Commit efb2c2c

Browse files
authored
[ffigen] Migrate to extension types (#2723)
1 parent 18d7691 commit efb2c2c

File tree

73 files changed

+8421
-8831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+8421
-8831
lines changed

.github/workflows/objective_c.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
5757
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
5858
with:
59-
channel: 'stable'
59+
channel: 'beta'
6060
- name: Install dependencies
6161
run: flutter pub get
6262
- name: Build test dylib

pkgs/ffigen/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
With this breaking change, also some defaults changed: (1) `@Native` bindings
1414
are now the default, and (2) struct/unions refered to by pointer will be
1515
generated as `Opaque` by default.
16+
- __Breaking change__: Rename some ObjC interface built in methods. Rename
17+
`isInstance` to `isA`, `castFrom` to `as`, and `castFromPointer` to
18+
`fromPointer`.
19+
- __Breaking change__: Change ObjC interfaces and protocols to generate as
20+
[extension types](https://dart.dev/language/extension-types). This gives a
21+
small performance boost, and in most cases won't require any code changes.
1622
- __Breaking change__: Change how ObjC protocols are generated, splitting the
1723
methods related to constructing instances into a separate `Foo$Builder` class.
1824
The protocol's instance methods are now directly invokable from the built

0 commit comments

Comments
 (0)