Skip to content
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
4 changes: 4 additions & 0 deletions src/healthkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3763,6 +3763,10 @@ enum HKCategoryTypeIdentifier {
[iOS (18, 0), MacCatalyst (18, 0), Mac (15, 0)]
[Field ("HKCategoryTypeIdentifierSleepApneaEvent")]
SleepApneaEvent,

[MacCatalyst (26, 2), Mac (26, 2), iOS (26, 2)]
[Field ("HKCategoryTypeIdentifierHypertensionEvent")]
HypertensionEvent,
}

/// <summary>Enumerates the forms of <see cref="HealthKit.HKCharacteristicType" />.</summary>
Expand Down
1 change: 1 addition & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3633,6 +3633,7 @@ F:HealthKit.HKCategoryTypeIdentifier.Headache
F:HealthKit.HKCategoryTypeIdentifier.HeadphoneAudioExposureEvent
F:HealthKit.HKCategoryTypeIdentifier.Heartburn
F:HealthKit.HKCategoryTypeIdentifier.HotFlashes
F:HealthKit.HKCategoryTypeIdentifier.HypertensionEvent
F:HealthKit.HKCategoryTypeIdentifier.InfrequentMenstrualCycles
F:HealthKit.HKCategoryTypeIdentifier.IrregularMenstrualCycles
F:HealthKit.HKCategoryTypeIdentifier.Lactation
Expand Down
20 changes: 20 additions & 0 deletions tests/common/TestRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,26 @@ public static bool CheckXcodeVersion (int major, int minor, int build = 0)
return CheckMacSystemVersion (26, 0);
#else
throw new NotImplementedException ($"Missing platform case for Xcode {major}.{minor}");
#endif
case 1:
#if __TVOS__
return ChecktvOSSystemVersion (26, 1);
#elif __IOS__
return CheckiOSSystemVersion (26, 1);
#elif MONOMAC
return CheckMacSystemVersion (26, 1);
#else
throw new NotImplementedException ($"Missing platform case for Xcode {major}.{minor}");
#endif
case 2:
#if __TVOS__
return ChecktvOSSystemVersion (26, 2);
#elif __IOS__
return CheckiOSSystemVersion (26, 2);
#elif MONOMAC
return CheckMacSystemVersion (26, 2);
#else
throw new NotImplementedException ($"Missing platform case for Xcode {major}.{minor}");
#endif
default:
throw new NotImplementedException ($"Missing version logic for checking for Xcode {major}.{minor}");
Expand Down
4 changes: 4 additions & 0 deletions tests/monotouch-test/HealthKit/CategoryTypeIdentifierTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ public void EnumValues_22351 ()
if (!TestRuntime.CheckXcodeVersion (16, 0))
continue;
break;
case HKCategoryTypeIdentifier.HypertensionEvent:
if (!TestRuntime.CheckXcodeVersion (26, 2))
continue;
break;
default:
if (!TestRuntime.CheckXcodeVersion (7, 0))
continue;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading