Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Configuration/Provisioning/iOS_App_Store__App.mobileprovision
Binary file not shown.
2 changes: 2 additions & 0 deletions Sources/App/Settings/Sensors/List/SensorListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ struct SensorListView: View {
subtitle: L10n.SettingsSensors.body
)
periodicUpdaterRow
#if os(iOS) && !targetEnvironment(macCatalyst)
healthKitSection
#endif
motionFocusPermissionNeededView
sensorsList
}
Expand Down
4 changes: 4 additions & 0 deletions Sources/App/Settings/Sensors/List/SensorListViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class SensorListViewModel: ObservableObject {
}

func updatePermissions() {
#if os(iOS) && !targetEnvironment(macCatalyst)
isHealthKitAvailable = Current.healthKitService.isAvailable()
#endif

if Current.motion.isActivityAvailable() {
motionAuthorizationStatus = CMMotionActivityManager.authorizationStatus()
Expand Down Expand Up @@ -65,8 +67,10 @@ class SensorListViewModel: ObservableObject {

@MainActor
func requestHealthAuthorization() async throws {
#if os(iOS) && !targetEnvironment(macCatalyst)
try await Current.healthKitService.requestReadAuthorization()
isHealthKitAvailable = Current.healthKitService.isAvailable()
#endif
}

// MARK: - Permissions Handling
Expand Down