From 34666f5228962c07a0f1ea62e27f29aeb5971b65 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 19 Nov 2024 04:42:17 -0800 Subject: [PATCH] [CoreLocation] Fix misspelled field. Fixes #21641. (#21652) Fixes https://github.com/xamarin/xamarin-macios/issues/21641. --- docs/api/CoreLocation/CLLocationManager.xml | 2 +- src/corelocation.cs | 6 ++++++ tests/cecil-tests/Documentation.KnownFailures.txt | 2 +- tests/introspection/ApiTypoTest.cs | 1 - 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/api/CoreLocation/CLLocationManager.xml b/docs/api/CoreLocation/CLLocationManager.xml index 5904578148..2f9374df44 100644 --- a/docs/api/CoreLocation/CLLocationManager.xml +++ b/docs/api/CoreLocation/CLLocationManager.xml @@ -204,7 +204,7 @@ locationManager.StartRangingBeacons(beaconRegion) The property must be assigned to an object whose class implements the method. - The property must be set to or . + The property must be set to or . If those conditions are satisfied, the application can request deferred delivery when backgrounded by calling the method. diff --git a/src/corelocation.cs b/src/corelocation.cs index d4b4e35c42..6898bf1941 100644 --- a/src/corelocation.cs +++ b/src/corelocation.cs @@ -194,8 +194,14 @@ namespace CoreLocation { [Field ("kCLErrorUserInfoAlternateRegionKey")] NSString ErrorUserInfoAlternateRegionKey { get; } +#if !XAMCORE_5_0 + [Obsolete ("Use 'AccuracyBestForNavigation' instead.")] [Field ("kCLLocationAccuracyBestForNavigation")] double AccurracyBestForNavigation { get; } +#endif + + [Field ("kCLLocationAccuracyBestForNavigation")] + double AccuracyBestForNavigation { get; } [Field ("kCLLocationAccuracyBest")] double AccuracyBest { get; } diff --git a/tests/cecil-tests/Documentation.KnownFailures.txt b/tests/cecil-tests/Documentation.KnownFailures.txt index 327dd968da..1f9dedaa40 100644 --- a/tests/cecil-tests/Documentation.KnownFailures.txt +++ b/tests/cecil-tests/Documentation.KnownFailures.txt @@ -56747,7 +56747,7 @@ P:CoreLocation.CLLocation.AccuracyKilometer P:CoreLocation.CLLocation.AccuracyNearestTenMeters P:CoreLocation.CLLocation.AccuracyReduced P:CoreLocation.CLLocation.AccuracyThreeKilometers -P:CoreLocation.CLLocation.AccurracyBestForNavigation +P:CoreLocation.CLLocation.AccuracyBestForNavigation P:CoreLocation.CLLocation.Altitude P:CoreLocation.CLLocation.Coordinate P:CoreLocation.CLLocation.Course diff --git a/tests/introspection/ApiTypoTest.cs b/tests/introspection/ApiTypoTest.cs index 6681a40d07..40ecd8c347 100644 --- a/tests/introspection/ApiTypoTest.cs +++ b/tests/introspection/ApiTypoTest.cs @@ -72,7 +72,6 @@ namespace Introspection { HashSet allowed = new HashSet () { "Aac", - "Accurracy", "Achivements", "Acos", "Acosh",