device_geolocation 1.0.2
device_geolocation: ^1.0.2 copied to clipboard
Cross-platform Flutter geolocation plugin (Android, iOS, macOS, Web, Windows, Linux).
Changelog #
All notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
1.0.2 2026 #
Fixed #
- Windows: apply
cxx_std_20,/awaitand theWindowsApplink to the${TEST_RUNNER}target inwindows/CMakeLists.txt. The unit-test executable recompiles the plugin sources (which useco_await/ WinRT C++/coroutines) and was inheriting C++17 from Flutter's default settings, breaking the example's Windows build on CI.
1.0.1 2026 #
Changed #
- CI/CD: aligned the
publish.yamlworkflow with the shared team template (OIDC trusted publishing viaid-token: write, version-vs-tag verification step,flutter pub get+flutter testgate before publishing).
1.0.0 2025 #
Added #
- Linux support via the GeoClue2 D-Bus service (Dart-only implementation,
registered through
dartPluginClass). - iOS 17+ and macOS 14+ streaming via
CLLocationUpdate.liveUpdateswith a delegate-based fallback for older OS versions. - Two-stage Android runtime permission flow:
requestPermission()accepts arequestBackgroundflag and, when granted while-in-use first, chains the background permission request on Android 10+ (Q). - Privacy manifests (
PrivacyInfo.xcprivacy) are now bundled on iOS and macOS. topics,homepage,repositoryandissue_trackerinpubspec.yaml.
Changed #
- Bumped plugin to 1.0.0 and re-namespaced the Android implementation to
com.arcas0803.device_geolocation. - iOS minimum deployment target raised to 14.0; macOS to 11.0; Swift language version raised to 5.9.
- Android minimum SDK is 24 (Android 7.0);
compileSdk36, AGP 9.0.1, Kotlin 2.3.20, Play Services Location 21.3.0. - Windows plugin compiles with C++20 and uses WinRT C++/coroutines
(
co_await,winrt::fire_and_forget); event-sink callbacks are now marshalled onto the platform thread viaDispatcherQueue. - Web implementation migrated to
package:web+dart:js_interopand now validates the page is served from a secure context before requesting a position. - Replaced deprecated
CLLocationManager.authorizationStatus()with the instance property and adoptedlocationManagerDidChangeAuthorization(_:). - macOS settings deep-link now targets the macOS 13+
com.apple.settings.PrivacySecurity.extensionpanel with a fallback for older versions.
Removed #
- Default
flutter createscaffolding (boilerplate counter app,TODOREADME, empty CHANGELOG, placeholder LICENSE, placeholder podspec/Package.swift metadata). getPlatformVersionmethod and its tests on every platform.