Skip to content

Commit

Permalink
- upgrade dependencies & publish new version 2.3.14
Browse files Browse the repository at this point in the history
- fix for query results duplicate after 1250km as described in [this issue](#13) #13
  • Loading branch information
zeusbaba committed Nov 20, 2022
1 parent f56d9bb commit 1a4469d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/src/collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>.from(
GeoFirePoint.neighborsOf(hash: centerHash)..add(centerHash),
).toList();

Iterable<Stream<List<DistanceDocSnapshot>>> queries = area.map((hash) {
final tempQuery = _queryPoint(hash, field);
Expand Down
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 1a4469d

Please sign in to comment.