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

[quick_actions] Update Android Pigeon version #8580

Merged

Conversation

stuartmorgan
Copy link
Contributor

quick_actions_android was still using a very old version of Pigeon; this updates to the current version. The changes are minimal, but this avoids inconsistency with other plugins (e.g., setup vs setUp), and potential issues with forcing old versions of transitive dependencies shared with pigeon.

Also makes some minor code improvements on the Java side that were flagged by the IDE's linter.

Pre-launch Checklist

`quick_actions_android` was still using a very old version of Pigeon;
this updates to the current version. The changes are minimal, but this
avoids inconsistency with other plugins (e.g., `setup` vs `setUp`), and
potential issues with forcing old versions of transitive dependencies
shared with `pigeon`.
@@ -30,7 +29,7 @@
import java.util.concurrent.TimeUnit;

final class QuickActions implements AndroidQuickActionsApi {
protected static final String EXTRA_ACTION = "some unique action key";
static final String EXTRA_ACTION = "some unique action key";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was flagged as using protected in a final class. I'm not actually sure how this was compiling before though; QuickActionsPlugin uses this, but isn't a subclass of QuickActions.

// noop
});
ShortcutManagerCompat.reportShortcutUsed(context, shortcutId);
if (shortcutId != null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This check was added because there was a warning about shortcutId being potentially null in the call to launchAction. Probably this never actually happens, but if it does, better to do nothing than to crash.

Copy link
Contributor

@tarrinneal tarrinneal left a comment

Choose a reason for hiding this comment

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

The war against setup continues.

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 6, 2025
@auto-submit auto-submit bot merged commit bae29f6 into flutter:main Feb 6, 2025
77 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 7, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Feb 7, 2025
flutter/packages@e6ce02c...625023a

2025-02-07 [email protected] [camera] Remove OCMock from
AvailableCamerasTests, CameraOrientationTests and
ThreadSafeEventChannelTests (flutter/packages#8363)
2025-02-06 [email protected] [pigeon] Adds annotation options to omit
shared classes used in Event Channels (flutter/packages#8566)
2025-02-06 [email protected] [quick_actions] Update Android Pigeon
version (flutter/packages#8580)
2025-02-05 [email protected] [ci] Move Wasm test shards out of bringup.
(flutter/packages#8572)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: quick_actions platform-android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants