Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMoran authored Sep 4, 2023
2 parents ec5c195 + 6f2fd98 commit 0772b8c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [7.1.1](https://github.com/kingstinct/react-native-healthkit/compare/v7.1.0...v7.1.1) (2023-09-02)


### Bug Fixes

* xcode 15 build error for workoutKit logic ([16f3d4d](https://github.com/kingstinct/react-native-healthkit/commit/16f3d4dae1cd87d656879b60ed39434d236e3ba7))

# [7.1.0](https://github.com/kingstinct/react-native-healthkit/compare/v7.0.6...v7.1.0) (2023-09-01)


Expand Down
14 changes: 8 additions & 6 deletions ios/ReactNativeHealthkit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,15 @@ class ReactNativeHealthkit: RCTEventEmitter {

#if canImport(WorkoutKit)
if #available(iOS 17.0, *) {
do {
let workoutplan = try await workout.workoutPlan
if let workoutplanId = workoutplan?.id {
dict["workoutPlanId"] = workoutplanId.uuidString
Task {
do {
let workoutplan = try await workout.workoutPlan
if let workoutplanId = workoutplan?.id {
dict["workoutPlanId"] = workoutplanId.uuidString
}
} catch {
// handle error
}
} catch {
// handle error
}
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kingstinct/react-native-healthkit",
"version": "7.1.0",
"version": "7.1.1",
"description": "React Native bindings for HealthKit",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 0772b8c

Please sign in to comment.