Description
Currently, any packages in dev_dependencies
with native assets will not have their native assets built for flutter run
, flutter build
, etc. This WAI.
However, in flutter test
and dart test
the dev dependencies can be used. So the assets need to be built for the dev dependencies.
This means the API for the hooks_runner
needs to change from not only having a rootPackageName
but also a bool
whether dev dependencies need to be included. Note that dev dependencies of dev dependencies should be ignored.
This impacts the flow of metadata from build hook to build hook. We don't want different metadata in test runs vs non-test runs. Metadata is only accessible of direct dependencies, not dev dependencies. This means the caches for hooks should not be invalidate when running flutter test
and flutter build
interleaved.
Marking as v1.0. This will not influence the protocol, but it would be weird if we don't support dev dependencies with native assets used in dart test
and flutter test
.
Metadata
Metadata
Assignees
Type
Projects
Status