Skip to content

Commit 6eb56a6

Browse files
committed
Maintenance, updates dependencies
1 parent 1c2a5a1 commit 6eb56a6

4 files changed

Lines changed: 50 additions & 36 deletions

File tree

geolocator/CHANGELOG.md

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1+
## 14.0.3
2+
3+
- Updates the following dependencies:
4+
- `geolocator_platform_interface` to 4.2.8
5+
- `geolocator_android` to 5.0.3
6+
- `geolocator_apple` to 2.3.14
7+
- `geolocator_linux` to 0.2.6
8+
- `geolocator_web` to 4.1.4
9+
- `flutter_lints` to 6.0.0
10+
111
## 14.0.2
212

3-
- Adds section about `UIBackgroundModes` to the README.
4-
- Adds Linux as a supported platform to pubspec.
13+
- Adds section about `UIBackgroundModes` to the README.
14+
- Adds Linux as a supported platform to pubspec.
515

616
## 14.0.1
717

8-
- Adds section about `FOREGROUND_SERVICE_LOCATION` to the README.
18+
- Adds section about `FOREGROUND_SERVICE_LOCATION` to the README.
919
- Fixes PlatformException in example app for Android 14 (SDK level 34) and newer by updating manifest permissions.
1020

1121
## 14.0.0
@@ -69,7 +79,7 @@
6979

7080
## 10.0.0
7181

72-
- **BREAKING CHANGE:** Updates dependency on geolocator_windows to version 0.2.0. This will synchronize default values for `Position.altitude`, `Position.heading` and `Position.speed` with the other platforms.
82+
- **BREAKING CHANGE:** Updates dependency on geolocator_windows to version 0.2.0. This will synchronize default values for `Position.altitude`, `Position.heading` and `Position.speed` with the other platforms.
7383

7484
## 9.0.2
7585

@@ -124,7 +134,7 @@
124134

125135
## 8.0.1
126136

127-
- Fix "forceAndroidLocationManager" for getLastKnownPosition
137+
- Fix "forceAndroidLocationManager" for getLastKnownPosition
128138
- Upgrade geolocator_platform_interface to 3.0.1
129139
- Upgrade geolocator_web to 2.1.1
130140

@@ -135,7 +145,7 @@
135145

136146
## 7.7.1
137147

138-
* Update the documentation on permissions in the README.md.
148+
- Update the documentation on permissions in the README.md.
139149

140150
## 7.7.0
141151

@@ -197,7 +207,7 @@
197207
## 7.0.3
198208

