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

[UserNotitications] Add support for Xcode 14 beta 1,2 & 3 #15544

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/usernotifications.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public enum UNErrorCode : long {
NotificationInvalidNoContent,
ContentProvidingObjectNotAllowed = 1500,
ContentProvidingInvalid = 1501,
BadgeInputInvalid = 1600,
}

[iOS (10, 0)]
Expand Down Expand Up @@ -131,6 +132,10 @@ public enum UNAuthorizationOptions : ulong {
[iOS (12, 0), TV(12,0), Watch (5,0)]
Provisional = (1 << 6),
[iOS (13,0)][TV (13,0)][Watch (6,0)]
[Deprecated (PlatformName.iOS, 15,0, message: "Announcement is always included.")]
[Deprecated (PlatformName.TvOS, 15,0, message: "Announcement is always included.")]
[Deprecated (PlatformName.WatchOS, 7,0, message: "Announcement is always included.")]
[Deprecated (PlatformName.MacOSX, 15,0, message: "Announcement is always included.")]
Announcement = (1 << 7),
[iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)]
TimeSensitive = (1 << 8),
Expand Down Expand Up @@ -437,6 +442,11 @@ interface UNNotificationContent : NSCopying, NSMutableCopying, NSSecureCoding {
[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[Export ("relevanceScore")]
double RelevanceScore { get; }

[Watch (9,0), NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("filterCriteria")]
[NullAllowed]
string FilterCriteria { get; }
}

[iOS (10, 0)]
Expand Down Expand Up @@ -507,6 +517,10 @@ interface UNMutableNotificationContent {
[iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)]
[Export ("relevanceScore")]
double RelevanceScore { get; set; }

[TV(16,0), Watch (9,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[NullAllowed, Export ("filterCriteria")]
string FilterCriteria { get; set; }
}

[iOS (10, 0)]
Expand Down Expand Up @@ -882,6 +896,11 @@ interface UNUserNotificationCenter {
[Unavailable (PlatformName.TvOS)]
[Export ("removeAllDeliveredNotifications")]
void RemoveAllDeliveredNotifications ();

[Async]
[TV (16,0), NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("setBadgeCount:withCompletionHandler:")]
void SetBadgeCount (nint newBadgeCount, [NullAllowed] Action<NSError> completionHandler);
}

[iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)]
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions tests/xtro-sharpie/iOS-UserNotifications.todo

This file was deleted.

1 change: 1 addition & 0 deletions tests/xtro-sharpie/macOS-UserNotifications.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!extra-enum-value! Managed value 128 for UNAuthorizationOptions.Announcement is available for the current platform while the value in the native header is not
6 changes: 0 additions & 6 deletions tests/xtro-sharpie/macOS-UserNotifications.todo

This file was deleted.

1 change: 1 addition & 0 deletions tests/xtro-sharpie/tvOS-UserNotifications.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!extra-enum-value! Managed value 128 for UNAuthorizationOptions.Announcement is available for the current platform while the value in the native header is not
5 changes: 0 additions & 5 deletions tests/xtro-sharpie/tvOS-UserNotifications.todo

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
!extra-enum-value! Managed value 4 for UNNotificationCategoryOptions.HiddenPreviewsShowTitle is available for the current platform while the value in the native header is not
!extra-enum-value! Managed value 8 for UNNotificationCategoryOptions.HiddenPreviewsShowSubtitle is available for the current platform while the value in the native header is not
!missing-selector! UNMutableNotificationContent::filterCriteria not bound
!missing-selector! UNMutableNotificationContent::setFilterCriteria: not bound
!missing-selector! UNNotificationContent::filterCriteria not bound
!missing-enum-value! UNErrorCode native value UNErrorCodeBadgeInputInvalid = 1600 not bound