[cloudkit] Remove obsoleted properties (#11909)

Their usage can cause app store rejections.
This commit is contained in:
Sebastien Pouliot 2021-06-14 09:22:32 -04:00 коммит произвёл GitHub
Родитель 728c4030c3
Коммит 51ba9f353b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 27 добавлений и 13 удалений

Просмотреть файл

@ -3,6 +3,7 @@
#if !COREBUILD
using System;
using System.Runtime.Versioning;
using System.Threading.Tasks;
#if MONOMAC || IOS
@ -137,6 +138,32 @@ namespace CloudKit {
[iOS (9,0)][Mac (10,11)]
[Obsolete ("Empty stub (not public API).")]
public virtual CNContact DisplayContact { get; }
#if NET
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("macos12.0")]
#else
[Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'DisplayContact.GivenName'.")]
[Deprecated (PlatformName.iOS, 9, 0, message : "Use 'DisplayContact.GivenName'.")]
[Obsoleted (PlatformName.MacOSX, 12, 0, message : "Use 'DisplayContact.GivenName'.")]
[Obsoleted (PlatformName.iOS, 15, 0, message : "Use 'DisplayContact.GivenName'.")]
#endif
public virtual string FirstName {
get { return null; }
}
#if NET
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("macos12.0")]
#else
[Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'DisplayContact.FamilyName'.")]
[Deprecated (PlatformName.iOS, 9, 0, message : "Use 'DisplayContact.FamilyName'.")]
[Obsoleted (PlatformName.MacOSX, 12, 0, message : "Use 'DisplayContact.GivenName'.")]
[Obsoleted (PlatformName.iOS, 15, 0, message : "Use 'DisplayContact.GivenName'.")]
#endif
public virtual string LastName {
get { return null; }
}
}
#endif

Просмотреть файл

@ -430,19 +430,6 @@ namespace CloudKit {
[NullAllowed]
[Export ("userRecordID", ArgumentSemantic.Copy)]
CKRecordID UserRecordId { get; }
[Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'DisplayContact.GivenName'.")]
[Deprecated (PlatformName.iOS, 9, 0, message : "Use 'DisplayContact.GivenName'.")]
[NullAllowed]
[Export ("firstName", ArgumentSemantic.Copy)]
string FirstName { get; }
[Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'DisplayContact.FamilyName'.")]
[Deprecated (PlatformName.iOS, 9, 0, message : "Use 'DisplayContact.FamilyName'.")]
[NullAllowed]
[Export ("lastName", ArgumentSemantic.Copy)]
string LastName { get; }
}
// CKError.h Fields