DarshanGowda0 / GeoFlutterFire

:fire:GeoFlutterFire:fire: is an open-source library that allows you to store and query firestore documents based on their geographic location.
https://youtu.be/MYHVyl-juUk
MIT License
305 stars 261 forks source link

GeoFlutterFire does not allow you to point to flutter Stable #4

Closed DavidCorrado closed 5 years ago

DavidCorrado commented 5 years ago

I saw a report of this here but I think this is actually an issue https://github.com/DarshanGowda0/GeoFlutterFire/issues/2

Flutter Package Get

/Users/davidcorrado/Library/flutter/bin/flutter --no-color packages get
Running "flutter packages get" in APP NAME...                     
The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297.

Because APP NAME depends on geoflutterfire >=1.0.1 which requires SDK version >=2.1.0 <3.0.0, version solving failed.

pub get failed (1)
Process finished with exit code 1

Flutter Doctor

/Users/davidcorrado/Library/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14 18A391, locale en-US)
    • Flutter version 1.0.0 at /Users/davidcorrado/Library/flutter
    • Framework revision 5391447fae (2 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/davidcorrado/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/davidcorrado/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.3
    • Dart plugin version 182.5124
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.30.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.22.3

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!
Process finished with exit code 0

Work around: Point flutter to master

Notes: If I run flutter package get with all other packages except this one works. So I imagine if you just run your library against stable and commit the changes that should fix this issue.

I love this library so far. It solves a pretty major issue with FireStore that was yet to be solved in Flutter yet.

DarshanGowda0 commented 5 years ago

Fixed in PR.