flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

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

Open fisforfaheem opened this issue 1 year ago • 10 comments

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

fisforfaheem avatar Aug 15 '24 16:08 fisforfaheem

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 avatar Aug 30 '24 13:08 Abdulvaliy

@Lyokone can you fix the issue?

Abdulvaliy avatar Aug 30 '24 13:08 Abdulvaliy

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

Hassico avatar Sep 11 '24 16:09 Hassico

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

fisforfaheem avatar Sep 11 '24 17:09 fisforfaheem

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 :(

mulderpf avatar Sep 12 '24 14:09 mulderpf

Hope all packages support this upgrade

fisforfaheem avatar Sep 12 '24 17:09 fisforfaheem

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:

  • Consider downgrading your constraint on location: flutter pub add location:^6.0.2

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

adeeteya avatar Sep 22 '24 20:09 adeeteya

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

Mounix99 avatar Sep 23 '24 11:09 Mounix99

any news?

ramankanabi avatar Sep 23 '24 14:09 ramankanabi

Try this:

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

Edit 30.12.2024: The issue has been solved in the newest version. My repository mentioned above has been deleted, as it is no longer needed.

Juggler98 avatar Sep 29 '24 15:09 Juggler98

Hey, does this still occur?

bartekpacia avatar Dec 30 '24 20:12 bartekpacia

@bartekpacia no, it's solved. The issue should be closed.

Juggler98 avatar Dec 30 '24 20:12 Juggler98

Thanks for confirming!

bartekpacia avatar Dec 30 '24 20:12 bartekpacia