From 7f9db4d11c97bd61784489164dc7797122eee732 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 23 Oct 2026 08:50:27 +0000 Subject: [PATCH] cleanup(ios): correct HealthIntegration.isAvailable KDoc isAvailable() only calls HKHealthStore.isHealthDataAvailable and returns false when that check throws. It does not inspect a HealthKit restricted state. Co-authored-by: Devil <9thLevelSoftware@users.noreply.github.com> --- .../phoenixproject/data/integration/HealthIntegration.ios.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/iosMain/kotlin/com/devil/phoenixproject/data/integration/HealthIntegration.ios.kt b/shared/src/iosMain/kotlin/com/devil/phoenixproject/data/integration/HealthIntegration.ios.kt index f38c2bc3b..d5618e230 100644 --- a/shared/src/iosMain/kotlin/com/devil/phoenixproject/data/integration/HealthIntegration.ios.kt +++ b/shared/src/iosMain/kotlin/com/devil/phoenixproject/data/integration/HealthIntegration.ios.kt @@ -90,8 +90,8 @@ actual class HealthIntegration : HealthWorkoutWriter { * * Delegates to [HKHealthStore.isHealthDataAvailable] and returns false if * that check throws. HealthKit reports data as available on iPhone and on - * iPad running iPadOS 17 or later, and unavailable on earlier iPadOS. - * A restricted or otherwise unsupported device also returns false. + * iPad running iPadOS 17 or later, and unavailable on earlier iPadOS and + * on other devices that do not support HealthKit. */ actual override suspend fun isAvailable(): Boolean = try { HKHealthStore.isHealthDataAvailable()