-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CloudKit] Implement Xcode 16.0 beta 1-6 changes. (#20861)
The bindings that have been removed haven't fully been removed from the headers, but it looks like they will be soon. These bindings have also been deprecated since before the earliest OS versions we support, so there should be no need to keep them around. Removing them preemptively also lessens the risk of running into App Store rejections in the future. A few tests changes were needed to ignore the newly obsoleted/hidden APIs. Note: there were no changes in beta 2, beta 3, beta 4, beta 5 or beta 6.
- Loading branch information
1 parent
6016b2c
commit f3a7879
Showing
21 changed files
with
325 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
#if !XAMCORE_5_0 | ||
|
||
using System; | ||
using System.ComponentModel; | ||
using System.Runtime.Versioning; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
#if !NET | ||
using NativeHandle = System.IntPtr; | ||
#endif | ||
|
||
namespace CloudKit { | ||
[Register ("CKFetchNotificationChangesOperation", SkipRegistration = true)] | ||
#if NET | ||
[UnsupportedOSPlatform ("ios", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
[UnsupportedOSPlatform ("macos", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
[UnsupportedOSPlatform ("tvos", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
[UnsupportedOSPlatform ("maccatalyst", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
#else | ||
[Obsolete ("Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
#endif | ||
[EditorBrowsable (EditorBrowsableState.Never)] | ||
public unsafe partial class CKFetchNotificationChangesOperation : CKOperation { | ||
public override NativeHandle ClassHandle { get => throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); } | ||
|
||
protected CKFetchNotificationChangesOperation (NSObjectFlag t) : base (t) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
protected internal CKFetchNotificationChangesOperation (NativeHandle handle) : base (handle) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
public CKFetchNotificationChangesOperation () | ||
: base (NSObjectFlag.Empty) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
public CKFetchNotificationChangesOperation (CKServerChangeToken? previousServerChangeToken) | ||
: base (NSObjectFlag.Empty) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
public unsafe virtual global::System.Action<CKServerChangeToken, NSError>? Completed { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
|
||
public virtual bool MoreComing { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
|
||
public unsafe virtual global::System.Action<CKNotification>? NotificationChanged { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
|
||
public virtual CKServerChangeToken? PreviousServerChangeToken { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
|
||
public virtual nuint ResultsLimit { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
} /* class CKFetchNotificationChangesOperation */ | ||
} | ||
|
||
#endif // !XAMCORE_5_0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#if !XAMCORE_5_0 | ||
|
||
using System; | ||
using System.ComponentModel; | ||
using System.Runtime.Versioning; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
#if !NET | ||
using NativeHandle = System.IntPtr; | ||
#endif | ||
|
||
namespace CloudKit { | ||
[Register ("CKMarkNotificationsReadOperation", SkipRegistration = true)] | ||
#if NET | ||
[UnsupportedOSPlatform ("ios", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
[UnsupportedOSPlatform ("macos", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
[UnsupportedOSPlatform ("tvos", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
[UnsupportedOSPlatform ("maccatalyst", "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] | ||
#endif | ||
[EditorBrowsable (EditorBrowsableState.Never)] | ||
public unsafe partial class CKMarkNotificationsReadOperation : CKOperation { | ||
public override NativeHandle ClassHandle { get => throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); } | ||
|
||
protected CKMarkNotificationsReadOperation (NSObjectFlag t) : base (t) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
protected internal CKMarkNotificationsReadOperation (NativeHandle handle) : base (handle) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
public CKMarkNotificationsReadOperation (CKNotificationID [] notificationIds) | ||
: base (NSObjectFlag.Empty) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
public unsafe virtual CKMarkNotificationsReadHandler? Completed { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
|
||
public virtual CKNotificationID []? NotificationIds { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
} /* class CKMarkNotificationsReadOperation */ | ||
|
||
[EditorBrowsable (EditorBrowsableState.Never)] | ||
public delegate void CKMarkNotificationsReadHandler (CKNotificationID [] notificationIDsMarkedRead, NSError operationError); | ||
} | ||
#endif // !XAMCORE_5_0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#if !XAMCORE_5_0 | ||
|
||
using System; | ||
using System.ComponentModel; | ||
using System.Runtime.Versioning; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
#if !NET | ||
using NativeHandle = System.IntPtr; | ||
#endif | ||
|
||
namespace CloudKit { | ||
[Register ("CKModifyBadgeOperation", SkipRegistration = true)] | ||
#if NET | ||
[UnsupportedOSPlatform ("ios", "Modifying badge counts is no longer supported.")] | ||
[UnsupportedOSPlatform ("macos", "Modifying badge counts is no longer supported.")] | ||
[UnsupportedOSPlatform ("tvos", "Modifying badge counts is no longer supported.")] | ||
[UnsupportedOSPlatform ("maccatalyst", "Modifying badge counts is no longer supported.")] | ||
#else | ||
[Deprecated (PlatformName.MacOSX, 15, 0, message: "Modifying badge counts is no longer supported.")] | ||
[Deprecated (PlatformName.iOS, 18, 0, message: "Modifying badge counts is no longer supported.")] | ||
[Deprecated (PlatformName.WatchOS, 11, 0, message: "Modifying badge counts is no longer supported.")] | ||
[Deprecated (PlatformName.TvOS, 18, 0, message: "Modifying badge counts is no longer supported.")] | ||
#endif | ||
[EditorBrowsable (EditorBrowsableState.Never)] | ||
public class CKModifyBadgeOperation : CKOperation { | ||
public override NativeHandle ClassHandle { get => throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); } | ||
|
||
public CKModifyBadgeOperation () : base (NSObjectFlag.Empty) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
protected CKModifyBadgeOperation (NSObjectFlag t) : base (t) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
protected internal CKModifyBadgeOperation (NativeHandle handle) : base (handle) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
public CKModifyBadgeOperation (nuint badgeValue) | ||
: base (NSObjectFlag.Empty) | ||
{ | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
|
||
public virtual nuint BadgeValue { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
|
||
public unsafe virtual global::System.Action<NSError>? Completed { | ||
get { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
set { | ||
throw new PlatformNotSupportedException (Constants.TypeRemovedAllPlatforms); | ||
} | ||
} | ||
} /* class CKModifyBadgeOperation */ | ||
} | ||
#endif // !XAMCORE_5_0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.