Skip to content

Conversation

liamappelbe
Copy link
Contributor

@liamappelbe liamappelbe commented Oct 15, 2025

Update The Objective-C interop documentation to use the new FFIgen config Dart API, instead of YAML configs. I haven't updated the Swift example, because that will soon be replaced by swiftgen.

Fixes dart-lang/native#2710

@liamappelbe liamappelbe requested a review from parlough October 15, 2025 00:38
@liamappelbe liamappelbe changed the title Interop doc fixes WIP: Interop doc fixes Oct 15, 2025
@dart-github-bot
Copy link
Collaborator

dart-github-bot commented Oct 15, 2025

Visit the preview URL for this PR (updated for commit 5373249):

https://dart-dev--pr6942-objc-update-qqxo4l1b.web.app

@parlough
Copy link
Member

I believe the failure was from a version of Jaspr that had a regression. I updated the branch with main which should pull in the release with a fix.

I'm guessing swift isn't a supported language for the syntax highlighting? It works when I change the language to dart, but obviously that's not a viable solution. Any suggestions? Is there a list of supported languages somewhere?

You're right, Swift isn't supported yet, but if swift is specified, it should fall back to no syntax highlighting. The list of supported languages can be found in site/lib/src/extensions/code_block_processor.dart.

I'm planning to work on basic support for Swift soon, is the no highlighting fallback sufficient until I can finish that?

@liamappelbe
Copy link
Contributor Author

I'm planning to work on basic support for Swift soon, is the no highlighting fallback sufficient until I can finish that?

Yep, no hilighting is fine for now.

@liamappelbe liamappelbe changed the title WIP: Interop doc fixes Objective-C interop doc updates Oct 21, 2025
@liamappelbe
Copy link
Contributor Author

@parlough This is ready for review. PTAL

@liamappelbe liamappelbe marked this pull request as ready for review October 21, 2025 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ffigen] Fix up documentation on dart.dev

3 participants