-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support implementing ObjC protocols from Dart #1040
Comments
The fix for #835 is going to involve ffigen generating ObjC code for each block that the user needs. So there's not really any reason to try to avoid having ffigen generate native code anymore. It will be simpler and more efficient to just generate ObjC and Dart bindings for each interface that we want to implement from Dart, rather than having a generic thing like |
How would we solve the bundling of that ObjC code? Am I correct in assuming that if it's a Flutter plugin I presume we write cocoapods code to include it, and if we use native assets, we'd need to have a |
Or can the Objective C just be compiled to a dylib and we can output it as a |
I'm not sure what the difference is between |
👍 Then we don't need an |
This should be possible with a single static piece of native code that can live in
package:objective_c
, so we won't have to generate different native code for each protocol.The text was updated successfully, but these errors were encountered: