diff --git a/geolocator_platform_interface/CHANGELOG.md b/geolocator_platform_interface/CHANGELOG.md index eb5ffe5d..a96ba76a 100644 --- a/geolocator_platform_interface/CHANGELOG.md +++ b/geolocator_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.2.1 + +- Updates documentation `isMocked` to bring it in line with the functionality. `isMocked` for iOS 15 and higher depends on the result from isSimulatedBySoftware. + ## 4.2.0 - Replaces an optional DateTime? `timestamp` in `Position` object for an NonNull DateTime `timestamp`. diff --git a/geolocator_platform_interface/lib/src/models/position.dart b/geolocator_platform_interface/lib/src/models/position.dart index d6a49141..b4454651 100644 --- a/geolocator_platform_interface/lib/src/models/position.dart +++ b/geolocator_platform_interface/lib/src/models/position.dart @@ -85,7 +85,9 @@ class Position { /// Will be true on Android (starting from API lvl 18) when the location came /// from the mocked provider. /// - /// On iOS this value will always be false. + /// Will be true on iOS 15 and higher when flag isSimulatedBySoftware is true (otherwise false). + /// + /// When not available the default value is false. final bool isMocked; @override diff --git a/geolocator_platform_interface/pubspec.yaml b/geolocator_platform_interface/pubspec.yaml index efb3104c..73ac32c4 100644 --- a/geolocator_platform_interface/pubspec.yaml +++ b/geolocator_platform_interface/pubspec.yaml @@ -3,7 +3,7 @@ description: A common platform interface for the geolocator plugin. repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_platform_interface # NOTE: We strongly prefer non-breaking changes, even at the expense of a # less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes -version: 4.2.0 +version: 4.2.1 dependencies: flutter: