-
Notifications
You must be signed in to change notification settings - Fork 74
WIP: Swiftgen prototype and example #1367
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
base: main
Are you sure you want to change the base?
Conversation
PR HealthBreaking changes ✔️
Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. API leaks ✔️The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
License Headers ✔️
All source files should start with a license header. Unrelated files missing license headers
|
Hey there, would you be able to briefly explain how could I run this locally? Should I execute |
@orestesgaolin Yeah, if you want to try the example you can run |
Given we have a merged https://github.com/dart-lang/native/tree/main/pkgs/swiftgen, I presume this can be closed. |
Oh, it's an empty directory, my bad! (I was in overzealous spring-cleaning-mode!) |
This is a prototype of swiftgen, and an example program that uses the Swift
AVAudioPlayer
API to play some audio from Dart.example/generate_code.dart
uses swiftgen to generate Dart bindings like this:Then
example/play_audio.dart
uses the generated Dart bindings to play audio:There are a few remaining hacks to iron out, due to #1775 and #1774.