Skip to content

Upgrade Flutter and packages - #2521

Open
rajveermalviya wants to merge 9 commits into
zulip:mainfrom
rajveermalviya:pr-upgrade-deps
Open

rajveermalviya wants to merge 9 commits into
zulip:mainfrom
rajveermalviya:pr-upgrade-deps

Conversation

rajveermalviya and others added 9 commits November 26, 2026 13:15
And update Flutter's supporting libraries to match.

This also regenerates ZulipLocalizations.localizationsDelegates, now
that gen-l10n knows about package:material_ui:
  https://github.com/flutter/flutter/pull/ 194500

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is the result of the following commands:
  flutter pub upgrade --major-versions firebase_core firebase_messaging
  pod update --project-directory=ios/
  pod update --project-directory=macos/
plus removing our cap on these, and adapting our code.

Changelogs:
  https://pub.dev/packages/firebase_core/changelog#520
  https://pub.dev/packages/firebase_messaging/changelog#1710

The cap was for a bug where getAPNSToken returned null when Firebase
is configured from Dart, as we do.  16.7.0 fixed that:
  https://github.com/firebase/flutterfire/pull/ 18650

17.0.0 deprecates getToken and onTokenRefresh.  Their replacements,
register and onRegistered, give a Firebase Installation ID, which the
server can't send to; so keep the deprecated ones for now.

16.6.0 adds AuthorizationStatus.deniedPermanently, used only on
Android; handle it like `denied`.

The majors' breaking changes are Firebase Android BoM 35, which needs
minSdk 24 (ours is 26), and Firebase iOS SDK 13, which is only on
Swift Package Manager.  Through CocoaPods we get iOS SDK 12.19.3, up
from 12.17.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is the result of the following commands:
  flutter pub upgrade --major-versions pigeon
  tools/check --all --fix pigeon
plus adapting NotificationService.swift to a breaking change in
pigeon 28: our `@async` FlutterApi method is now `async throws` in
Swift, instead of taking a completion callback.

Changelog:
  https://pub.dev/packages/pigeon/changelog#3004

Pigeon 30's breaking change is to Native Interop, which we don't use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is the result of the following commands:
  flutter pub upgrade --tighten json_serializable json_annotation
  tools/check --all --fix build_runner
plus adapting to two changes in 6.15.0's generated code.

Changelog:
  https://pub.dev/packages/json_serializable/changelog#6152

- A null or missing enum value now decodes to the enum's null-valued
  entry, `unknown` in our enums, instead of throwing.  So a poll vote
  event with a null op is no longer dropped as malformed; it's ignored
  like other unknown ops, which notifies listeners.  Update its test.

- A `readValue` result is now checked for null, which analyze flags
  as dead code when the function can't return null.  So declare
  `UpdateMessageEvent._readMoveData` as returning `Object?`, as
  `JsonKey.readValue` expects.

`--tighten` also raises our json_annotation floor to 4.12.0, which
json_serializable requires; build_runner warns otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is the result of the following commands:
  flutter pub upgrade drift drift_dev
  tools/check --all --fix build_runner drift

Changelogs:
  https://pub.dev/packages/drift/changelog#2354
  https://pub.dev/packages/drift_dev/changelog#2353

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since gen-l10n learned about package:material_ui, the code it
generates no longer uses deprecated members:
  https://github.com/flutter/flutter/pull/ 194500

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Now that gen-l10n knows about package:material_ui, the generated list
is the same one we'd written out:
  https://github.com/flutter/flutter/pull/ 194500

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants