From 1a4469d25da0a3c61b828ba4256930ed62a4c41d Mon Sep 17 00:00:00 2001 From: Yilmaz Guleryuz <397125+zeusbaba@users.noreply.github.com> Date: Sun, 20 Nov 2022 18:53:59 +0100 Subject: [PATCH] - upgrade dependencies & publish new version 2.3.14 - fix for query results duplicate after 1250km as described in [this issue](https://github.com/beerstorm-net/GeoFlutterFire2/issues/13) #13 --- CHANGELOG.md | 4 ++++ example/pubspec.yaml | 2 +- lib/src/collection.dart | 4 +++- pubspec.lock | 12 ++++++------ pubspec.yaml | 6 +++--- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2155c68..0903407 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.3.14 +* upgrade dependencies +* fix for query results duplicate after 1250km as described in [this issue](https://github.com/beerstorm-net/GeoFlutterFire2/issues/13) + ## 2.3.13 * upgrade dependencies diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 0126578..98ae9e3 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -20,7 +20,7 @@ dev_dependencies: geoflutterfire2: path: ../ - cloud_firestore: ^4.0.4 + cloud_firestore: ^4.1.0 google_maps_flutter: ^2.2.1 # For information on the generic Dart part of this file, see the diff --git a/lib/src/collection.dart b/lib/src/collection.dart index d1c428e..3c8d5d6 100644 --- a/lib/src/collection.dart +++ b/lib/src/collection.dart @@ -87,7 +87,9 @@ class GeoFireCollectionRef { }) { final precision = Util.setPrecision(radius); final centerHash = center.hash.substring(0, precision); - final area = GeoFirePoint.neighborsOf(hash: centerHash)..add(centerHash); + final area = Set.from( + GeoFirePoint.neighborsOf(hash: centerHash)..add(centerHash), + ).toList(); Iterable>> queries = area.map((hash) { final tempQuery = _queryPoint(hash, field); diff --git a/pubspec.lock b/pubspec.lock index 0782f6e..3361e24 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: _flutterfire_internals url: "https://pub.dartlang.org" source: hosted - version: "1.0.7" + version: "1.0.9" async: dependency: transitive description: @@ -42,21 +42,21 @@ packages: name: cloud_firestore url: "https://pub.dartlang.org" source: hosted - version: "4.0.4" + version: "4.1.0" cloud_firestore_platform_interface: dependency: transitive description: name: cloud_firestore_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "5.8.4" + version: "5.9.0" cloud_firestore_web: dependency: transitive description: name: cloud_firestore_web url: "https://pub.dartlang.org" source: hosted - version: "3.0.4" + version: "3.1.0" collection: dependency: transitive description: @@ -77,7 +77,7 @@ packages: name: firebase_core url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.3.0" firebase_core_platform_interface: dependency: transitive description: @@ -155,7 +155,7 @@ packages: name: rxdart url: "https://pub.dartlang.org" source: hosted - version: "0.27.5" + version: "0.27.7" sky_engine: dependency: transitive description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 62cfafe..7b1c7f7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: geoflutterfire2 description: GeoFlutterFire2 is an open-source library that allows you to store and query firestore documents based on their geographic location. -version: 2.3.13 +version: 2.3.14 homepage: https://github.com/beerstorm-net/geoflutterfire2 environment: @@ -10,8 +10,8 @@ environment: dependencies: flutter: sdk: flutter - cloud_firestore: ^4.0.4 - rxdart: ^0.27.5 + cloud_firestore: ^4.1.0 + rxdart: ^0.27.7 dev_dependencies: flutter_test: