appwrite / sdk-for-flutter

[READ-ONLY] Official Appwrite Flutter SDK 💙
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
369 stars 110 forks source link

🐛 Bug Report: Upgrade http library to latest stable #179

Closed istornz closed 7 months ago

istornz commented 1 year ago

👟 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?

🏢 Have you read the Code of Conduct?

furkanbora239 commented 1 year ago

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);

lohanidamodar commented 11 months ago

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

mark-at-pieces commented 10 months ago

Also experiencing the same issue with the dart SDK as well

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

agabeyre commented 10 months ago

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_quillextensions >=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.

istornz commented 10 months ago

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

agabeyre commented 10 months ago

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: @.***>

istornz commented 9 months ago

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

stnguyen90 commented 7 months ago

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