Skip to content

Commit 1150576

Browse files
updates Apple package (Baseflow#1642)
1 parent 2e9c094 commit 1150576

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

geolocator_apple/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.3.10
2+
3+
* Updated dart sdk to sdk: `^3.5.0`
4+
* Fixed example project warnings
5+
16
## 2.3.9
27

38
* Adds privacy manifest for macOS.

geolocator_apple/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void main() {
1818
/// Example [Widget] showing the functionalities of the geolocator plugin
1919
class GeolocatorWidget extends StatefulWidget {
2020
/// Creates a new GeolocatorWidget.
21-
const GeolocatorWidget({Key? key}) : super(key: key);
21+
const GeolocatorWidget({super.key});
2222

2323
/// Utility method to create a page with the Baseflow templating.
2424
static ExamplePage createPage() {

geolocator_apple/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Demonstrates how to use the geolocator_ios plugin.
66
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
77

88
environment:
9-
sdk: ">=2.15.0 <4.0.0"
9+
sdk: ^3.5.0
1010

1111
dependencies:
1212
baseflow_plugin_template: ^2.1.2

geolocator_apple/lib/src/types/apple_settings.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ class AppleSettings extends LocationSettings {
1313
AppleSettings({
1414
this.pauseLocationUpdatesAutomatically = false,
1515
this.activityType = ActivityType.other,
16-
LocationAccuracy accuracy = LocationAccuracy.best,
17-
int distanceFilter = 0,
18-
Duration? timeLimit,
16+
super.accuracy,
17+
super.distanceFilter,
18+
super.timeLimit,
1919
this.showBackgroundLocationIndicator = false,
2020
this.allowBackgroundLocationUpdates = true,
21-
}) : super(
22-
accuracy: accuracy,
23-
distanceFilter: distanceFilter,
24-
timeLimit: timeLimit,
25-
);
21+
});
2622

2723
/// Allows the location manager to pause updates to improve battery life
2824
/// on the target device without sacrificing location data.

geolocator_apple/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: geolocator_apple
22
description: Geolocation Apple plugin for Flutter. This plugin provides the Apple implementation for the geolocator.
33
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_apple
44
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
5-
version: 2.3.9
5+
version: 2.3.10
66

77
environment:
8-
sdk: ">=2.15.0 <4.0.0"
8+
sdk: ^3.5.0
99
flutter: ">=2.8.0"
1010

1111
flutter:

0 commit comments

Comments
 (0)