Skip to content

Conversation

@rajveermalviya
Copy link
Member

@rajveermalviya rajveermalviya commented Nov 20, 2025

Stacked on top of #2009

Since flutter/flutter@e45fd36aa the flutter tool now uses a combination of git commands, instead of using the result of git describe to generate the version string.

So, we update the check to use the same commands here, and then do some transformations to match the string from the flutter tool:
https://github.com/flutter/flutter/blob/9f383e099/packages/flutter_tools/lib/src/version.dart#L1162

Fixes: #1851

@chrisbobbe
Copy link
Collaborator

Hmm CI is failing, could you take a look?

And update Flutter's supporting libraries to match.
This commit is the result of the following commands:
  flutter pub upgrade --major-versions firebase_messaging firebase_core
  tools/upgrade pod

Changelogs:
  https://pub.dev/packages/firebase_core/changelog#421
  https://pub.dev/packages/firebase_messaging/changelog#1604

No notable changes for both of these packages.
This commit is the result of the following commands:
  flutter pub upgrade --major-versions pigeon
  tools/check --all-files --fix pigeon

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

There is one bug fix related to `InstanceManager` which seems to
be used for `@ProxyApi`, which we do not use it.
Changelog:
  https://pub.dev/packages/http/changelog#160

One breaking change which now omits `charset` parameter for all
media types except for `text` and some `application/xml` types:
  https://github.com/dart-lang/http/blob/a22386e9c/pkgs/http/lib/src/request.dart#L18-L31
  dart-lang/http#1798

That breaks some of our tests which expect `charset=utf-8` being
present in the `Content-Type` header, so this commit includes a fix
for those tests, simply removing that expectation.

The default charset still remains `utf-8`:
  https://github.com/dart-lang/http/blob/a22386e9c/pkgs/http/lib/src/request.dart#L179
Since flutter/flutter@e45fd36aa
the flutter tool now uses a combination of git commands, instead of
using the result of `git describe` to generate the version string.

So, we update the check to use the same commands here, and then do
some transformations to match the string from the flutter tool:
  https://github.com/flutter/flutter/blob/9f383e099/packages/flutter_tools/lib/src/version.dart#L1162

Fixes: zulip#1851
@rajveermalviya rajveermalviya force-pushed the pr-flutter-version-check branch from 5f5471e to fd5eb30 Compare December 10, 2025 13:20
@chrisbobbe
Copy link
Collaborator

Hmm looks like CI is failing again.

@rajveermalviya rajveermalviya marked this pull request as draft December 11, 2025 17:15
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.

Update the flutter_version check to follow upstream

2 participants