Skip to content

Updates linux project #1643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions geolocator_linux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.2.2

- Updates dart sdk to `sdk: ^3.5.0`
- Fixes analyzer issues

## 0.2.1

- Updates dependency on package_info_plus to version 8.0.0.
Expand Down
2 changes: 1 addition & 1 deletion geolocator_linux/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void main() {
/// Example [Widget] showing the functionalities of the geolocator plugin
class GeolocatorWidget extends StatefulWidget {
/// Create a GeolocatorWidget.
const GeolocatorWidget({Key? key}) : super(key: key);
const GeolocatorWidget({super.key});

/// Utility method to create a page with the Baseflow templating.
static ExamplePage createPage() {
Expand Down
2 changes: 1 addition & 1 deletion geolocator_linux/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Demonstrates how to use the geolocator_linux plugin.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

environment:
sdk: ">=2.15.0 <3.0.0"
sdk: ^3.5.0

dependencies:
baseflow_plugin_template: ^2.1.2
Expand Down
2 changes: 0 additions & 2 deletions geolocator_linux/lib/src/geoclue_x.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ extension GeoClueLocationAccuracy on LocationAccuracy {
case LocationAccuracy.best:
case LocationAccuracy.bestForNavigation:
return GeoClueAccuracyLevel.exact;
default:
return GeoClueAccuracyLevel.none;
}
}
}
6 changes: 2 additions & 4 deletions geolocator_linux/lib/src/geolocator_gnome.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import 'package:geoclue/geoclue.dart';
import 'package:geolocator_platform_interface/geolocator_platform_interface.dart';
import 'package:gsettings/gsettings.dart';
import 'package:dbus/dbus.dart';

import 'geolocator_linux.dart';

class GeolocatorGnome extends GeolocatorLinux {
GeolocatorGnome(GeoClueManager manager, {GSettings? settings})
: _settings = settings ?? GSettings('org.gnome.system.location'),
super(manager);
GeolocatorGnome(super.manager, {GSettings? settings})
: _settings = settings ?? GSettings('org.gnome.system.location');

final GSettings _settings;

Expand Down
4 changes: 2 additions & 2 deletions geolocator_linux/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ description: Geolocation Linux plugin for Flutter. This plugin provides the
Linux implementation for the geolocator.
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_linux
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
version: 0.2.1
version: 0.2.2

environment:
sdk: '>=2.15.0 <4.0.0'
sdk: ^3.5.0
flutter: ">=2.8.0"

flutter:
Expand Down