flutter/packages/flutter_tools/test/integration.shard/isolated
Martin Kustermann 227f6a04f7
Make native asset tests more robust against flutter upgrading its pinned dependencies (#159715)
Native asset tests use `flutter create --no-pub --template=package_ffi`.
The template used for this is checked in. It then adds extra
dependencies to checked-in packages in flutter/flutter (which have
pinned deps) in those generated templates.

It then pins all dependencies in the modified template project. This can
lead to constraint violations when flutter updates pinned dependencies,
because the template uses old constraints (which are turned from `^x` to
`=x`) and the additional dependency on flutter/flutter checked in
package brings in different pinned dependencies.

In a previous PR we already made this more robust by using flutter's
pinned versions over the the versions from the template (that are
changed from `^x` to `=x`).

Though a new upgrade of flutters pinned packages reveals that this isn't
quite sufficient: The template uses `test` at `^X`. The additional
dependency to `link_hook` doesn't depend on `test`. It therefore turns
it into `=X`. BUT `link_hooks` has a non-dev dependency on `test_core`
which is incompatible with `=X`.

=> So we relax this even more by prefering to choose (pinned) versions
of the flutter/flutter `link_hook` dependencies and (new) dev
dependencies over the template dependencies.
=> This will make use use the pinned `test` version from `link_hooks`
instead of from the template.
2024-12-03 12:21:59 +00:00
..
native_assets_agp_version_test.dart Remove now unused apk-health-tests. Can always re-add in the future. (#159349) 2024-11-23 00:25:46 +00:00
native_assets_test_utils.dart Make native asset tests more robust against flutter upgrading its pinned dependencies (#159715) 2024-12-03 12:21:59 +00:00
native_assets_test.dart Remove now unused apk-health-tests. Can always re-add in the future. (#159349) 2024-11-23 00:25:46 +00:00
native_assets_without_cbuild_assemble_test.dart Remove now unused apk-health-tests. Can always re-add in the future. (#159349) 2024-11-23 00:25:46 +00:00