Repository navigation
chore: bump pigeon to 30.0.4 - #18998
Conversation
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.
There was a problem hiding this comment.
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.
Regenerate GeneratedAndroidFirebaseFirestore.g.kt with Pigeon 30.0.4 (#18998) and drop the deleted Java Pigeon output.
Description
On Flutter 3.50 the workspace stops resolving as soon as a package depends on
package:test. Flutter pinstest_api0.7.14, sotestresolves to 1.32.0, which needsanalyzer13, andpigeon26.3.4 capsanalyzerbelow 13. Main is not affected yet; #18896 is, because it adds pure-Dart packages tested withpackage:test.This bumps
pigeonto 30.0.4 and regenerates the 13 platform interfaces.suspend/asyncnative signatures for@asyncmethods. The inputs now use@asyncCallback, so the Kotlin, Swift and Java signatures the plugins implement are unchanged.FlutterApimethods need the annotation too, so the in-app messaging Dart handlers now returnFuture<void>.firebase_auth_plugin.cppneeds a publicToEncodableList(). That was a hand edit in the generated Windows header;melos run generate:pigeon:windowsnow applies it. The same edit in five other Windows headers was unused and is gone.generate_pigeon.shescapes one morewherein the generated Swift..swiftformatdisablestypeSugar: it rewrote Pigeon'sOptional<Any>.some(Optional<Any>.none)toAny?.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.yamland changelogs is not required.///).melos run 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?