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

[ffigen] Update the ObjC and swift examples for the ffigen v10 code gen #830

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

liamappelbe
Copy link
Contributor

@liamappelbe liamappelbe commented Nov 27, 2023

There's a nullability fix in pkgs/ffigen/example/objective_c/play_audio.dart, but all other changes are just code gen updates.

Related to #829, but doesn't fix it.

@coveralls
Copy link

Coverage Status

coverage: 92.677%. remained the same
when pulling 96963f8 on update_example
into c371539 on main.

Copy link
Collaborator

@dcharkes dcharkes left a comment

Choose a reason for hiding this comment

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

What does v10 refer to? FFIgen v10? an XCode version?

Also should we consider slimming the avf_audio_bindings to an allowlisted subset? It's impossible to review a 45k diff for me. 😄

@@ -16,6 +16,10 @@ void main(List<String> args) async {
final fileUrl = NSURL.fileURLWithPath_(lib, fileStr);
final player =
AVAudioPlayer.alloc(lib).initWithContentsOfURL_error_(fileUrl, nullptr);
if (player == null) {
print('Failed to load audio');
Copy link
Collaborator

Choose a reason for hiding this comment

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

period?

@liamappelbe liamappelbe merged commit de50546 into main Nov 27, 2023
9 checks passed
@liamappelbe liamappelbe deleted the update_example branch November 27, 2023 08:59
@liamappelbe liamappelbe changed the title [ffigen] Update the ObjC and swift examples for the v10 code gen [ffigen] Update the ObjC and swift examples for the ffigen v10 code gen Nov 27, 2023
@liamappelbe
Copy link
Contributor Author

Sorry, had autosubmit on.

Also should we consider slimming the avf_audio_bindings to an allowlisted subset? It's impossible to review a 45k diff for me. 😄

It is already using an allowlist 😅. I don't expect anyone to review automated codegen changes like that. That's why I mentioned that the only manual change was in play_audio.dart. I think that's the only bit that can practically be reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants