Skip to content

Commit

Permalink
[CoreLocation] Added support for Xcode 14.1 b1 (#16119)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
  • Loading branch information
3 people authored Oct 11, 2022
1 parent 11b1d1e commit 1e877a8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/CoreLocation/CLEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public enum CLError : long {

// ios14
PromptDeclined = 18,

// ios16
[NoMac, iOS (16,1), MacCatalyst (16,1), Watch (9,1), TV (16,1)]
HistoricalLocationError,
}

// untyped enum -> CLLocationManager.h
Expand Down
5 changes: 5 additions & 0 deletions src/corelocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ partial interface CLFloor : NSSecureCoding, NSCopying {
nint Level { get; }
}

delegate void RequestHistoricalLocationsCompletionHandler (CLLocation [] locations, [NullAllowed] NSError error);

[BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (CLLocationManagerDelegate)})]
partial interface CLLocationManager {
[Wrap ("WeakDelegate")]
Expand Down Expand Up @@ -474,6 +476,9 @@ partial interface CLLocationManager {
[Export ("stopMonitoringLocationPushes")]
void StopMonitoringLocationPushes ();

[Watch (9,1), NoTV, NoMac, NoiOS, NoMacCatalyst]
[Export ("requestHistoricalLocationsWithPurposeKey:sampleCount:completionHandler:")]
void RequestHistoricalLocations (string purposeKey, nint sampleCount, RequestHistoricalLocationsCompletionHandler handler);
}

[BaseType (typeof (NSObject))]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
!deprecated-attribute-missing! CLGeocoder::geocodeAddressDictionary:completionHandler: missing a [Deprecated] attribute
!deprecated-attribute-missing! CLPlacemark::addressDictionary missing a [Deprecated] attribute
!missing-enum-value! CLError native value kCLErrorHistoricalLocationError = 19 not bound
1 change: 0 additions & 1 deletion tests/xtro-sharpie/iOS-CoreLocation.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/tvOS-CoreLocation.todo

This file was deleted.

2 changes: 0 additions & 2 deletions tests/xtro-sharpie/watchOS-CoreLocation.todo

This file was deleted.

4 comments on commit 1e877a8

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.