flutter_device_preview icon indicating copy to clipboard operation
flutter_device_preview copied to clipboard

Upgrade `freezed_annotation` dependency

Open MichalDanielDobrzanski opened this issue 2 years ago • 6 comments

While making 1.0.0 please make sure that is depends upon freezed_annotation 1.0.0

Because device_preview >=0.7.5 depends on freezed_annotation ^0.15.0 and planter depends on freezed_annotation ^1.0.0, device_preview >=0.7.5 is forbidden.
So, because X depends on device_preview ^1.0.0-alpha.15, version solving failed.

MichalDanielDobrzanski avatar Nov 22 '21 16:11 MichalDanielDobrzanski

I have similar error because of this, also have error with flutter_riverpod:

Because device_preview >=0.7.5 depends on freezed_annotation ^0.15.0 and riverpod >=0.13.0 <1.0.0-dev.8 depends on freezed_annotation ^0.14.0, device_preview >=0.7.5 is incompatible with riverpod >=0.13.0 <1.0.0-dev.8.
Because flutter_riverpod >=0.13.0 <0.13.1 depends on riverpod ^0.13.0 and flutter_riverpod ^0.13.1 depends on riverpod ^0.13.1, flutter_riverpod ^0.13.0 requires riverpod ^0.13.0.
Thus, device_preview >=0.7.5 is incompatible with flutter_riverpod ^0.13.0.
So, because builder depends on both device_preview ^0.8.0 and flutter_riverpod ^0.13.0, version solving failed.
pub get failed (1; So, because builder depends on both device_preview ^0.8.0 and flutter_riverpod ^0.13.0, version solving failed.)
exit code 1

flite-org avatar Nov 22 '21 19:11 flite-org

While making 1.0.0 please make sure that is depends upon freezed_annotation 1.0.0

Because device_preview >=0.7.5 depends on freezed_annotation ^0.15.0 and planter depends on freezed_annotation ^1.0.0, device_preview >=0.7.5 is forbidden.
So, because X depends on device_preview ^1.0.0-alpha.15, version solving failed.

I found a solution, not the best, but it will let you go for now:

// add this in your pubspec.yaml file
dependency_overrides:
  freezed_annotation: ^0.15.0

flite-org avatar Nov 22 '21 19:11 flite-org

Same issue here, would be great to update to 1.0.0

jifferon avatar Nov 23 '21 08:11 jifferon

Same issue

furkanvatandas avatar Nov 29 '21 13:11 furkanvatandas

Same issue here.

To me the package shouldn't depend on freezed, as it always implies having to either update the package to use the latest version, or constraint the user of the package to a lower version.

gaetschwartz avatar Nov 29 '21 19:11 gaetschwartz

Just published 1.0.0! with up-to-date dependencies

Tell me if it is now fine on your side.

aloisdeniel avatar Dec 01 '21 06:12 aloisdeniel