-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Bump AGP & Gradle versions in legacy project used for testing #5032
Conversation
For some timing info (because that will be relevant to if this upgrade is deemed acceptable), these versions were released in April (Gradle) and July (AGP) of 2021. Related-ish to flutter/flutter#125653. Also, FYI that we probably won't be able to do anything with any of the dependabot AGP 8.1 upgrades until we land something like this. |
Unfortunately that error message:
is extremely unhelpful to someone without a non-trivial amount of Gradle knowledge, and/or very specific context about what changed in the plugin to trigger the error (which we have in the context of a PR, but plugin clients will not when all the did is something like The legacy project test is just a test of what happens if someone who ran
The problem is that the important thing isn't when the tools themselves were released, but the state of people's projects. If someone has never heard of AGP because it's never been a problem for them before, and suddenly they have a mysterious error message, the fact that they could in theory have updated that part of their project several years ago won't really matter.
I think it's much more "related" than "-ish" :) In particular my comment there:
In general, my view is that we should not land any change to the legacy project that is not clearly described by the error message that results from not having that change. I.e., I don't think we should land this until there is a framework change (on stable) that would mean that the error message from a PR like
but something like:
|
@stuartmorgan Thanks for the further context. That makes perfect sense to me, so I'll give it a go. |
@camsim99 Is there a tracking issue for having some kind of good error message for this case that we can reference here to know when this unblocked? |
Ah yes this was on my todo list for today :) flutter/flutter#137181 Will change to draft for now as I'm not currently working on this. |
The legacy project used in this repo for testing has started to interact poorly with the plugins as they are using much higher AGP & Gradle versions. This PR bumps the versions just high enough to fix test failures caused by trying to upgrade the AGP versions of plugins to 8+, for example this build failure from #4781.
A follow up to @gmackall's findings: #4997 (comment). Also, just FYI I tested this on #4784.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).