Skip to content
Open
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
2 changes: 0 additions & 2 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion HealthKitReporter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down
2 changes: 1 addition & 1 deletion Sources/Decorator/Extensions+HKQuantityType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extension HKQuantityType {
case .discreteArithmetic,
.discreteTemporallyWeighted,
.discreteEquivalentContinuousLevel:
return .discreteAverage
return [.discreteAverage, .discreteMax]
@unknown default:
fatalError()
}
Expand Down