[healthkit] Update for Xcode 10.2 beta 1 (#5497)
- Fix `CategoryTypeIdentifierTest` for 10.2 APIs
This commit is contained in:
Родитель
aebbe023e0
Коммит
b59b608a7e
|
@ -687,6 +687,10 @@ namespace HealthKit {
|
|||
[Watch (5, 0), iOS (12, 0)]
|
||||
[Export ("CrossTrainerDistance")]
|
||||
HKQuantity CrossTrainerDistance { get; set; }
|
||||
|
||||
[Watch (5, 2), iOS (12, 2)]
|
||||
[Export ("HeartRateEventThreshold")]
|
||||
HKQuantity HeartRateEventThreshold { get; set; }
|
||||
}
|
||||
|
||||
[Watch (2,0)]
|
||||
|
@ -837,6 +841,10 @@ namespace HealthKit {
|
|||
[Watch (5, 0), iOS (12, 0)]
|
||||
[Field ("HKMetadataKeyCrossTrainerDistance")]
|
||||
NSString CrossTrainerDistance { get; }
|
||||
|
||||
[Watch (5, 2), iOS (12, 2)]
|
||||
[Field ("HKMetadataKeyHeartRateEventThreshold")]
|
||||
NSString HeartRateEventThreshold { get; }
|
||||
}
|
||||
|
||||
[Watch (2,0)]
|
||||
|
@ -1740,6 +1748,18 @@ namespace HealthKit {
|
|||
[iOS (10,0), Watch (3,0)]
|
||||
[Field ("HKCategoryTypeIdentifierMindfulSession")]
|
||||
MindfulSession,
|
||||
|
||||
[Watch (5,2), iOS (12,2)]
|
||||
[Field ("HKCategoryTypeIdentifierHighHeartRateEvent")]
|
||||
HighHeartRateEvent,
|
||||
|
||||
[Watch (5,2), iOS (12,2)]
|
||||
[Field ("HKCategoryTypeIdentifierLowHeartRateEvent")]
|
||||
LowHeartRateEvent,
|
||||
|
||||
[Watch (5,2), iOS (12,2)]
|
||||
[Field ("HKCategoryTypeIdentifierIrregularHeartRhythmEvent")]
|
||||
IrregularHeartRhythmEvent,
|
||||
}
|
||||
|
||||
[Watch (2,0)]
|
||||
|
|
|
@ -42,6 +42,12 @@ namespace MonoTouchFixtures.HealthKit {
|
|||
if (!TestRuntime.CheckXcodeVersion (8, 0))
|
||||
continue;
|
||||
break;
|
||||
case HKCategoryTypeIdentifier.HighHeartRateEvent:
|
||||
case HKCategoryTypeIdentifier.LowHeartRateEvent:
|
||||
case HKCategoryTypeIdentifier.IrregularHeartRhythmEvent:
|
||||
if (!TestRuntime.CheckXcodeVersion (10, 2))
|
||||
continue;
|
||||
break;
|
||||
default:
|
||||
if (!TestRuntime.CheckXcodeVersion (7, 0))
|
||||
continue;
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
!missing-field! HKCategoryTypeIdentifierHighHeartRateEvent not bound
|
||||
!missing-field! HKCategoryTypeIdentifierIrregularHeartRhythmEvent not bound
|
||||
!missing-field! HKCategoryTypeIdentifierLowHeartRateEvent not bound
|
||||
!missing-field! HKMetadataKeyHeartRateEventThreshold not bound
|
|
@ -1,4 +0,0 @@
|
|||
!missing-field! HKCategoryTypeIdentifierHighHeartRateEvent not bound
|
||||
!missing-field! HKCategoryTypeIdentifierIrregularHeartRhythmEvent not bound
|
||||
!missing-field! HKCategoryTypeIdentifierLowHeartRateEvent not bound
|
||||
!missing-field! HKMetadataKeyHeartRateEventThreshold not bound
|
Загрузка…
Ссылка в новой задаче