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

Only mark package swiftpm incompatible when pluginClass is present. #1420

Merged
merged 8 commits into from
Dec 3, 2024

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Nov 19, 2024

Fixes: #1419

@sigurdm sigurdm requested review from jonasfj and isoos November 19, 2024 11:29
@sigurdm
Copy link
Contributor Author

sigurdm commented Nov 19, 2024

cc @loic-sharma

lib/src/tag/tagger.dart Outdated Show resolved Hide resolved
Copy link

@loic-sharma loic-sharma left a comment

Choose a reason for hiding this comment

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

Thanks for updating this!

@stuartmorgan
Copy link

stuartmorgan commented Nov 22, 2024

This is not a very future-proof test, since eventually we expect no plugins to have a podspec. I would recommend skipping if the relevant platform section of the pubspec doesn't contain pluginClass, as that's the key that tells Flutter to look for native code.

This line is an example of what indicates that there must be native code. Plugins without that line either have native code in a dependency, or have no native code for that platform (e.g., use FFI).

@sigurdm
Copy link
Contributor Author

sigurdm commented Nov 25, 2024

That makes a lot more sense. Updated.

@sigurdm sigurdm changed the title Don't mark package swiftpm incompatible when it has no podspec Only mark package swiftpm incompatible when pluginClass is present. Nov 25, 2024
@sigurdm sigurdm requested a review from loic-sharma November 25, 2024 10:50
Copy link

@loic-sharma loic-sharma left a comment

Choose a reason for hiding this comment

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

Re-LGTM!

@sigurdm sigurdm merged commit ac80051 into dart-lang:master Dec 3, 2024
5 checks passed
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.

iOS/macOS packages are incorrectly labeled as SwiftPM incompatible if they don't have native code.
4 participants