sdk-for-flutter icon indicating copy to clipboard operation
sdk-for-flutter copied to clipboard

🐛 Bug Report: Upgrade http library to latest stable

Open istornz opened this issue 2 years ago • 7 comments

👟 Reproduction steps

More and more other dependency upgrade http to latest stable version, we can't upgrade others dependencies since this library depends on '>=0.13.6 <1.0.1', example with basic_utils v5.7.0 (latest).

Because basic_utils >=5.6.1 depends on http ^1.1.0 and appwrite 11.0.0 depends on http >=0.13.6 <1.0.1, basic_utils >=5.6.1 is incompatible with appwrite 11.0.0.
And because no versions of appwrite match >11.0.0 <12.0.0, basic_utils >=5.6.1 is incompatible with appwrite ^11.0.0.
So, because dart_rss depends on both appwrite ^11.0.0 and basic_utils ^5.7.0, version solving failed.

Thanks :

👍 Expected behavior

It should use latest stable http version

👎 Actual Behavior

It use version '>=0.13.6 <1.0.1' of http package

🎲 Appwrite version

Version 2.0.x

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

istornz avatar Nov 02 '23 10:11 istornz

use this

I have same problem so i just fork his stomic and change http package then pull his stomic again now its working fine for me.

use client like this btw.

static Client client = Client(endPoint: 'https://cloud.appwrite.io/v1', selfSigned: true) .setProject('-----------your key------'); Account account = Account(client);

furkanbora239 avatar Nov 17 '23 15:11 furkanbora239

@istornz Thank you for reporting the issue. Will update soon.

lohanidamodar avatar Jan 02 '24 02:01 lohanidamodar

Also experiencing the same issue with the dart SDK as well

https://github.com/appwrite/sdk-for-dart

mark-at-pieces avatar Jan 05 '24 15:01 mark-at-pieces

Same issue with dart sdk here too. I cannot install Flutter Quil Extensions package as it requires http 1.0.0 package while Appwrite Dart SDK package uses http 0.13 so I am getting this error when calling pub get: Because flutter_quill_extensions >=0.5.0 depends on http ^1.1.0 and appwrite 11.0.1 depends on http >=0.13.6 <1.0.1, flutter_quill_extensions >=0.5.0 is incompatible with appwrite 11.0.1.

Is anyone from Appwrite team resolving this issue? Flutter Quil is a popular text editor for Flutter and the Flutter Quil Extensions allows inserting images and attachments to the edited documents. It is Appwrite or the editor for me now and that is a tough choice really.

agabeyre avatar Jan 25 '24 00:01 agabeyre

I think, as a workaround, we can override http version in the pubpec.yaml but this issue need to be fixed ASAP thanks 👍

istornz avatar Jan 25 '24 08:01 istornz

Thanks for the suggestion. I have pointed to a forked git version in the pubspec and that resolved this issue. But I want to stay with the master Apprite SDK so I can sync any new features when the package gets a new version from the Appwrite team.

On Thu, Jan 25, 2024, 11:11 AM Dimitri Dessus @.***> wrote:

I think, as a workaround, we can override http version in the pubpec.yaml but this issue need to be fixed ASAP thanks 👍

— Reply to this email directly, view it on GitHub https://github.com/appwrite/sdk-for-flutter/issues/179#issuecomment-1909613476, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEUA5AHACUAWSRQGIFKYKCTYQIHULAVCNFSM6AAAAAA62VHUASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGYYTGNBXGY . You are receiving this because you commented.Message ID: @.***>

agabeyre avatar Jan 26 '24 00:01 agabeyre

Hi @lohanidamodar, do you have any news about this issue? 👍

istornz avatar Feb 06 '24 17:02 istornz

Related to https://github.com/appwrite/sdk-for-dart/issues/59

stnguyen90 avatar Apr 02 '24 14:04 stnguyen90