From 16f3d4dae1cd87d656879b60ed39434d236e3ba7 Mon Sep 17 00:00:00 2001 From: Walter Holohan Date: Fri, 1 Sep 2023 17:10:48 +0100 Subject: [PATCH 1/2] fix: xcode 15 build error for workoutKit logic --- ios/ReactNativeHealthkit.swift | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ios/ReactNativeHealthkit.swift b/ios/ReactNativeHealthkit.swift index 486063c..e265917 100644 --- a/ios/ReactNativeHealthkit.swift +++ b/ios/ReactNativeHealthkit.swift @@ -716,13 +716,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 From 6f2fd9871db7be4df38cc4e8d0d3fac48d877292 Mon Sep 17 00:00:00 2001 From: Robert Herber Date: Sat, 2 Sep 2023 10:07:36 +0200 Subject: [PATCH 2/2] chore: release 7.1.1 --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfa3bdf..082417e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index b553cd0..452d7c8 100644 --- a/package.json +++ b/package.json @@ -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",