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] Add support for Xcode 13 beta 4. #12298

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/corelocation.cs
Expand Up @@ -134,6 +134,10 @@ partial interface CLLocation : NSSecureCoding, NSCopying, CKRecordValue {
[Export ("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:")]
IntPtr Constructor (CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double courseAccuracy, double speed, double speedAccuracy, NSDate timestamp);

[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[Export ("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo:")]
IntPtr Constructor (CLLocationCoordinate2D coordinate, double altitude, double horizontalAccuracy, double verticalAccuracy, double course, double courseAccuracy, double speed, double speedAccuracy, NSDate timestamp, CLLocationSourceInformation sourceInfo);

// Apple keep changing the 'introduction' of this field (5.0->8.0->5.0) but it was not available in 6.1
// nor in 7.0 - but it works on my iPad3 running iOS 7.1
[NoTV][NoWatch]
Expand Down Expand Up @@ -168,6 +172,14 @@ partial interface CLLocation : NSSecureCoding, NSCopying, CKRecordValue {
[iOS (8,0)]
[NullAllowed, Export ("floor", ArgumentSemantic.Copy)]
CLFloor Floor { get; }

[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[Export ("ellipsoidalAltitude")]
double EllipsoidalAltitude { get; }

[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[NullAllowed, Export ("sourceInformation")]
CLLocationSourceInformation SourceInformation { get; }
}

[Mac (10,15)]
Expand Down Expand Up @@ -905,4 +917,18 @@ interface CLLocationPushServiceExtension
void ServiceExtensionWillTerminate ();
}

[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[BaseType (typeof(NSObject))]
interface CLLocationSourceInformation : NSCopying, NSSecureCoding
{
[Export ("initWithSoftwareSimulationState:andExternalAccessoryState:")]
IntPtr Constructor (bool isSoftware, bool isAccessory);

[Export ("isSimulatedBySoftware")]
bool IsSimulatedBySoftware { get; }

[Export ("isProducedByAccessory")]
bool IsProducedByAccessory { get; }
}

}
7 changes: 0 additions & 7 deletions tests/xtro-sharpie/MacCatalyst-CoreLocation.todo

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/iOS-CoreLocation.todo

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/macOS-CoreLocation.todo

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/tvOS-CoreLocation.todo

This file was deleted.

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

This file was deleted.