Skip to content

Mark FlutterELinuxEngine as an unsafe reference for importing into Swift #432

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

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

lhoward
Copy link
Contributor

@lhoward lhoward commented Feb 10, 2025

This patch allows the importing of C++ engine APIs into Swift, using the Swift C++ bridging layer.

This fix is useful for FlutterSwift, and shouldn't be intrusive to non-Swift use cases. I appreciate that this patch lack general utility and I am prepared to maintain a fork if required, but hope you can see the value in merging it.

@HidenoriMatsubayashi
Copy link
Contributor

To @taka-okayama

@lhoward lhoward force-pushed the lhoward/swift-engine-ref branch 8 times, most recently from 04db657 to 3f13bee Compare February 11, 2025 04:58
…egistrar

as unsafe references for importing into Swift, consolidating Swift annotation
macro wrappers into flutter_export.h.

This patch allows the importing of C++ engine APIs into Swift, using the Swift
C++ bridging layer.

Signed-off-by: Luke Howard <[email protected]>
@lhoward lhoward force-pushed the lhoward/swift-engine-ref branch from 3f13bee to 4e74bab Compare February 11, 2025 05:00
@taka-okayama taka-okayama self-requested a review February 12, 2025 04:58
@taka-okayama taka-okayama self-assigned this Feb 12, 2025
Copy link
Contributor

@taka-okayama taka-okayama left a comment

Choose a reason for hiding this comment

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

LGTM

@taka-okayama taka-okayama merged commit aec09f8 into sony:master Feb 12, 2025
1 check passed
@lhoward
Copy link
Contributor Author

lhoward commented Feb 12, 2025

Thank you for approving this. Being able to call the C++ API directly will be very useful for APIs that aren't yet exposed by C, and also lets us directly integrate Swift reference counting where applicable.

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.

3 participants