-
Notifications
You must be signed in to change notification settings - Fork 67
[ffigen] ObjC version compatibility runtime check #300
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
Comments
Cool, reading those annotations and generating version checking code is a cool idea! |
Isn't that the Dart version instead of the OS version? |
Oops, yeah. Probably meant to use |
We're now parsing those API version annotations (#1403). So the only remaining issue is how do we get the OS version at runtime. Since a check like that is OS specific and requires native calls, it might make sense to add a native function to |
Not all APIs are available on all versions of iOS. There are annotations in Objective C for this, so we can turn that into version checks, and throw user friendly exceptions rather than crashing. Suggestion from Brian:
The text was updated successfully, but these errors were encountered: