faithoflifedev / easy_onvif_workspace

This package works with a variety of ONVIF compatible devices allowing for IP Cameras and NVRs (network video recorders) to be integrated into Dart and Flutter applications.
33 stars 21 forks source link

Dependency conflict between flutter_test and http_parser due to collection version constraints. #65

Closed cgowthamanmca closed 1 week ago

cgowthamanmca commented 1 week ago

Provide a clear and concise explanation of the issue:

I am facing a dependency conflict when using flutter_test and easy_onvif in my Flutter project. The issue arises because:

flutter_test from the SDK depends on collection 1.18.0. http_parser >=4.1.0 depends on collection ^1.19.0. easy_onvif >=3.1.0 depends on http_parser ^4.1.0. This makes flutter_test incompatible with easy_onvif >=3.1.0. Below is the error log:

Because every version of flutter_test from sdk depends on collection 1.18.0 and http_parser >=4.1.0 depends on collection ^1.19.0, flutter_test from sdk is incompatible with http_parser >=4.1.0. And because easy_onvif >=3.1.0 depends on http_parser ^4.1.0, flutter_test from sdk is incompatible with easy_onvif >=3.1.0. So, because bloc_pattern depends on both easy_onvif ^3.1.1 and flutter_test from sdk, version solving failed. exit code 1

faithoflifedev commented 1 week ago

Hi @cgowthamanmca,

You should be able to resolve this with a dependency override - https://dart.dev/tools/pub/dependencies#dependency-overrides.

  dependency_overrides:
    collection: ^1.18.0