-
Notifications
You must be signed in to change notification settings - Fork 146
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
Missing check for buildability in pana scoring report #8067
Comments
I think agp is the android gradle plugin. Mostly pana cares about the dart side of thing. How can we check the agp version required? Do we need to run the gradle build? (I don't think we're going to do that...) @christopherfujino do you know anything about agp - or who we could ask? |
I'm not sure how feasible it is to check this, but I would ask @gmackall. Maybe this is as easy as grep-ing on a specific config file? Would we have to keep this check up to date with Flutter? |
Getting the AGP version without running a Gradle build isn't going to be reliable unfortunately. Gradle files are in essence just user owned code. The flutter app template defines the AGP version in a
but a user would be free to, for example, instead add a line to their
There are also a number of other syntaxes for applying plugins, so they could have changed it even further |
Ah but I see the question isn't exactly how to get the AGP version in use by an app, but rather the one required by the plugin. I'd expect that the plugin isn't explicitly doing a check and expressing a requirement concretely, but rather is just implicitly being broken by recent behavior changes in AGP, which again makes this hard to parse. |
I guess the only thing we could do would be to attempt adding the plugin to a dummy project and attempt building it. It would require our workers to set up a full android build environment. Currently I think this is out of scope of our package analysis. |
Updated the title. I don't think this would be as part of the dependencis section (which covers pub dependencies), but rather some new section in case we ever make it happen (we probably would just be able to say "doesn't build, here are the logs:") |
I just stumbled over a plugin pub.dev claims has full support for up-to-date dependencies, but fails android builds.
flutter create bug && cd bug && flutter pub add jsaver
flutter build apk
pub.dev
(and maybepana
) fail to realize thatThe text was updated successfully, but these errors were encountered: