From 11a569093862deb300b464e0d856cba2358ff007 Mon Sep 17 00:00:00 2001 From: karolinaoparczyk Date: Tue, 12 Nov 2024 17:39:09 +0100 Subject: [PATCH 1/4] Add max to statistics --- Sources/Decorator/Extensions+HKQuantityType.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } From 33eb530e7e41daac3925a5e3a993ff2358986a0b Mon Sep 17 00:00:00 2001 From: karolinaoparczyk Date: Tue, 12 Nov 2024 17:44:23 +0100 Subject: [PATCH 2/4] Update version --- HealthKitReporter.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.' From 03cb1849358ded980d8074039a346520e4d4e4ee Mon Sep 17 00:00:00 2001 From: karolinaoparczyk Date: Wed, 13 Nov 2024 10:16:13 +0100 Subject: [PATCH 3/4] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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 From 1d7663188e4f96aa59679d5df8338d5278b2fe37 Mon Sep 17 00:00:00 2001 From: karolinaoparczyk Date: Tue, 25 Feb 2025 13:07:22 +0100 Subject: [PATCH 4/4] Remove generating project --- .github/workflows/swift.yml | 2 -- 1 file changed, 2 deletions(-) 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