-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[vector_graphics] Use hooks in addition to asset transformers #9935
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Any progress on the presubmit failures? |
|
Slow progress :) There are a lot of presubmits.. |
d8f56f4 to
162deb3
Compare
|
@chinmaygarde How to solve the remaining failures? The legacy N-1 will fail as this is a feature only present on Flutter main branch. For the other failures, I don't understand how to read what is failing. They are quite verbose. Help would be appreciated! |
|
This PR needs to re-target the |
flutter/packages doesn't have |
N-1 and N-2 tests only run if the package's pubspec.yaml claims to support that version of the SDK. If this PR makes a package not work with older versions of the SDK, then it's an error to land it without changing the SDK requirement, as that would break clients using older versions of Flutter. |
A bunch of them appear to be flake. At least these two appear to be real though:
For the second, I'm not sure what "the logs" that |
852637a to
4d0ddc9
Compare
Thanks! This is probably due to the fact that the data-assets feature is not on stable yet. How do I only run the tests against |
|
Also, I did upgrade the minimum SDK version, but the N-1 and N-2 tests are still running and failing. Or did I misunderstand something? |
Generally speaking, you don't. Is there a specific need for landing this PR prior to
These lines are breaking things. It looks like those are something from the original repo's configuration that I didn't notice and clean up when importing, and they should be removed. |
I would be interested in having people try out this feature easily. So a |
I'm aware of that, but we aren't really set up to allow for that.
We do not currently have a release branch system for the packages repo, so doing this would in practice prevent us from shipping any updates of any kind to current clients of
Is that really easier than having people use a git dependency pointing to a branch? The discoverability of |
|
From triage: What's the status of this PR? Was the decision to wait for the next stable release? |
Requires
flutter config --enable-dart-data-assets.This is an example of how replacing asset transformers with build/link hooks could look like. The basic idea is that package
vector_graphics_compilerexposes a helper method, herecompileSvg, which is then called in the package's build hook. Options can be set there as well.For now, asset transformers and build hooks can simply co-exist - in the future, when hooks are stable enough, we will want to deprecate asset transformers and move towards this mechanism.