diff --git a/src/HealthKit/Enums.cs b/src/HealthKit/Enums.cs index 8460de8d96ad..0f99abe8f0d7 100644 --- a/src/HealthKit/Enums.cs +++ b/src/HealthKit/Enums.cs @@ -305,6 +305,8 @@ public enum HKWorkoutActivityType : ulong { SwimBikeRun = 82, [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] Transition = 83, + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0), NoTV] + UnderwaterDiving, [MacCatalyst (13, 1)] Other = 3000 } @@ -721,4 +723,34 @@ public enum HKVisionPrescriptionType : ulong { Glasses = 1, Contacts, } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Native] + public enum HKCyclingFunctionalThresholdPowerTestType : long { + MaxExercise60Minute = 1, + MaxExercise20Minute, + RampTest, + PredictionExercise, + } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Native] + public enum HKPhysicalEffortEstimationType : long { + ActivityLookup = 1, + DeviceSensed, + } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Native] + public enum HKWaterSalinity : long { + FreshWater = 1, + SaltWater, + } + + [Watch (10, 0), iOS (17, 0)] + [Native] + public enum HKWorkoutSessionType : long { + Primary = 0, + Mirrored, + } } diff --git a/src/healthkit.cs b/src/healthkit.cs index 17b13edf26db..97f527dcf59a 100644 --- a/src/healthkit.cs +++ b/src/healthkit.cs @@ -49,6 +49,9 @@ public enum HKErrorCode : long { UserExitedWorkoutSession, RequiredAuthorizationDenied, NoData, + WorkoutActivityNotAllowed, + DataSizeExceeded, + BackgroundWorkoutSessionNotAllowed, } [Mac (13, 0)] @@ -60,9 +63,9 @@ public enum HKWorkoutSessionLocationType : long { Outdoor } - [NoiOS] + [iOS (17, 0)] [Mac (13, 0)] - [NoMacCatalyst] + [MacCatalyst (17, 0)] [Native] public enum HKWorkoutSessionState : long { NotStarted = 1, @@ -717,6 +720,10 @@ interface HKHealthStore { // HKWorkout category + [Deprecated (PlatformName.iOS, 17, 0, message: "Use 'HKWorkoutBuilder.Add (HKSample [] samples, HKWorkoutBuilderCompletionHandler completionHandler)' instead.")] + [Deprecated (PlatformName.WatchOS, 10, 0, message: "Use 'HKWorkoutBuilder.Add (HKSample [] samples, HKWorkoutBuilderCompletionHandler completionHandler)' instead.")] + [Deprecated (PlatformName.MacCatalyst, 16, 0, message: "Use 'HKWorkoutBuilder.Add (HKSample [] samples, HKWorkoutBuilderCompletionHandler completionHandler)' instead.")] + [Deprecated (PlatformName.MacOSX, 14, 0, message: "Use 'HKWorkoutBuilder.Add (HKSample [] samples, HKWorkoutBuilderCompletionHandler completionHandler)' instead.")] [Export ("addSamples:toWorkout:completion:")] void AddSamples (HKSample [] samples, HKWorkout workout, HKStoreSampleAddedCallback callback); @@ -784,6 +791,11 @@ interface HKHealthStore { [Async] [Export ("requestPerObjectReadAuthorizationForType:predicate:completion:")] void RequestPerObjectReadAuthorization (HKObjectType objectType, [NullAllowed] NSPredicate predicate, HKHealthStoreCompletionHandler completion); + + [NullAllowed] + [iOS (17, 0), Mac (14, 0), Watch (10, 0), NoTV, MacCatalyst (17, 0)] + [Export ("workoutSessionMirroringStartHandler", ArgumentSemantic.Copy)] + Action WorkoutSessionMirroringStartHandler { get; set; } } delegate void HKStoreSampleAddedCallback (bool success, NSError error); @@ -1233,6 +1245,30 @@ interface HKMetadataKey { [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("HKMetadataKeyUserMotionContext")] NSString UserMotionContext { get; } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKMetadataKeyActivityType")] + NSString KeyActivityType { get; } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKMetadataKeyPhysicalEffortEstimationType")] + NSString PhysicalEffortEstimationType { get; } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKMetadataKeyAppleFitnessPlusSession")] + NSString AppleFitnessPlusSession { get; } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKMetadataKeyCyclingFunctionalThresholdPowerTestType")] + NSString CyclingFunctionalThresholdPowerTestType { get; } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKMetadataKeyMaximumLightIntensity")] + NSString MaximumLightIntensity { get; } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKMetadataKeyWaterSalinity")] + NSString WaterSalinity { get; } } [Mac (13, 0)] @@ -2390,6 +2426,34 @@ enum HKQuantityTypeIdentifier { [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("HKQuantityTypeIdentifierWaterTemperature")] WaterTemperature, + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKQuantityTypeIdentifierCyclingCadence")] + CyclingCadence, + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKQuantityTypeIdentifierCyclingFunctionalThresholdPower")] + CyclingFunctionalThresholdPower, + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKQuantityTypeIdentifierCyclingPower")] + CyclingPower, + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKQuantityTypeIdentifierCyclingSpeed")] + CyclingSpeed, + + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] + [Field ("HKQuantityTypeIdentifierEnvironmentalSoundReduction")] + EnvironmentalSoundReduction, + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKQuantityTypeIdentifierPhysicalEffort")] + PhysicalEffort, + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("HKQuantityTypeIdentifierTimeInDaylight")] + TimeInDaylight, } [Mac (13, 0)] @@ -3099,6 +3163,16 @@ interface HKUnit : NSCopying, NSSecureCoding { [Static] [Export ("degreeAngleUnit")] HKUnit DegreeAngle { get; } + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0), NoTV] + [Static] + [Export ("luxUnitWithMetricPrefix:")] + HKUnit CreateLux (HKMetricPrefix prefix); + + [Watch (10, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0), NoTV] + [Static] + [Export ("luxUnit")] + HKUnit Lux { get; } } [Mac (13, 0)] @@ -3477,10 +3551,9 @@ interface HKQueryAnchor : NSSecureCoding, NSCopying { HKQueryAnchor Create (nuint value); } - - [NoiOS] [Mac (13, 0)] - [NoMacCatalyst] + [iOS (17, 0)] + [MacCatalyst (17, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKWorkoutSession : NSSecureCoding { @@ -3492,7 +3565,6 @@ interface HKWorkoutSession : NSSecureCoding { [Export ("locationType")] HKWorkoutSessionLocationType LocationType { get; } - [NoMacCatalyst] [Export ("workoutConfiguration", ArgumentSemantic.Copy)] HKWorkoutConfiguration WorkoutConfiguration { get; } @@ -3513,71 +3585,89 @@ interface HKWorkoutSession : NSSecureCoding { [NullAllowed, Export ("endDate")] NSDate EndDate { get; } + [NoiOS] + [NoMacCatalyst] [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use HKWorkoutSession (HKHealthStore, HKWorkoutConfiguration, out NSError) instead.")] [Export ("initWithActivityType:locationType:")] NativeHandle Constructor (HKWorkoutActivityType activityType, HKWorkoutSessionLocationType locationType); - [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use HKWorkoutSession (HKHealthStore, HKWorkoutConfiguration, out NSError) instead.")] + [NoiOS] [NoMacCatalyst] + [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use HKWorkoutSession (HKHealthStore, HKWorkoutConfiguration, out NSError) instead.")] [Export ("initWithConfiguration:error:")] NativeHandle Constructor (HKWorkoutConfiguration workoutConfiguration, out NSError error); + [NoiOS] [Watch (5, 0)] [NoMacCatalyst] [Export ("initWithHealthStore:configuration:error:")] NativeHandle Constructor (HKHealthStore healthStore, HKWorkoutConfiguration workoutConfiguration, [NullAllowed] out NSError error); [Watch (5, 0)] - [NoMacCatalyst] [Export ("prepare")] void Prepare (); [Watch (5, 0)] - [NoMacCatalyst] [Export ("startActivityWithDate:")] void StartActivity ([NullAllowed] NSDate date); [Watch (5, 0)] - [NoMacCatalyst] [Export ("stopActivityWithDate:")] void StopActivity ([NullAllowed] NSDate date); [Watch (5, 0)] - [NoMacCatalyst] [Export ("end")] void End (); [Watch (5, 0)] - [NoMacCatalyst] [Export ("pause")] void Pause (); [Watch (5, 0)] - [NoMacCatalyst] [Export ("resume")] void Resume (); + [NoiOS] [Watch (5, 0)] [NoMacCatalyst] [Export ("associatedWorkoutBuilder")] HKLiveWorkoutBuilder AssociatedWorkoutBuilder { get; } - [Watch (9, 0), NoTV, NoiOS, NoMacCatalyst] + [Watch (9, 0), NoTV] [Export ("beginNewActivityWithConfiguration:date:metadata:")] void BeginNewActivity (HKWorkoutConfiguration workoutConfiguration, NSDate date, [NullAllowed] NSDictionary metadata); - [Watch (9, 0), NoTV, NoiOS, NoMacCatalyst] + [Watch (9, 0), NoTV] [Export ("endCurrentActivityOnDate:")] void EndCurrentActivity (NSDate date); - [Watch (9, 0), NoTV, NoiOS, NoMacCatalyst] + [Watch (9, 0), NoTV] [Export ("currentActivity", ArgumentSemantic.Copy)] HKWorkoutActivity CurrentActivity { get; } + + [Watch (10, 0), NoTV, Mac (14, 0)] + [Export ("type")] + HKWorkoutSessionType Type { get; } + + [Watch (10, 0), NoTV, NoMacCatalyst, NoMac, iOS (17, 0)] + [Export ("sendDataToRemoteWorkoutSession:completion:")] + [Async] + void SendDataToRemoteWorkoutSession (NSData data, Action completion); + + [Watch (10, 0), NoTV, NoMacCatalyst, NoMac, NoiOS] + [Export ("startMirroringToCompanionDeviceWithCompletion:")] + [Async] + void StartMirroringToCompanionDevice (Action completion); + + [Watch (10, 0), NoTV, NoMacCatalyst, NoMac, NoiOS] + [Export ("stopMirroringToCompanionDeviceWithCompletion:")] + [Async] + void StopMirroringToCompanionDevice (Action completion); } - [NoiOS] [Mac (13, 0)] - [NoMacCatalyst] + [iOS (17, 0)] + [MacCatalyst (17, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface HKWorkoutSessionDelegate { @@ -3589,18 +3679,25 @@ interface HKWorkoutSessionDelegate { [Export ("workoutSession:didFailWithError:")] void DidFail (HKWorkoutSession workoutSession, NSError error); - [NoMacCatalyst] // // Issue filed at: https://github.com/xamarin/maccore/issues/2609 [Export ("workoutSession:didGenerateEvent:")] void DidGenerateEvent (HKWorkoutSession workoutSession, HKWorkoutEvent @event); - [Watch (9, 0), NoiOS, NoTV, Mac (13, 0), NoMacCatalyst] + [Watch (9, 0), NoTV, Mac (13, 0)] [Export ("workoutSession:didBeginActivityWithConfiguration:date:")] void DidBeginActivity (HKWorkoutSession workoutSession, HKWorkoutConfiguration workoutConfiguration, NSDate date); - [Watch (9, 0), NoiOS, NoTV, Mac (13, 0), NoMacCatalyst] + [Watch (9, 0), NoTV, Mac (13, 0)] [Export ("workoutSession:didEndActivityWithConfiguration:date:")] void DidEndActivity (HKWorkoutSession workoutSession, HKWorkoutConfiguration workoutConfiguration, NSDate date); + + [Watch (10, 0), iOS (17, 0), MacCatalyst (17, 0), NoTV, Mac (14, 0)] + [Export ("workoutSession:didReceiveDataFromRemoteWorkoutSession:")] + void DidReceiveData (HKWorkoutSession workoutSession, NSData [] data); + + [Watch (10, 0), iOS (17, 0), MacCatalyst (17, 0), NoTV, Mac (14, 0)] + [Export ("workoutSession:didDisconnectFromRemoteDeviceWithError:")] + void DidDisconnect (HKWorkoutSession workoutSession, [NullAllowed] NSError error); } [Mac (13, 0)] diff --git a/tests/introspection/iOS/iOSApiSelectorTest.cs b/tests/introspection/iOS/iOSApiSelectorTest.cs index eb10e94684e4..e6f7f328826a 100644 --- a/tests/introspection/iOS/iOSApiSelectorTest.cs +++ b/tests/introspection/iOS/iOSApiSelectorTest.cs @@ -438,6 +438,14 @@ protected override bool CheckResponse (bool value, Type actualType, MethodBase m break; } break; + case "HKHealthStore": + switch (name) { + case "workoutSessionMirroringStartHandler": + if (TestRuntime.IsSimulatorOrDesktop) + return true; + break; + } + break; #endif #if __WATCHOS__ case "INUserContext": @@ -448,6 +456,14 @@ protected override bool CheckResponse (bool value, Type actualType, MethodBase m break; } break; + case "HKHealthStore": + switch (name) { + case "workoutSessionMirroringStartHandler": + if (TestRuntime.IsSimulatorOrDesktop) + return true; + break; + } + break; #endif break; } diff --git a/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs b/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs index fdff8a53edd4..d3e56f2e5a29 100644 --- a/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs +++ b/tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs @@ -115,6 +115,16 @@ public void EnumValues_22351 () if (!TestRuntime.CheckXcodeVersion (14, 1)) continue; break; + case HKQuantityTypeIdentifier.CyclingCadence: + case HKQuantityTypeIdentifier.CyclingFunctionalThresholdPower: + case HKQuantityTypeIdentifier.CyclingPower: + case HKQuantityTypeIdentifier.CyclingSpeed: + case HKQuantityTypeIdentifier.EnvironmentalSoundReduction: + case HKQuantityTypeIdentifier.PhysicalEffort: + case HKQuantityTypeIdentifier.TimeInDaylight: + if (!TestRuntime.CheckXcodeVersion (15, 0)) + continue; + break; } try { diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo deleted file mode 100644 index bb2e33a2863c..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo +++ /dev/null @@ -1,48 +0,0 @@ -!deprecated-attribute-missing! HKHealthStore::addSamples:toWorkout:completion: missing a [Deprecated] attribute -!missing-enum! HKCyclingFunctionalThresholdPowerTestType not bound -!missing-enum! HKPhysicalEffortEstimationType not bound -!missing-enum! HKWaterSalinity not bound -!missing-enum! HKWorkoutSessionState not bound -!missing-enum! HKWorkoutSessionType not bound -!missing-enum-value! HKErrorCode native value HKErrorDataSizeExceeded = 13 not bound -!missing-enum-value! HKErrorCode native value HKErrorWorkoutActivityNotAllowed = 12 not bound -!missing-enum-value! HKWorkoutActivityType native value HKWorkoutActivityTypeUnderwaterDiving = 84 not bound -!missing-field! HKMetadataKeyActivityType not bound -!missing-field! HKMetadataKeyAppleFitnessPlusSession not bound -!missing-field! HKMetadataKeyCyclingFunctionalThresholdPowerTestType not bound -!missing-field! HKMetadataKeyMaximumLightIntensity not bound -!missing-field! HKMetadataKeyPhysicalEffortEstimationType not bound -!missing-field! HKMetadataKeyWaterSalinity not bound -!missing-field! HKQuantityTypeIdentifierCyclingCadence not bound -!missing-field! HKQuantityTypeIdentifierCyclingFunctionalThresholdPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingSpeed not bound -!missing-field! HKQuantityTypeIdentifierEnvironmentalSoundReduction not bound -!missing-field! HKQuantityTypeIdentifierPhysicalEffort not bound -!missing-field! HKQuantityTypeIdentifierTimeInDaylight not bound -!missing-protocol! HKWorkoutSessionDelegate not bound -!missing-selector! +HKUnit::luxUnit not bound -!missing-selector! +HKUnit::luxUnitWithMetricPrefix: not bound -!missing-selector! HKHealthStore::setWorkoutSessionMirroringStartHandler: not bound -!missing-selector! HKHealthStore::workoutSessionMirroringStartHandler not bound -!missing-selector! HKWorkoutSession::activityType not bound -!missing-selector! HKWorkoutSession::beginNewActivityWithConfiguration:date:metadata: not bound -!missing-selector! HKWorkoutSession::currentActivity not bound -!missing-selector! HKWorkoutSession::delegate not bound -!missing-selector! HKWorkoutSession::end not bound -!missing-selector! HKWorkoutSession::endCurrentActivityOnDate: not bound -!missing-selector! HKWorkoutSession::endDate not bound -!missing-selector! HKWorkoutSession::locationType not bound -!missing-selector! HKWorkoutSession::pause not bound -!missing-selector! HKWorkoutSession::prepare not bound -!missing-selector! HKWorkoutSession::resume not bound -!missing-selector! HKWorkoutSession::sendDataToRemoteWorkoutSession:completion: not bound -!missing-selector! HKWorkoutSession::setDelegate: not bound -!missing-selector! HKWorkoutSession::startActivityWithDate: not bound -!missing-selector! HKWorkoutSession::startDate not bound -!missing-selector! HKWorkoutSession::state not bound -!missing-selector! HKWorkoutSession::stopActivityWithDate: not bound -!missing-selector! HKWorkoutSession::type not bound -!missing-selector! HKWorkoutSession::workoutConfiguration not bound -!missing-type! HKWorkoutSession not bound -!missing-enum-value! HKErrorCode native value HKErrorBackgroundWorkoutSessionNotAllowed = 14 not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo deleted file mode 100644 index 52e0510278b0..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo +++ /dev/null @@ -1,28 +0,0 @@ -!missing-enum! HKCyclingFunctionalThresholdPowerTestType not bound -!missing-enum! HKPhysicalEffortEstimationType not bound -!missing-enum! HKWaterSalinity not bound -!missing-enum! HKWorkoutSessionType not bound -!missing-enum-value! HKErrorCode native value HKErrorDataSizeExceeded = 13 not bound -!missing-enum-value! HKErrorCode native value HKErrorWorkoutActivityNotAllowed = 12 not bound -!missing-enum-value! HKWorkoutActivityType native value HKWorkoutActivityTypeUnderwaterDiving = 84 not bound -!missing-field! HKMetadataKeyActivityType not bound -!missing-field! HKMetadataKeyAppleFitnessPlusSession not bound -!missing-field! HKMetadataKeyCyclingFunctionalThresholdPowerTestType not bound -!missing-field! HKMetadataKeyMaximumLightIntensity not bound -!missing-field! HKMetadataKeyPhysicalEffortEstimationType not bound -!missing-field! HKMetadataKeyWaterSalinity not bound -!missing-field! HKQuantityTypeIdentifierCyclingCadence not bound -!missing-field! HKQuantityTypeIdentifierCyclingFunctionalThresholdPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingSpeed not bound -!missing-field! HKQuantityTypeIdentifierEnvironmentalSoundReduction not bound -!missing-field! HKQuantityTypeIdentifierPhysicalEffort not bound -!missing-field! HKQuantityTypeIdentifierTimeInDaylight not bound -!missing-protocol-member! HKWorkoutSessionDelegate::workoutSession:didDisconnectFromRemoteDeviceWithError: not found -!missing-protocol-member! HKWorkoutSessionDelegate::workoutSession:didReceiveDataFromRemoteWorkoutSession: not found -!missing-selector! +HKUnit::luxUnit not bound -!missing-selector! +HKUnit::luxUnitWithMetricPrefix: not bound -!missing-selector! HKHealthStore::setWorkoutSessionMirroringStartHandler: not bound -!missing-selector! HKHealthStore::workoutSessionMirroringStartHandler not bound -!missing-selector! HKWorkoutSession::type not bound -!missing-enum-value! HKErrorCode native value HKErrorBackgroundWorkoutSessionNotAllowed = 14 not bound diff --git a/tests/xtro-sharpie/iOS-HealthKit.todo b/tests/xtro-sharpie/iOS-HealthKit.todo deleted file mode 100644 index bb2e33a2863c..000000000000 --- a/tests/xtro-sharpie/iOS-HealthKit.todo +++ /dev/null @@ -1,48 +0,0 @@ -!deprecated-attribute-missing! HKHealthStore::addSamples:toWorkout:completion: missing a [Deprecated] attribute -!missing-enum! HKCyclingFunctionalThresholdPowerTestType not bound -!missing-enum! HKPhysicalEffortEstimationType not bound -!missing-enum! HKWaterSalinity not bound -!missing-enum! HKWorkoutSessionState not bound -!missing-enum! HKWorkoutSessionType not bound -!missing-enum-value! HKErrorCode native value HKErrorDataSizeExceeded = 13 not bound -!missing-enum-value! HKErrorCode native value HKErrorWorkoutActivityNotAllowed = 12 not bound -!missing-enum-value! HKWorkoutActivityType native value HKWorkoutActivityTypeUnderwaterDiving = 84 not bound -!missing-field! HKMetadataKeyActivityType not bound -!missing-field! HKMetadataKeyAppleFitnessPlusSession not bound -!missing-field! HKMetadataKeyCyclingFunctionalThresholdPowerTestType not bound -!missing-field! HKMetadataKeyMaximumLightIntensity not bound -!missing-field! HKMetadataKeyPhysicalEffortEstimationType not bound -!missing-field! HKMetadataKeyWaterSalinity not bound -!missing-field! HKQuantityTypeIdentifierCyclingCadence not bound -!missing-field! HKQuantityTypeIdentifierCyclingFunctionalThresholdPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingSpeed not bound -!missing-field! HKQuantityTypeIdentifierEnvironmentalSoundReduction not bound -!missing-field! HKQuantityTypeIdentifierPhysicalEffort not bound -!missing-field! HKQuantityTypeIdentifierTimeInDaylight not bound -!missing-protocol! HKWorkoutSessionDelegate not bound -!missing-selector! +HKUnit::luxUnit not bound -!missing-selector! +HKUnit::luxUnitWithMetricPrefix: not bound -!missing-selector! HKHealthStore::setWorkoutSessionMirroringStartHandler: not bound -!missing-selector! HKHealthStore::workoutSessionMirroringStartHandler not bound -!missing-selector! HKWorkoutSession::activityType not bound -!missing-selector! HKWorkoutSession::beginNewActivityWithConfiguration:date:metadata: not bound -!missing-selector! HKWorkoutSession::currentActivity not bound -!missing-selector! HKWorkoutSession::delegate not bound -!missing-selector! HKWorkoutSession::end not bound -!missing-selector! HKWorkoutSession::endCurrentActivityOnDate: not bound -!missing-selector! HKWorkoutSession::endDate not bound -!missing-selector! HKWorkoutSession::locationType not bound -!missing-selector! HKWorkoutSession::pause not bound -!missing-selector! HKWorkoutSession::prepare not bound -!missing-selector! HKWorkoutSession::resume not bound -!missing-selector! HKWorkoutSession::sendDataToRemoteWorkoutSession:completion: not bound -!missing-selector! HKWorkoutSession::setDelegate: not bound -!missing-selector! HKWorkoutSession::startActivityWithDate: not bound -!missing-selector! HKWorkoutSession::startDate not bound -!missing-selector! HKWorkoutSession::state not bound -!missing-selector! HKWorkoutSession::stopActivityWithDate: not bound -!missing-selector! HKWorkoutSession::type not bound -!missing-selector! HKWorkoutSession::workoutConfiguration not bound -!missing-type! HKWorkoutSession not bound -!missing-enum-value! HKErrorCode native value HKErrorBackgroundWorkoutSessionNotAllowed = 14 not bound diff --git a/tests/xtro-sharpie/macOS-HealthKit.todo b/tests/xtro-sharpie/macOS-HealthKit.todo deleted file mode 100644 index 52e0510278b0..000000000000 --- a/tests/xtro-sharpie/macOS-HealthKit.todo +++ /dev/null @@ -1,28 +0,0 @@ -!missing-enum! HKCyclingFunctionalThresholdPowerTestType not bound -!missing-enum! HKPhysicalEffortEstimationType not bound -!missing-enum! HKWaterSalinity not bound -!missing-enum! HKWorkoutSessionType not bound -!missing-enum-value! HKErrorCode native value HKErrorDataSizeExceeded = 13 not bound -!missing-enum-value! HKErrorCode native value HKErrorWorkoutActivityNotAllowed = 12 not bound -!missing-enum-value! HKWorkoutActivityType native value HKWorkoutActivityTypeUnderwaterDiving = 84 not bound -!missing-field! HKMetadataKeyActivityType not bound -!missing-field! HKMetadataKeyAppleFitnessPlusSession not bound -!missing-field! HKMetadataKeyCyclingFunctionalThresholdPowerTestType not bound -!missing-field! HKMetadataKeyMaximumLightIntensity not bound -!missing-field! HKMetadataKeyPhysicalEffortEstimationType not bound -!missing-field! HKMetadataKeyWaterSalinity not bound -!missing-field! HKQuantityTypeIdentifierCyclingCadence not bound -!missing-field! HKQuantityTypeIdentifierCyclingFunctionalThresholdPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingSpeed not bound -!missing-field! HKQuantityTypeIdentifierEnvironmentalSoundReduction not bound -!missing-field! HKQuantityTypeIdentifierPhysicalEffort not bound -!missing-field! HKQuantityTypeIdentifierTimeInDaylight not bound -!missing-protocol-member! HKWorkoutSessionDelegate::workoutSession:didDisconnectFromRemoteDeviceWithError: not found -!missing-protocol-member! HKWorkoutSessionDelegate::workoutSession:didReceiveDataFromRemoteWorkoutSession: not found -!missing-selector! +HKUnit::luxUnit not bound -!missing-selector! +HKUnit::luxUnitWithMetricPrefix: not bound -!missing-selector! HKHealthStore::setWorkoutSessionMirroringStartHandler: not bound -!missing-selector! HKHealthStore::workoutSessionMirroringStartHandler not bound -!missing-selector! HKWorkoutSession::type not bound -!missing-enum-value! HKErrorCode native value HKErrorBackgroundWorkoutSessionNotAllowed = 14 not bound diff --git a/tests/xtro-sharpie/watchOS-HealthKit.todo b/tests/xtro-sharpie/watchOS-HealthKit.todo deleted file mode 100644 index 18c092013e4e..000000000000 --- a/tests/xtro-sharpie/watchOS-HealthKit.todo +++ /dev/null @@ -1,32 +0,0 @@ -!deprecated-attribute-missing! HKHealthStore::addSamples:toWorkout:completion: missing a [Deprecated] attribute -!missing-enum! HKCyclingFunctionalThresholdPowerTestType not bound -!missing-enum! HKPhysicalEffortEstimationType not bound -!missing-enum! HKWaterSalinity not bound -!missing-enum! HKWorkoutSessionType not bound -!missing-enum-value! HKErrorCode native value HKErrorDataSizeExceeded = 13 not bound -!missing-enum-value! HKErrorCode native value HKErrorWorkoutActivityNotAllowed = 12 not bound -!missing-enum-value! HKWorkoutActivityType native value HKWorkoutActivityTypeUnderwaterDiving = 84 not bound -!missing-field! HKMetadataKeyActivityType not bound -!missing-field! HKMetadataKeyAppleFitnessPlusSession not bound -!missing-field! HKMetadataKeyCyclingFunctionalThresholdPowerTestType not bound -!missing-field! HKMetadataKeyMaximumLightIntensity not bound -!missing-field! HKMetadataKeyPhysicalEffortEstimationType not bound -!missing-field! HKMetadataKeyWaterSalinity not bound -!missing-field! HKQuantityTypeIdentifierCyclingCadence not bound -!missing-field! HKQuantityTypeIdentifierCyclingFunctionalThresholdPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingPower not bound -!missing-field! HKQuantityTypeIdentifierCyclingSpeed not bound -!missing-field! HKQuantityTypeIdentifierEnvironmentalSoundReduction not bound -!missing-field! HKQuantityTypeIdentifierPhysicalEffort not bound -!missing-field! HKQuantityTypeIdentifierTimeInDaylight not bound -!missing-protocol-member! HKWorkoutSessionDelegate::workoutSession:didDisconnectFromRemoteDeviceWithError: not found -!missing-protocol-member! HKWorkoutSessionDelegate::workoutSession:didReceiveDataFromRemoteWorkoutSession: not found -!missing-selector! +HKUnit::luxUnit not bound -!missing-selector! +HKUnit::luxUnitWithMetricPrefix: not bound -!missing-selector! HKHealthStore::setWorkoutSessionMirroringStartHandler: not bound -!missing-selector! HKHealthStore::workoutSessionMirroringStartHandler not bound -!missing-selector! HKWorkoutSession::sendDataToRemoteWorkoutSession:completion: not bound -!missing-selector! HKWorkoutSession::startMirroringToCompanionDeviceWithCompletion: not bound -!missing-selector! HKWorkoutSession::stopMirroringToCompanionDeviceWithCompletion: not bound -!missing-selector! HKWorkoutSession::type not bound -!missing-enum-value! HKErrorCode native value HKErrorBackgroundWorkoutSessionNotAllowed = 14 not bound