stablekernel / postgresql-dart

Dart PostgreSQL driver: supports extended query format, binary protocol and statement reuse.
https://www.dartdocs.org/documentation/postgres/latest
BSD 3-Clause "New" or "Revised" License
128 stars 32 forks source link

Can't import v1.0.0 with the default dart SDK installed by the flutter plugin. #56

Open coneetho opened 6 years ago

coneetho commented 6 years ago

Trying to import the plugin last version (1.0.0) into Android Studio results in the following error.

The current Dart SDK version is 2.0.0-dev.58.0.flutter-f981f09760.

Because smartflag_user depends on postgres >=1.0.0 which requires SDK version >=2.0.0 <3.0.0, version solving failed. pub get failed (1)

Flutter SDK is updated to the last stable release available.

Version 0.9.9 works ok.

isoos commented 6 years ago

@coneetho: version 1.0.0-beta.1 seems to have a more permissive SDK constraint, have you tried that too?

coneetho commented 6 years ago

@isoos: Following your suggestion I just tried the 1.0.0.beta.1 and it worked.

roman-vanesyan commented 6 years ago

I wonder what is the idea behind using postgresql driver on Flutter platform?