Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart SDK version (2.1.0) is not supported by geolocation #44

Closed
isoos opened this issue Sep 5, 2018 · 11 comments
Closed

Dart SDK version (2.1.0) is not supported by geolocation #44

isoos opened this issue Sep 5, 2018 · 11 comments

Comments

@isoos
Copy link

isoos commented Sep 5, 2018

From @markflarup on September 5, 2018 8:35

URL: https://pub.dartlang.org/packages/geolocation#-installing-tab-

I want to support geo location in an app, but after adding geolocation: ^0.2.1 as a dependency the following error message is returned:

The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.

Because [APP] depends on geolocation >=0.1.1 which requires SDK version <2.0.0, version solving failed.
pub get failed (1)

Do you have a estimate for when it will be supported?

Copied from original issue: dart-lang/pub-dev#1580

@isoos
Copy link
Author

isoos commented Sep 5, 2018

@markflarup this repository is for pub site, please file issues to the package's repository or contact the developer directly. I'm moving the issue.

@aidooyaw1992
Copy link

hi please, when will this be supported

@velegip
Copy link

velegip commented Sep 11, 2018

I think you can use this branch : https://github.com/driveddy/geolocation

@markflarup
Copy link

I think you can use this branch : https://github.com/driveddy/geolocation

I will look into it, thanks! :)
As of now I have relied on geolocator (https://pub.dartlang.org/packages/geolocator)

@alexlovar
Copy link

alexlovar commented Sep 17, 2018

Hi, why if the solution is only change the pubspec.yaml file adding the sdk support, as is already did by https://github.com/driveddy/geolocation, the package is not update in pub.dartlang.org/packages/geolocation ?

@mi6crazyheart
Copy link

My app also broke due to this Dart SDK version incompatibility. Guys, any time frame by when it'll get the fix? -.-

@jiachen247
Copy link

upvote! This sdk change is breaking everything.

@jiachen247
Copy link

geolocation:
git: "https://github.com/loup-v/geolocation.git"

this worked for me. i think the dart package system is doing additional checks for dart 2 compatibility.

@shehabic
Copy link
Contributor

shehabic commented Oct 20, 2018

I created a fork of this, from a form that works with Dart, 2.x, I also fixed android as it's broken here as well as adding an option to enable Location Services in case it's disabled on Android.
https://github.com/shehabic/geolocation
you can use it as

geolocation:
   git:
      url: 'https://github.com/shehabic/geolocation'

@vashisth00
Copy link

Where do we add this? in pubspec.yaml? as a new dependency?

@lukaspili
Copy link
Contributor

Sorry for the delay. It should be fixed in the latest release 1.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants