[healthkit] Update for Xcode 10.2 beta 1 (#5497)

- Fix `CategoryTypeIdentifierTest` for 10.2 APIs
This commit is contained in:
Vincent Dondain 2019-01-29 13:07:48 -05:00 коммит произвёл GitHub
Родитель aebbe023e0
Коммит b59b608a7e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 26 добавлений и 8 удалений

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

@ -687,6 +687,10 @@ namespace HealthKit {
[Watch (5, 0), iOS (12, 0)] [Watch (5, 0), iOS (12, 0)]
[Export ("CrossTrainerDistance")] [Export ("CrossTrainerDistance")]
HKQuantity CrossTrainerDistance { get; set; } HKQuantity CrossTrainerDistance { get; set; }
[Watch (5, 2), iOS (12, 2)]
[Export ("HeartRateEventThreshold")]
HKQuantity HeartRateEventThreshold { get; set; }
} }
[Watch (2,0)] [Watch (2,0)]
@ -837,6 +841,10 @@ namespace HealthKit {
[Watch (5, 0), iOS (12, 0)] [Watch (5, 0), iOS (12, 0)]
[Field ("HKMetadataKeyCrossTrainerDistance")] [Field ("HKMetadataKeyCrossTrainerDistance")]
NSString CrossTrainerDistance { get; } NSString CrossTrainerDistance { get; }
[Watch (5, 2), iOS (12, 2)]
[Field ("HKMetadataKeyHeartRateEventThreshold")]
NSString HeartRateEventThreshold { get; }
} }
[Watch (2,0)] [Watch (2,0)]
@ -1740,6 +1748,18 @@ namespace HealthKit {
[iOS (10,0), Watch (3,0)] [iOS (10,0), Watch (3,0)]
[Field ("HKCategoryTypeIdentifierMindfulSession")] [Field ("HKCategoryTypeIdentifierMindfulSession")]
MindfulSession, 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)] [Watch (2,0)]

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

@ -42,6 +42,12 @@ namespace MonoTouchFixtures.HealthKit {
if (!TestRuntime.CheckXcodeVersion (8, 0)) if (!TestRuntime.CheckXcodeVersion (8, 0))
continue; continue;
break; break;
case HKCategoryTypeIdentifier.HighHeartRateEvent:
case HKCategoryTypeIdentifier.LowHeartRateEvent:
case HKCategoryTypeIdentifier.IrregularHeartRhythmEvent:
if (!TestRuntime.CheckXcodeVersion (10, 2))
continue;
break;
default: default:
if (!TestRuntime.CheckXcodeVersion (7, 0)) if (!TestRuntime.CheckXcodeVersion (7, 0))
continue; 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