-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as is modulo one nit about the versioning. If you have time for some more work there's some extra changes that are a part of flutter/flutter#47153, but I don't think you need to get those landed as part of this CL to merge it in.
- Add the embedding v2 metadata xml tag. Otherwise, we're not autogenerating the v2 plugin registration. But since the tool can only autogenerate for one version of the embedding (even if it can toggle between v1 and v2 plugin APIs against the v2 embedding), we'd have to manually register the plugin in the EmbedderV1Activity.java.
- Change to the getBinaryMessenger getter since getFlutterEngine.getDartExecutor is deprecated.
- Remove the MainActivity for the v2 embedding in the example now since it has no content.
@@ -2,7 +2,7 @@ name: url_launcher | |||
description: Flutter plugin for launching a URL on Android and iOS. Supports | |||
web, phone, SMS, and email schemes. | |||
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher | |||
version: 5.4.4 | |||
version: 5.4.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Should this be a patch or a minor patch bump? If you're intending for this to be a patch, all the ones that are under 1.0.0 need to have a +1 appended. If it's intended to be minor, all the ones above 1.0.0 should have the middle digit incremented. Right now it looks like the last digit is always being incremented, but with how pub handles dependencies that ends up being inconsistent.
I think it makes the most sense for this to be a patch upgrade because it's bumping a dependency (semver says that's a patch upgrade on its own) and fixing an internal issue. But I can see it going the other way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My thoughts exactly when looking through this. Should upgrading flutter dependency increment the patch or minor number? I don't know the answer but minor seem more right to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I don't think there's a single right answer. Here's the semver spec on it: https://semver.org/#what-should-i-do-if-i-update-my-own-dependencies-without-changing-the-public-api. That suggests patch in most cases. Since this is the Flutter SDK itself though I can see the argument for it being a minor bump, because in a roundabout way it is part of the public API of the plugin, since everyone needs to have at least that Flutter SDK version to get the plugin version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about bumping the minor for the same reason you described. If there's a strong reason for bumping the patch, I can definitely do that.
Description
Remove the embedding dependency fallback since they were added in Flutter
v1.12.13
. Also, bump the SDK version.Related Issues
flutter/flutter#47153
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?