Skip to content

Commit 2848c56

Browse files
authored
fix: remove usage hashValues in favor Object.hash (#69)
* fix: remove usage hashValues in favor Object.hash Signed-off-by: Michaël Ohayon <[email protected]> * Upgrade version Signed-off-by: Michaël Ohayon <[email protected]> * Upgrade Flutter version used in CI Signed-off-by: Michaël Ohayon <[email protected]> --------- Signed-off-by: Michaël Ohayon <[email protected]>
1 parent a1566f0 commit 2848c56

12 files changed

+17
-13
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Flutter
2323
uses: subosito/flutter-action@v1
2424
with:
25-
flutter-version: '2.0.3'
25+
flutter-version: '3.27.3'
2626
- name: Install dependencies
2727
run: flutter pub get
2828
- name: Run dart analyze

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.4.0
4+
5+
* Flutter 3.27.1 compatibility, replace `ui.hash*` with `Object.hash*
6+
37
## 1.3.0
48

59
* Animate marker position changes instead of removing and re-adding

lib/src/annotation.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class InfoWindow {
8989
}
9090

9191
@override
92-
int get hashCode => hashValues(title.hashCode, snippet, anchor);
92+
int get hashCode => Object.hash(title.hashCode, snippet, anchor);
9393

9494
@override
9595
String toString() {

lib/src/annotation_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _AnnotationUpdates {
8787

8888
@override
8989
int get hashCode =>
90-
hashValues(annotationsToAdd, annotationIdsToRemove, annotationsToChange);
90+
Object.hash(annotationsToAdd, annotationIdsToRemove, annotationsToChange);
9191

9292
@override
9393
String toString() {

lib/src/camera.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class CameraPosition {
7373
}
7474

7575
@override
76-
int get hashCode => hashValues(heading, target, pitch, zoom);
76+
int get hashCode => Object.hash(heading, target, pitch, zoom);
7777

7878
@override
7979
String toString() =>

lib/src/circle_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _CircleUpdates {
8787

8888
@override
8989
int get hashCode =>
90-
hashValues(circlesToAdd, circleIdsToRemove, circlesToChange);
90+
Object.hash(circlesToAdd, circleIdsToRemove, circlesToChange);
9191

9292
@override
9393
String toString() {

lib/src/location.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class LatLng {
4444
}
4545

4646
@override
47-
int get hashCode => hashValues(latitude, longitude);
47+
int get hashCode => Object.hash(latitude, longitude);
4848
}
4949

5050
/// A latitude/longitude aligned rectangle.
@@ -116,5 +116,5 @@ class LatLngBounds {
116116
}
117117

118118
@override
119-
int get hashCode => hashValues(southwest, northeast);
119+
int get hashCode => Object.hash(southwest, northeast);
120120
}

lib/src/polygon_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _PolygonUpdates {
8787

8888
@override
8989
int get hashCode =>
90-
hashValues(polygonsToAdd, polygonIdsToRemove, polygonsToChange);
90+
Object.hash(polygonsToAdd, polygonIdsToRemove, polygonsToChange);
9191

9292
@override
9393
String toString() {

lib/src/polyline_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class _PolylineUpdates {
8181

8282
@override
8383
int get hashCode =>
84-
hashValues(polylinesToAdd, polylineIdsToRemove, polylinesToChange);
84+
Object.hash(polylinesToAdd, polylineIdsToRemove, polylinesToChange);
8585

8686
@override
8787
String toString() {

lib/src/snapshot_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SnapshotOptions {
4545
}
4646

4747
@override
48-
int get hashCode => hashValues(showBuildings, showPointsOfInterest);
48+
int get hashCode => Object.hash(showBuildings, showPointsOfInterest);
4949

5050
@override
5151
String toString() =>

lib/src/ui.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class MinMaxZoomPreference {
8686
}
8787

8888
@override
89-
int get hashCode => hashValues(minZoom, maxZoom);
89+
int get hashCode => Object.hash(minZoom, maxZoom);
9090

9191
@override
9292
String toString() {

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: apple_maps_flutter
22
description: This plugin uses the Flutter platform view to display an Apple Maps widget.
3-
version: 1.3.0
3+
version: 1.4.0
44
homepage: https://luisthein.de
55
repository: https://github.com/LuisThein/apple_maps_flutter
66
issue_tracker: https://github.com/LuisThein/apple_maps_flutter/issues
77

88
environment:
9-
sdk: ">=2.12.0 <3.0.0"
9+
sdk: ">=2.14.0 <3.0.0"
1010
flutter: ">=1.17.0"
1111

1212
dependencies:

0 commit comments

Comments
 (0)