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

[camera_avfoundation] Adds Swift Package Manager compatibility #6710

Closed
wants to merge 1 commit into from

Conversation

loic-sharma
Copy link
Member

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. You must list at least one issue.

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@@ -4,6 +4,7 @@

@import AVFoundation;
@import Foundation;
@import UIKit;
Copy link
Member Author

Choose a reason for hiding this comment

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

If I enable Swift Package Manager, I would get build errors like:

Unknown type name 'UIDeviceOrientation'

This change fixed these errors. It's not clear to me what's different between Cocoapods and SPM here.

@@ -7,7 +7,7 @@
NS_ASSUME_NONNULL_BEGIN

/// Queue-specific context data to be associated with the capture session queue.
extern const char* FLTCaptureSessionQueueSpecific;
extern const char *FLTCaptureSessionQueueSpecific;
Copy link
Member Author

Choose a reason for hiding this comment

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

This was updated by clang-format

@loic-sharma
Copy link
Member Author

loic-sharma commented May 24, 2024

I'll open a new pull request that uses the new pattern described in flutter/flutter#148572

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