Skip to content

chore: bump pigeon to 30.0.4 - #18998

Merged
Lyokone merged 2 commits into
mainfrom
chore/pigeon-30
Nov 24, 2026
Merged

Lyokone merged 2 commits into
mainfrom
chore/pigeon-30

Conversation

@Lyokone

@Lyokone Lyokone commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

On Flutter 3.50 the workspace stops resolving as soon as a package depends on package:test. Flutter pins test_api 0.7.14, so test resolves to 1.32.0, which needs analyzer 13, and pigeon 26.3.4 caps analyzer below 13. Main is not affected yet; #18896 is, because it adds pure-Dart packages tested with package:test.

This bumps pigeon to 30.0.4 and regenerates the 13 platform interfaces.

  • Pigeon 28 generates suspend/async native signatures for @async methods. The inputs now use @asyncCallback, so the Kotlin, Swift and Java signatures the plugins implement are unchanged.
  • FlutterApi methods need the annotation too, so the in-app messaging Dart handlers now return Future<void>.
  • firebase_auth_plugin.cpp needs a public ToEncodableList(). That was a hand edit in the generated Windows header; melos run generate:pigeon:windows now applies it. The same edit in five other Windows headers was unused and is gone.
  • Firestore's generate_pigeon.sh escapes one more where in the generated Swift.
  • .swiftformat disables typeSugar: it rewrote Pigeon's Optional<Any>.some(Optional<Any>.none) to Any?.none, which does not compile.

Generated data classes gain toString/description (pigeon 27).

Tests

No new tests: the existing unit and e2e suites cover the generated code on every platform.

Related Issues

Part of #18645

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. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Flutter 3.50 pins test_api 0.7.14, so package:test resolves to 1.32.0, which
needs analyzer 13. pigeon 26.3.4 caps analyzer below 13, so any workspace
package that depends on package:test stops resolving.

pigeon 28 generates suspend/async native signatures for @async methods.
The inputs now use @asynccallback, which keeps the callback signatures the
plugins implement. FlutterApi methods need the annotation too, so the
in-app messaging Dart handlers now return Future<void>.

The public ToEncodableList() in firebase_auth's Windows header was a hand
edit; generate:pigeon:windows now applies it. The same edit in five other
Windows headers was unused and is gone.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades the Pigeon code generation tool from version 26.3.4 to 30.0.4 across multiple Firebase packages, including cloud_firestore, cloud_functions, firebase_analytics, firebase_app_check, firebase_app_installations, firebase_auth, firebase_core, firebase_crashlytics, firebase_database, firebase_in_app_messaging, and firebase_performance. This upgrade updates the autogenerated files across Dart, Java, Kotlin, Swift, and C++, introducing new toString() overrides, CustomStringConvertible conformances, and stream output operators for improved debugging. Additionally, Pigeon definitions are updated to use @asynccallback instead of @async. I have reviewed the changes and have no feedback to provide as the modifications consist entirely of autogenerated code updates and dependency bumps.

swiftformat's typeSugar rule rewrote Optional<Any>.some(Optional<Any>.none)
to Any?.none, which fails to compile because 'Any' cannot conform to
'Equatable'. Disable the rule and restore the generated line.
@Lyokone
Lyokone marked this pull request as ready for review November 24, 2026 10:05
@Lyokone
Lyokone merged commit d1c0449 into main Nov 24, 2026
113 checks passed
@Lyokone
Lyokone deleted the chore/pigeon-30 branch November 24, 2026 10:31
SelaseKay added a commit that referenced this pull request Nov 24, 2026
Regenerate GeneratedAndroidFirebaseFirestore.g.kt with Pigeon 30.0.4 (#18998) and drop the deleted Java Pigeon output.
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.

3 participants