Lyokone / flutterlocation

A Flutter plugin to easily handle realtime location in iOS and Android. Provides settings for optimizing performance or battery.
MIT License
1.11k stars 822 forks source link

Please udpate the package and fix the dependeny issues caused by flutter 3.24 and this web #983

Open fisforfaheem opened 2 months ago

fisforfaheem commented 2 months ago

Because location_web 5.0.3 depends on web ^0.5.1 and no versions of location_web match >5.0.3 <6.0.0, location_web ^5.0.3 requires web ^0.5.1. And because get >=5.0.0-release-candidate-8 depends on web ^1.0.0, get >=5.0.0-release-candidate-8 is incompatible with location_web ^5.0.3. And because location 7.0.0 depends on location_web ^5.0.3 and no versions of location match >7.0.0 <8.0.0, get >=5.0.0-release-candidate-8 is incompatible with location ^7.0.0. So, because depends on both get ^5.0.0-release-candidate-8 and location ^7.0.0, version solving failed. exit code 1

Abdulvaliy commented 2 months ago

Same error

Because location_web 5.0.3 depends on web ^0.5.1 and no versions of location_web match >5.0.3 <6.0.0, location_web ^5.0.3 requires web ^0.5.1. And because share_plus >=10.0.1 depends on web ^1.0.0, share_plus >=10.0.1 is incompatible with location_web ^5.0.3. And because location 7.0.0 depends on location_web ^5.0.3 and no versions of location match >7.0.0 <8.0.0, share_plus >=10.0.1 is incompatible with location ^7.0.0. So, because ant_ex depends on both location ^7.0.0 and share_plus ^10.0.2, version solving failed.

Abdulvaliy commented 2 months ago

@Lyokone can you fix the issue?

Hassico commented 1 month ago

If you are still facing this issue, the author has bumped the version for web to 1.0.0 but has not released an update to pub. In the meantime you can reference the repo from github like this:

  location_workspace:
    git:
      url: https://github.com/Lyokone/flutterlocation.git
      ref: master
fisforfaheem commented 1 month ago

sure

On Wed, Sep 11, 2024 at 9:51 PM Hassico @.***> wrote:

If you are still facing this issue, the author has bumped the version for web to 1.0.0 but has not released an update to pub. In the meantime you can reference the repo from github like this:

location_workspace: git: url: https://github.com/Lyokone/flutterlocation.git ref: master

— Reply to this email directly, view it on GitHub https://github.com/Lyokone/flutterlocation/issues/983#issuecomment-2344173909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRXJSARGVQZHAHOPOLMPT3ZWBYJTAVCNFSM6AAAAABMSQSUKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBUGE3TGOJQHE . You are receiving this because you authored the thread.Message ID: @.***>

mulderpf commented 1 month ago

If you are still facing this issue, the author has bumped the version for web to 1.0.0 but has not released an update to pub. In the meantime you can reference the repo from github like this:

  location_workspace:
    git:
      url: https://github.com/Lyokone/flutterlocation.git
      ref: master

This doesn't work for me. I'm stuck and cannot update to the latest Firebase packages without this breaking :(

fisforfaheem commented 1 month ago

Hope all packages support this upgrade

adeeteya commented 1 month ago

Getting this error still:-

Because location >=7.0.0 depends on location_web ^5.0.3 which depends on web ^0.5.1, location >=7.0.0 requires web ^0.5.1. And because file_picker >=8.1.0 depends on web ^1.0.0, location >=7.0.0 is incompatible with file_picker >=8.1.0. So, because [secret_project_name] depends on both file_picker ^8.1.2 and location ^7.0.0, version solving failed.

You can try the following suggestion to make the pubspec resolve:

I really don't want to downgrade the package @Lyokone could you upload your new version to pub please?

Mounix99 commented 1 month ago

If you are still facing this issue, the author has bumped the version for web to 1.0.0 but has not released an update to pub. In the meantime you can reference the repo from github like this:

  location_workspace:
    git:
      url: https://github.com/Lyokone/flutterlocation.git
      ref: master

If you want to override location package you need to add path

  location:
    git:
      url: https://github.com/Lyokone/flutterlocation
      path: packages/location

but this version doesn't include reference to latest location_web so to override only location_web you need to

  location_web:
    git:
      url: https://github.com/Lyokone/flutterlocation
      path: packages/location_web

but seems like there is an issue with syntax

Error on line 20, column 8 of ../../.pub-cache/git/flutterlocation-c5b523c528a5752b86da1224c7c437180e073ce3/packages/location_web/pubspec.yaml: Invalid version constraint: Expected version number after ">=" in ">=^0.5.1 <2.0.0", got "^0.5.1 <2.0.0". ╷ 20 │ web: ">=^0.5.1 <2.0.0" │ ^^^^^^^^^^^^^^^^^ ╵

@Lyokone can you please help with that and prepare release, it is blocking a lot

ramankanabi commented 1 month ago

any news?

Juggler98 commented 1 month ago

Try this:

 location:
    git:
      url: https://github.com/Juggler98/flutterlocation
      path: packages/location
      ref: 1cc9cae16b9a58de74ffaf8113cb86e247d25739