Enable inline Dart plugin implementation on Desktop#96610
Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom Jan 19, 2022
Merged
Enable inline Dart plugin implementation on Desktop#96610fluttergithubbot merged 1 commit intoflutter:masterfrom
fluttergithubbot merged 1 commit intoflutter:masterfrom
Conversation
Currently a plugin with a Linux, macOS, and/or Windows Dart implementation that is inline, rather than federated, will not get Dart autoregistration, which isn't the intended behavior. Fixing that directly would be a breaking change for already-published plugins with inline Dart implementations, because it would require a `registerWith()` method at build time that wasn't previously required. In order to allow the intended behavior going forward without breaking existing plugins, this enables auto-registation for inline Dart-only desktop implementations only if the plugin's min Flutter SDK requirement is 2.11 or higher. Fixes flutter#87862
blasten
reviewed
Jan 19, 2022
| final semver.Version? minFlutterVersion = flutterConstraint != null && | ||
| flutterConstraint is semver.VersionRange ? flutterConstraint.min : null; | ||
| final bool hasMinVersionForImplementsRequirement = minFlutterVersion != null && | ||
| minFlutterVersion.compareTo(semver.Version(2, 11, 0)) >= 0; |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/plugins
that referenced
this pull request
Feb 4, 2022
clocksmith
pushed a commit
to clocksmith/flutter
that referenced
this pull request
Mar 8, 2022
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently a plugin with a Linux, macOS, and/or Windows Dart
implementation that is inline, rather than federated, will not get Dart
autoregistration, which isn't the intended behavior.
Fixing that directly would be a breaking change for already-published
plugins with inline Dart implementations, because it would require a
registerWith()method at build time that wasn't previously required.In order to allow the intended behavior going forward without breaking
existing plugins, this enables auto-registation for inline Dart-only
desktop implementations only if the plugin's min Flutter SDK requirement
is 2.11 or higher.
Fixes #87862
Pre-launch Checklist
///).