199209
- Android: Throw the `ActivityMissingException` when requesting permissions while the activity is not available (e.g. when the App is in the background);
200-
- iOS: Support the `NSLocationAlwaysAndWhenInUseUsageDescription` key on iOS 11+ (this key replaces the `NSLocationAlwaysDescription` key which has been marked [deprecated](https://developer.apple.com/documentation/bundleresources/information_property_list/nslocationalwaysusagedescription?language=objc)).
210+
- iOS: Support the `NSLocationAlwaysAndWhenInUseUsageDescription` key on iOS 11+ (this key replaces the `NSLocationAlwaysDescription` key which has been marked [deprecated](https://developer.apple.com/documentation/bundleresources/information_property_list/nslocationalwaysusagedescription?language=objc)).
201211

202212
## 7.0.2
203213

@@ -209,7 +219,8 @@
209219

210220
## 7.0.0
211221

212-
This release contains the following **breaking changes**:
222+
This release contains the following **breaking changes**:
223+
213224
- Stable release of null safety migration;
214225
- Checking permissions on Android can no longer result in `LocationPermissions.deniedForever`. More details can be found in issue [#653](https://github.com/Baseflow/flutter-geolocator/issues/653) and the [wiki](https://github.com/Baseflow/flutter-geolocator/wiki/Breaking-changes-in-7.0.0#android-permission-update);
215226
- Removed deprecated `timeInterval` parameter from the `getPositionStream` method;
@@ -366,7 +377,7 @@ Complete rebuild of the geolocator plugin. Please note the this version contains
366377

367378
- Added unit-tests to guard for breaking API changes;
368379
- Added support to supply a locale identifier when requesting a placemark using a [Position](https://pub.dev/documentation/geolocator/latest/geolocator/Position-class.html) instance;
369-
- **breaking*- Stop hiding parsing exceptions when converting coordinates into an address. Instead of returning `null` the `placemarkFromCoordinates` method will now throw and `ArgumentError` if illegal values are returned (which should never happen).
380+
- \*_breaking_- Stop hiding parsing exceptions when converting coordinates into an address. Instead of returning `null` the `placemarkFromCoordinates` method will now throw and `ArgumentError` if illegal values are returned (which should never happen).
370381

371382
## 5.2.1
372383

@@ -418,8 +429,8 @@ Complete rebuild of the geolocator plugin. Please note the this version contains
418429
- Change geocoding results on Android to return multiple records;
419430
- Extended the example application;
420431
- Use the correct permission level enumeration;
421-
# Added documentation regarding AndroidX support.
422432

433+
# Added documentation regarding AndroidX support.
423434

424435
## 5.0.1
425436

@@ -449,15 +460,15 @@ Complete rebuild of the geolocator plugin. Please note the this version contains
449460
## 4.0.0
450461

451462
- Overhauled the permissions system to make sure the plugin only depends on the location API. This means when using this version of the plugin Apple requires only entries for the `NSLocationWhenInUseUsageDescription` and/ or `NSLocationAlwaysUsageDescription` in the `Info.plist`.
452-
- **breaking*- As part of the permission system overhaul, we removed the `disabled` permission status. To check if the location services are running you should call the `isLocationServiceEnabled` method. This means you can now also request permissions when the location services are disabled.
463+
- \*_breaking_- As part of the permission system overhaul, we removed the `disabled` permission status. To check if the location services are running you should call the `isLocationServiceEnabled` method. This means you can now also request permissions when the location services are disabled.
453464

454465
## 3.0.1
455466

456467
- Updated dependencies on Permission Handler and Google API Availability to remove Kotlin dependency.
457468

458469
## 3.0.0
459470

460-
- **breaking*- Updated to support AndroidX;
471+
- \*_breaking_- Updated to support AndroidX;
461472
- Added API method `isLocationServiceEnabled` to check if location services are enabled or disabled
462473
- Removed method `checkGeolocationStatus` (marked deprecated in version 1.6.4);
463474
- Updated to latest version of Permission Handler plugin to solve some small issues on iOS;
@@ -484,19 +495,19 @@ Complete rebuild of the geolocator plugin. Please note the this version contains
484495

485496
## 2.0.0
486497

487-
- **breaking*- The `getPositionStream` method now directly returns an instance of the `Stream<Position>` class, meaning there is no need to `await` the method before being able to access the stream;
488-
- **breaking*- Arguments for the methods `getCurrentPosition` and `getLastKnownPosition` are now named optional parameters instead of positional optional parameters;
498+
- \*_breaking_- The `getPositionStream` method now directly returns an instance of the `Stream<Position>` class, meaning there is no need to `await` the method before being able to access the stream;
499+
- \*_breaking_- Arguments for the methods `getCurrentPosition` and `getLastKnownPosition` are now named optional parameters instead of positional optional parameters;
489500
- By default Geolocator will use FusedLocationProviderClient on Android when Google Play Services are available. It will fall back to LocationManager when it is not available. You can override the behaviour by setting `Geolocator geolocator = Geolocator()..forceAndroidLocationManager = true;`
490501
- Allow developers to specify a desired interval for active location updates, in milliseconds (Android only).
491502

492503
## 1.7.0
493504

494505
- Added timestamp to instances of the `Position` class indicating when the GPS fix was acquired;
495-
- Updated the dependency on the `PermissionHandler` to version >=2.0.0 <3.0.0.
506+
- Updated the dependency on the `PermissionHandler` to version >=2.0.0 <3.0.0.
496507

497508
## 1.6.5
498509

499-
- Fixed bug on Android when not supplying a locale while using the Geocoding features.
510+
- Fixed bug on Android when not supplying a locale while using the Geocoding features.
500511

501512
## 1.6.4
502513

@@ -528,27 +539,27 @@ Complete rebuild of the geolocator plugin. Please note the this version contains
528539
- It is now possible to check the location permissions using the `checkGeolocationStatus` method [[ISSUE #51](https://github.com/BaseflowIT/flutter-geolocator/issues/51)].
529540
- Improved the example App [[ISSUE #54](https://github.com/BaseflowIT/flutter-geolocator/issues/54)]
530541
- Solved a bug on Android causing a memory leak when you stop listening to the position stream.
531-
- **breaking*- Solved a bug on Android where permissions could be requested more then once simultaneously [[ISSUE #58](https://github.com/BaseflowIT/flutter-geolocator/issues/58)]
542+
- \*_breaking_- Solved a bug on Android where permissions could be requested more then once simultaneously [[ISSUE #58](https://github.com/BaseflowIT/flutter-geolocator/issues/58)]
532543
- Solved a bug on Android where requesting permissions twice would cause the App to crash [[ISSUE #61](https://github.com/BaseflowIT/flutter-geolocator/issues/61)]
533544

534545
> **Important:**
535-
>
546+
>
536547
> To be able to correctly fix [issue #58](https://github.com/BaseflowIT/flutter-geolocator/issues/58) we had to change the `getPositionStream` method into a `async` method. This means the signature of the method has been changed from:
537548
>
538-
> `Stream<Position> getPositionStream([LocationOptions locationOptions = const LocationOptions()])`
549+
> `Stream<Position> getPositionStream([LocationOptions locationOptions = const LocationOptions()])`
539550
>
540-
> to
551+
> to
541552
>
542-
> `Future<Stream<Position>> getPositionStream([LocationOptions locationOptions = const LocationOptions()])`.
553+
> `Future<Stream<Position>> getPositionStream([LocationOptions locationOptions = const LocationOptions()])`.
543554
>
544555
> Meaning as a developer you'll now have to `await` the result of the method to get access to the actual stream.
545556
546557
## 1.4.0
547558

548559
- Added feature to query the last known location that is stored on the device using the `getLastKnownLocation` method;
549-
- **breaking*- Renamed the `getPosition` to `getCurrentPosition`;
560+
- \*_breaking_- Renamed the `getPosition` to `getCurrentPosition`;
550561
- Fixed bug where calling `getCurrentPosition` on Android resulted in returning the last known location;
551-
- **breaking*- Renamed methods `toPlacemark` and `fromPlacemark` respectively to the, more meaningful names, `placemarkFromAddress` and `placemarkFromCoordinates`;
562+
- \*_breaking_- Renamed methods `toPlacemark` and `fromPlacemark` respectively to the, more meaningful names, `placemarkFromAddress` and `placemarkFromCoordinates`;
552563

553564
## 1.3.1
554565

@@ -571,7 +582,7 @@ Complete rebuild of the geolocator plugin. Please note the this version contains
571582
> This introduces a breaking change since the signature of the `getPositionStream` has changed from `getPositionStream(LocationAccuracy accuracy)` to
572583
> `getPositionStream(LocationOptions locationOptions)` .
573584
574-
- Made some small changes to ensure the plugin no longer is depending on JAVA 8, meaning the plugin will run using the default Android configuration.
585+
- Made some small changes to ensure the plugin no longer is depending on JAVA 8, meaning the plugin will run using the default Android configuration.
575586

576587
## 1.2.0
577588

@@ -588,11 +599,12 @@ Complete rebuild of the geolocator plugin. Please note the this version contains
588599

589600
## 1.1.0
590601

591-
- Introduced the option to supply a desired accuracy.
602+
- Introduced the option to supply a desired accuracy.
592603

593-
> **Important:*-
604+
> \*_Important:_-
594605
>
595-
>This introduces a breaking change, the `getPosition` and `onPositionChanged` properties have been replaced by methods (`getPosition([LocationAccuracy desiredAccuracy = LocationAccuracy.Best])` and `getPositionStream([LocationAccuracy desiredAccuracy = LocationAccuracy.Best])` respectively) accepting a parameter to indicate the desired accuracy.
606+
> This introduces a breaking change, the `getPosition` and `onPositionChanged` properties have been replaced by methods (`getPosition([LocationAccuracy desiredAccuracy = LocationAccuracy.Best])` and `getPositionStream([LocationAccuracy desiredAccuracy = LocationAccuracy.Best])` respectively) accepting a parameter to indicate the desired accuracy.
607+
596608
- Updated the Android part to make use of the [LocationManager](https://developer.android.com/reference/android/location/LocationManager) instead of the [FusedLocationProviderClient](https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderClient)
597609
- Improved support for handling position requests that happen in rapid succession.
598610

geolocator/example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import FlutterMacOS
66
import Foundation
77

88
import geolocator_apple
9+
import package_info_plus
910
import url_launcher_macos
1011

1112
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1213
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
14+
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
1315
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1416
}

geolocator/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ dependencies:
2828

2929
# The following adds the URL Launcher plugin which is used by
3030
# the demo application to open the links in the web browser.
31-
url_launcher: ^6.0.0-nullsafety.1
31+
url_launcher: ^6.0.0
3232

3333
dev_dependencies:
3434
flutter_test:
3535
sdk: flutter
36-
flutter_lints: ^5.0.0
36+
flutter_lints: ^6.0.0
3737

3838
# For information on the generic Dart part of this file, see the
3939
# following page: https://dart.dev/tools/pub/pubspec

geolocator/pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: geolocator
22
description: Geolocation plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API for generic location (GPS etc.) functions.
33
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator
44
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
5-
version: 14.0.2
5+
version: 14.0.3
66

77
environment:
88
sdk: ^3.5.0
@@ -29,15 +29,15 @@ dependencies:
2929
sdk: flutter
3030

3131
geolocator_platform_interface: ^4.2.3
32-
geolocator_android: ^5.0.0
33-
geolocator_apple: ^2.3.8
34-
geolocator_web: ^4.1.1
32+
geolocator_android: ^5.0.3
33+
geolocator_apple: ^2.3.14
34+
geolocator_web: ^4.1.4
3535
geolocator_windows: ^0.2.3
36-
geolocator_linux: ^0.2.3
36+
geolocator_linux: ^0.2.6
3737

3838
dev_dependencies:
3939
flutter_test:
4040
sdk: flutter
41-
flutter_lints: ^5.0.0
42-
mockito: ^5.0.0-nullsafety.7
41+
flutter_lints: ^6.0.0
42+
mockito: ^5.0.0
4343
plugin_platform_interface: ^2.1.8

0 commit comments

Comments
 (0)