Skip to content

Commit

Permalink
Fix watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Nov 10, 2024
1 parent 5fcea82 commit 6dc64c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/OversizeHealthService/BloodPressureService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import OversizeCore
import OversizeModels

#if canImport(HealthKit)
#if os(iOS) || os(macOS)
@available(iOS 15, macOS 13.0, *)
public class BloodPressureService: HealthKitService, @unchecked Sendable {
private let bloodPressureType = HKQuantityType.correlationType(forIdentifier: HKCorrelationTypeIdentifier.bloodPressure)
Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeHealthService/BodyMassService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import OversizeCore
import OversizeModels

#if canImport(HealthKit)
#if os(iOS) || os(macOS)
@available(iOS 15, macOS 13.0, *)
public protocol BodyMassServiceProtocol {
func requestAuthorization() async -> Result<Bool, AppError>
Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeHealthService/HealthKitService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import OversizeCore
import OversizeModels

#if canImport(HealthKit)
#if os(iOS) || os(macOS)
@available(iOS 15, macOS 13.0, *)
open class HealthKitService: @unchecked Sendable {
var healthStore: HKHealthStore?
Expand Down
2 changes: 1 addition & 1 deletion Sources/OversizeHealthService/ServiceRegistering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import Factory
import Foundation

#if !os(tvOS)
#if os(iOS) || os(macOS)
public extension Container {
@available(iOS 15, macOS 13.0, *)
var bodyMassService: Factory<BodyMassServiceProtocol> {
Expand Down

0 comments on commit 6dc64c2

Please sign in to comment.