Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[objective_c] Add a bunch more categories to the bindings #1875

Merged
merged 7 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/ffigen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 17.0.0-wip

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comment like:

  • Uses package:objective_c 5.0

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- Use package:objective_c 5.0.0

## 16.1.0

- Ensure that required symbols are available to FFI even when the final binary
Expand Down
4 changes: 2 additions & 2 deletions pkgs/ffigen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# BSD-style license that can be found in the LICENSE file.

name: ffigen
version: 16.1.0
version: 17.0.0-wip
description: >
Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift
files.
Expand Down Expand Up @@ -41,7 +41,7 @@ dev_dependencies:
dart_flutter_team_lints: ^2.0.0
json_schema: ^5.1.1
leak_tracker: ^10.0.7
objective_c: ^4.1.0
objective_c: ^5.0.0
test: ^1.16.2

dependency_overrides:
Expand Down
4 changes: 4 additions & 0 deletions pkgs/objective_c/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.0.0-wip

- Add various ObjC categories (extension methods) to the built in classes.

## 4.1.0

- Use ffigen 16.1.0
Expand Down
11 changes: 11 additions & 0 deletions pkgs/objective_c/ffigen_objc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,18 @@ objc-protocols:
objc-categories:
include:
- NSDataCreation
- NSExtendedArray
- NSExtendedData
- NSExtendedDate
- NSExtendedDictionary
- NSExtendedEnumerator
- NSExtendedMutableArray
- NSExtendedMutableData
- NSExtendedMutableDictionary
- NSExtendedMutableOrderedSet
- NSExtendedMutableSet
- NSExtendedOrderedSet
- NSExtendedSet
- NSNumberCreation
- NSStringExtensionMethods
structs:
Expand Down
Loading
Loading