Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CoreLocation] Added support for Xcode 14.1 b1 #16119

Merged
merged 8 commits into from
Oct 11, 2022
Merged
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.