Skip to content

Commit 062eca7

Browse files
authored
[xcode26.2] Update HealthKit bindings to Xcode 26.2 Beta 2 (#24307)
1 parent 76bef96 commit 062eca7

File tree

7 files changed

+29
-3
lines changed

7 files changed

+29
-3
lines changed

src/healthkit.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,6 +3763,10 @@ enum HKCategoryTypeIdentifier {
37633763
[iOS (18, 0), MacCatalyst (18, 0), Mac (15, 0)]
37643764
[Field ("HKCategoryTypeIdentifierSleepApneaEvent")]
37653765
SleepApneaEvent,
3766+
3767+
[MacCatalyst (26, 2), Mac (26, 2), iOS (26, 2)]
3768+
[Field ("HKCategoryTypeIdentifierHypertensionEvent")]
3769+
HypertensionEvent,
37663770
}
37673771

37683772
/// <summary>Enumerates the forms of <see cref="HealthKit.HKCharacteristicType" />.</summary>

tests/cecil-tests/Documentation.KnownFailures.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3633,6 +3633,7 @@ F:HealthKit.HKCategoryTypeIdentifier.Headache
36333633
F:HealthKit.HKCategoryTypeIdentifier.HeadphoneAudioExposureEvent
36343634
F:HealthKit.HKCategoryTypeIdentifier.Heartburn
36353635
F:HealthKit.HKCategoryTypeIdentifier.HotFlashes
3636+
F:HealthKit.HKCategoryTypeIdentifier.HypertensionEvent
36363637
F:HealthKit.HKCategoryTypeIdentifier.InfrequentMenstrualCycles
36373638
F:HealthKit.HKCategoryTypeIdentifier.IrregularMenstrualCycles
36383639
F:HealthKit.HKCategoryTypeIdentifier.Lactation

tests/common/TestRuntime.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,26 @@ public static bool CheckXcodeVersion (int major, int minor, int build = 0)
459459
return CheckMacSystemVersion (26, 0);
460460
#else
461461
throw new NotImplementedException ($"Missing platform case for Xcode {major}.{minor}");
462+
#endif
463+
case 1:
464+
#if __TVOS__
465+
return ChecktvOSSystemVersion (26, 1);
466+
#elif __IOS__
467+
return CheckiOSSystemVersion (26, 1);
468+
#elif MONOMAC
469+
return CheckMacSystemVersion (26, 1);
470+
#else
471+
throw new NotImplementedException ($"Missing platform case for Xcode {major}.{minor}");
472+
#endif
473+
case 2:
474+
#if __TVOS__
475+
return ChecktvOSSystemVersion (26, 2);
476+
#elif __IOS__
477+
return CheckiOSSystemVersion (26, 2);
478+
#elif MONOMAC
479+
return CheckMacSystemVersion (26, 2);
480+
#else
481+
throw new NotImplementedException ($"Missing platform case for Xcode {major}.{minor}");
462482
#endif
463483
default:
464484
throw new NotImplementedException ($"Missing version logic for checking for Xcode {major}.{minor}");

tests/monotouch-test/HealthKit/CategoryTypeIdentifierTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ public void EnumValues_22351 ()
131131
if (!TestRuntime.CheckXcodeVersion (16, 0))
132132
continue;
133133
break;
134+
case HKCategoryTypeIdentifier.HypertensionEvent:
135+
if (!TestRuntime.CheckXcodeVersion (26, 2))
136+
continue;
137+
break;
134138
default:
135139
if (!TestRuntime.CheckXcodeVersion (7, 0))
136140
continue;

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.todo

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)