Skip to content

Commit

Permalink
[MapKit] Add support for Xcode 15 beta 7 (#18877)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
  • Loading branch information
3 people authored Sep 5, 2023
1 parent 86c82c9 commit 1936185
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 195 deletions.
2 changes: 1 addition & 1 deletion src/MapKit/MKEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public enum MKDistanceFormatterUnitStyle : ulong {
}

// NSInteger -> MKMapView.h
[NoWatch]
[Watch (10, 0)]
[MacCatalyst (13, 1)]
[Native]
public enum MKOverlayLevel : long {
Expand Down
24 changes: 24 additions & 0 deletions src/mapkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,14 @@ interface MKMapView {
[NoWatch, NoTV, NoiOS, Mac (11, 0)]
[Export ("showsPitchControl")]
bool ShowsPitchControl { get; set; }

[TV (17, 0), NoWatch, MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)]
[Export ("pitchButtonVisibility", ArgumentSemantic.Assign)]
MKFeatureVisibility PitchButtonVisibility { get; set; }

[TV (17, 0), NoWatch, MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)]
[Export ("showsUserTrackingButton")]
bool ShowsUserTrackingButton { get; set; }
}

[Static]
Expand Down Expand Up @@ -1689,6 +1697,10 @@ partial interface MKMapSnapshotOptions : NSCopying {
[Export ("region", ArgumentSemantic.Assign)]
MKCoordinateRegion Region { get; set; }

[Deprecated (PlatformName.MacOSX, 14, 0, message: "Use 'PreferredConfiguration' instead.")]
[Deprecated (PlatformName.iOS, 17, 0, message: "Use 'PreferredConfiguration' instead.")]
[Deprecated (PlatformName.MacCatalyst, 17, 0, message: "Use 'PreferredConfiguration' instead.")]
[Deprecated (PlatformName.TvOS, 17, 0, message: "Use 'PreferredConfiguration' instead.")]
[Export ("mapType", ArgumentSemantic.Assign)]
MKMapType MapType { get; set; }

Expand All @@ -1710,6 +1722,10 @@ partial interface MKMapSnapshotOptions : NSCopying {
[Export ("showsPointsOfInterest")]
bool ShowsPointsOfInterest { get; set; }

[Deprecated (PlatformName.MacOSX, 14, 0)]
[Deprecated (PlatformName.iOS, 17, 0)]
[Deprecated (PlatformName.MacCatalyst, 17, 0)]
[Deprecated (PlatformName.TvOS, 17, 0)]
[Export ("showsBuildings")]
bool ShowsBuildings { get; set; }

Expand All @@ -1720,6 +1736,10 @@ partial interface MKMapSnapshotOptions : NSCopying {
[NullAllowed, Export ("appearance", ArgumentSemantic.Strong)]
NSAppearance Appearance { get; set; }

[Deprecated (PlatformName.MacOSX, 14, 0)]
[Deprecated (PlatformName.iOS, 17, 0)]
[Deprecated (PlatformName.MacCatalyst, 17, 0)]
[Deprecated (PlatformName.TvOS, 17, 0)]
[TV (13, 0), NoWatch, iOS (13, 0)]
[MacCatalyst (13, 1)]
[NullAllowed, Export ("pointOfInterestFilter", ArgumentSemantic.Copy)]
Expand All @@ -1729,6 +1749,10 @@ partial interface MKMapSnapshotOptions : NSCopying {
[MacCatalyst (13, 1)]
[Export ("traitCollection", ArgumentSemantic.Copy)]
UITraitCollection TraitCollection { get; set; }

[TV (17, 0), NoWatch, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Export ("preferredConfiguration", ArgumentSemantic.Copy)]
MKMapConfiguration PreferredConfiguration { get; set; }
}

[NoWatch]
Expand Down
121 changes: 0 additions & 121 deletions tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.todo

This file was deleted.

12 changes: 0 additions & 12 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.todo

This file was deleted.

12 changes: 0 additions & 12 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo

This file was deleted.

12 changes: 0 additions & 12 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.todo

This file was deleted.

12 changes: 0 additions & 12 deletions tests/xtro-sharpie/iOS-MapKit.todo

This file was deleted.

12 changes: 0 additions & 12 deletions tests/xtro-sharpie/macOS-MapKit.todo

This file was deleted.

12 changes: 0 additions & 12 deletions tests/xtro-sharpie/tvOS-MapKit.todo

This file was deleted.

1 change: 0 additions & 1 deletion tests/xtro-sharpie/watchOS-MapKit.todo

This file was deleted.

4 comments on commit 1936185

@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.