[MetricKit] Add availability attributes to MXMetaData.DictionaryRepresentation. (#17294)

This commit is contained in:
Rolf Bjarne Kvinge 2023-01-20 07:52:20 +01:00 коммит произвёл GitHub
Родитель 6095fb3d0f
Коммит 9016b2273f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -1,4 +1,4 @@
#if IOS
#if IOS || __MACCATALYST__
#nullable enable
@ -12,6 +12,15 @@ namespace MetricKit {
public partial class MXMetaData {
#if NET
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[SupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("tvos")]
#else
[Introduced (PlatformName.iOS, 14, 0)]
[Introduced (PlatformName.MacOSX, 12, 0)]
#endif
public virtual NSDictionary DictionaryRepresentation {
get {
if (SystemVersion.CheckiOS (14,0))