diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 2cc497f..565e228 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -12,8 +12,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Generate project - run: swift package generate-xcodeproj - name: Build run: xcodebuild clean build -project "HealthKitReporter.xcodeproj" -scheme "HealthKitReporter-Package" -destination "platform=iOS Simulator,name=iPhone 12 Pro,OS=latest" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO - name: Run tests diff --git a/CHANGELOG.md b/CHANGELOG.md index b0a2340..a94322e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [3.2.0] - 13.11.2024. + +* Add discreteMax quantity to statistics' options + ## [3.1.0] - 08.01.2024. * Added support for HKClinicalRecord diff --git a/HealthKitReporter.podspec b/HealthKitReporter.podspec index cdbfb11..65970a0 100644 --- a/HealthKitReporter.podspec +++ b/HealthKitReporter.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'HealthKitReporter' - s.version = '3.1.0' + s.version = '3.2.0' s.summary = 'HealthKitReporter. A wrapper for HealthKit framework.' s.swift_versions = '5.3' s.description = 'Helps to write or read data from Apple Health via HealthKit framework.' diff --git a/Sources/Decorator/Extensions+HKQuantityType.swift b/Sources/Decorator/Extensions+HKQuantityType.swift index 6285d06..0481f94 100644 --- a/Sources/Decorator/Extensions+HKQuantityType.swift +++ b/Sources/Decorator/Extensions+HKQuantityType.swift @@ -24,7 +24,7 @@ extension HKQuantityType { case .discreteArithmetic, .discreteTemporallyWeighted, .discreteEquivalentContinuousLevel: - return .discreteAverage + return [.discreteAverage, .discreteMax] @unknown default: fatalError() }