larryaasen / upgrader

A Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
MIT License
547 stars 268 forks source link

upgraded 4.9.0 Pubspec lib compiling issue with device_info_plus, package_info_plus, share_plus and shared_preferences #229

Closed parmarravi closed 10 months ago

parmarravi commented 1 year ago

Once I update upgraded to 4.9.0 from upgrader: ^4.4.0 it throws this error. I am using shared_preferences: ^2.0.15 version issue

Because upgrader >=4.9.0 depends on shared_preferences >=2.0.3 <=2.0.7 and example app depends on shared_preferences ^2.0.15, upgrader >=4.9.0 is forbidden. So, because example app depends on upgrader ^4.9.0, version solving failed.

Apart from this latest upgraded 4.9.0 does not complies with below lib device_info_plus: ^7.0.1 share_plus: ^6.0.1 package_info_plus: ^3.0.1

Because upgrader >=3.7.0 depends on package_info_plus ^1.3.0 and example app depends on package_info_plus ^3.0.1, upgrader >=3.7.0 is forbidden. So, because example app depends on upgrader ^4.9.0, version solving failed. pub get failed (1; So, because example app depends on upgrader ^4.9.0, version solving failed.)

larryaasen commented 1 year ago

Version 4.10.0 of upgrader now supports shared_preferences ">=2.0.3 <2.1.0".

larryaasen commented 1 year ago

@parmarravi Can this issue be closed?

Purus commented 1 year ago

For me, there is still an issue with package_info_plus.

Because mozhli depends on upgrader ^4.11.0 which depends on package_info_plus >=1.3.0 <3.0.0, package_info_plus >=1.3.0 <3.0.0 is required.
So, because mozhli depends on package_info_plus ^3.0.1, version solving failed.
pub get failed (1; So, because mozhli depends on package_info_plus ^3.0.1, version solving failed.)
larryaasen commented 1 year ago

@Purus @parmarravi I just created a prerelease version 5.0.0-alpha.1 with all packages updated to the latest version, and requiring Flutter version 3.0.1 or above. Check it out and let me know if it works for you. https://pub.dev/packages/upgrader/versions/5.0.0-alpha.1

Purus commented 1 year ago

Looks okay to me.

Thanks, R.Purusothaman

On Sun, Nov 6, 2022 at 3:21 AM Larry Aasen @.***> wrote:

@Purus https://github.com/Purus @parmarravi https://github.com/parmarravi I just created a prerelease version 5.0.0-alpha.1 with all packages updated to the latest version, and requiring Flutter version 3.0.1 or above. Check it out and let me know if it works for you. https://pub.dev/packages/upgrader/versions/5.0.0-alpha.1

— Reply to this email directly, view it on GitHub https://github.com/larryaasen/upgrader/issues/229#issuecomment-1304648409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIHDZZFUFNZRR6MHFD7OW3WG3JHXANCNFSM6AAAAAARLV2NWY . You are receiving this because you were mentioned.Message ID: @.***>

larryaasen commented 1 year ago

Anyone else want to comment on this fix? @parmarravi ?