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

fix(repo): compatibility with Flutter 3.19 #1848

Open
wants to merge 4 commits into
base: beta
Choose a base branch
from

Conversation

mauriziopinotti
Copy link

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

Adds compatibility for Flutter 3.19, see issue #1839

@esarbanis
Copy link
Collaborator

Hi @mauriziopinotti thank you for opening this and keeping a close eye on the releases, please fix the pipeline errors before we can review/merge.

@esarbanis esarbanis requested a review from a team February 19, 2024 10:25
@esarbanis esarbanis changed the title fix(deps): compatibility with Flutter 3.19 fix(repo): compatibility with Flutter 3.19 Feb 19, 2024
@mauriziopinotti
Copy link
Author

Hi @mauriziopinotti thank you for opening this and keeping a close eye on the releases, please fix the pipeline errors before we can review/merge.

hi @esarbanis the commit message is ok now, I am not sure how to re-run the pipeline:

image

image

@esarbanis
Copy link
Collaborator

@mauriziopinotti I fixed this for you 🙂 it was in the title of the PR itself. I suspect the other breaks are from not updating flutter_version in our pipelines.

Copy link

@yeasin50 yeasin50 left a comment

Choose a reason for hiding this comment

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

showBottomSheet change is necessary and works 👍

@matthewfx
Copy link

Any ETA on this one?

@mauriziopinotti
Copy link
Author

mauriziopinotti commented Feb 27, 2024

I have fixed all warnings and lints but there are still 2 failing tests.

If a maintainer or anyone else wants to spend some time to fix them that would be appreciated, doing this in my spear time will definitely require weeks to come to an end.

@esarbanis
Copy link
Collaborator

@mauriziopinotti thank you for the effort you put into this PR, I will take it over, but FYI this is not that easy to drive home, as a full regression test is needed and also it just entered my pipeline ... 😓

@esarbanis
Copy link
Collaborator

FYI #1870 will make the stable version compatible with flutter versions >= 3.13.0 once this lands on master we will release v7.1.0

@flodaniel
Copy link
Contributor

FYI #1870 will make the stable version compatible with flutter versions >= 3.13.0 once this lands on master we will release v7.1.0

7.1.0 is out, can you merge and release this now? :)

@esarbanis
Copy link
Collaborator

@flodaniel I will merge 7.1 to 8 and release a new beta. But out of curiosity, why are you using beta and not stable?

@mauriziopinotti
Copy link
Author

mauriziopinotti commented Apr 2, 2024

@flodaniel I will merge 7.1 to 8 and release a new beta. But out of curiosity, why are you using beta and not stable?

In my case I temporarily switched to beta version some months ago because of updated dependencies, namely package_info_plus (stream chat stable had 4.x and I needed 5.x) and file_picker (stream chat had 5.x and I needed 6.x).

Now I'm back on the stable branch, although dependencies are outdated again (file_picker is now at 8.x and it's not supported by stream chat so I'm forcibly overriding it).

So, maybe, I'd suggest to keep dependencies as updated as possible at least on the beta branch so people living on the edge don't have to manually override them.

@esarbanis
Copy link
Collaborator

@mauriziopinotti thank you for your feedback, it is much appreciated. We are very careful when updating a dependency, especially a major version, as they usually come with broken changes. So, we tend to add major version updates of our dependencies to our next major version (beta), so that users are properly informed that this might introduce breaking changes.

Having said that, we are constantly in the process to identify dependencies that can be removed, so that we also remove the complexity they bring to our users.

@mauriziopinotti
Copy link
Author

@mauriziopinotti thank you for your feedback, it is much appreciated. We are very careful when updating a dependency, especially a major version, as they usually come with broken changes. So, we tend to add major version updates of our dependencies to our next major version (beta), so that users are properly informed that this might introduce breaking changes.

Having said that, we are constantly in the process to identify dependencies that can be removed, so that we also remove the complexity they bring to our users.

Yes, this makes perfect sense: and to be honest, I think the "issue" is mostly on the file_picker side, since its maintainer bumps the major version often, even if there are no breaking changes and this causes headaches and confusion.

IMHO for you it's a safe choice to be careful about dependencies in the main branch, although maybe that requirement can be loosened in the beta branch.

@flodaniel
Copy link
Contributor

@flodaniel I will merge 7.1 to 8 and release a new beta. But out of curiosity, why are you using beta and not stable?

I was on the beta due to a photo_manager dependency. I was under the impression that 7.1 is not working with flutter 3.19 but that appears to be incorrect so I have now switched to stable 7.1 :)

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.

None yet

5 participants