pubnub / dart

PubNub Dart SDK
Other
28 stars 15 forks source link

Upgrading to v2.0.0 failing #14

Closed devopsokdone closed 4 years ago

devopsokdone commented 4 years ago

When trying to upgrade SDK version to 2.0.0 giving following error:

Because pubnub >=1.4.4 depends on xml ^4.3.0 which depends on meta ^1.2.0, pubnub >=1.4.4 requires meta ^1.2.0. And because every version of flutter from sdk depends on meta 1.1.8, pubnub >=1.4.4 is incompatible with flutter from sdk. So, because appname_pubnub depends on both flutter any from sdk and pubnub ^2.0.0, version solving failed. pub get failed (1; So, because appname_pubnub depends on both flutter any from sdk and pubnub ^2.0.0, version solving failed.)

Our Flutter version: Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.18363.1016], locale en-IN)

We checked the pubsec.yaml file of SDK and the version of package "meta" is 1.1.0 and it seems minimum required is 1.1.8 or 1.2.0 due to which upgrade is failing.

devopsokdone commented 4 years ago

Quick message to check if this will take time to resolve as our testing for history and reconnection is dependent on this release.

mohitpubnub commented 4 years ago

Most probably next week this will get fixed! May be @are will communicate exact date soon.

client-engineering-bot commented 4 years ago

@devopsokdone this issue is addressed in v2.0.1

mohitpubnub commented 4 years ago

As per - https://github.com/flutter/flutter/issues/61427

This fix won't work as it is yet on flutter 1.20.2! Please wait for next upgrade.

Meanwhile, You can override the dependency in your pubspec.yaml by adding

dependency_overrides:
  meta: 1.1.8

Or whatever version you want to use of meta in your flutter application. So the version upgrade to v2.0.0 won't be the blocker.