Skip to content

Commit d00760e

Browse files
[iOS]update isMocked documentation (#1370)
* updated documentation according to current functionality * updates changelog and version * Update position.dart * Update CHANGELOG.md
1 parent 6ba92b1 commit d00760e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

geolocator_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.2.6
2+
3+
- Updates documentation `isMocked` to bring it in line with the functionality. `isMocked` for iOS 15 and higher depends on the result from isSimulatedBySoftware.
4+
15
## 4.2.5
26

37
- Updates dart sdk to `>3.5.0`

geolocator_platform_interface/lib/src/models/position.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ class Position {
8585
/// Will be true on Android (starting from API lvl 18) when the location came
8686
/// from the mocked provider.
8787
///
88-
/// On iOS this value will always be false.
88+
/// Will be true on iOS 15 and higher when flag isSimulatedBySoftware is true (otherwise false).
89+
///
90+
/// When not available the default value is false.
8991
final bool isMocked;
9092

9193
@override

geolocator_platform_interface/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ description: A common platform interface for the geolocator plugin.
33
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 4.2.5
6+
version: 4.2.6
7+
78

89
dependencies:
910
flutter:

0 commit comments

Comments
 (0)