@kingstinct/react-native-healthkit 13.2.2 → 13.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeHealthkit.podspec +9 -0
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +1 -1
- package/package.json +2 -2
|
@@ -35,6 +35,15 @@ Pod::Spec.new do |s|
|
|
|
35
35
|
load 'nitrogen/generated/ios/ReactNativeHealthkit+autolinking.rb'
|
|
36
36
|
add_nitrogen_files(s)
|
|
37
37
|
|
|
38
|
+
# Workaround for Swift 6.2 (Xcode 26): shared_ptr lost automatic CxxConvertibleToBool conformance,
|
|
39
|
+
# causing nitrogen-generated Bool(fromCxx:) calls to fail. Replace with use_count() > 0.
|
|
40
|
+
# This can be removed once nitrogen fixes the codegen template upstream.
|
|
41
|
+
s.script_phase = {
|
|
42
|
+
:name => '[ReactNativeHealthkit] Fix Swift 6.2 CxxConvertibleToBool',
|
|
43
|
+
:script => "perl -i -pe 's/Bool\\(fromCxx: cachedCxxPart\\)/cachedCxxPart.use_count() > 0/g' \"${PODS_TARGET_SRCROOT}/nitrogen/generated/ios/swift/\"*Spec_cxx.swift 2>/dev/null || true",
|
|
44
|
+
:execution_position => :before_compile,
|
|
45
|
+
}
|
|
46
|
+
|
|
38
47
|
s.dependency 'React-jsi'
|
|
39
48
|
s.dependency 'React-callinvoker'
|
|
40
49
|
install_modules_dependencies(s)
|
|
@@ -75,7 +75,7 @@ open class HybridCategoryTypeModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridCategoryTypeModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridCategoryTypeModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridCharacteristicTypeModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridCharacteristicTypeModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridCharacteristicTypeModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridCoreModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridCoreModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridCoreModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridCorrelationTypeModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridCorrelationTypeModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridCorrelationTypeModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridElectrocardiogramModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridElectrocardiogramModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridElectrocardiogramModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridHeartbeatSeriesModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridHeartbeatSeriesModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridHeartbeatSeriesModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridMedicationModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridMedicationModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridMedicationModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridQuantityTypeModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridQuantityTypeModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridQuantityTypeModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridSourceProxySpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridSourceProxySpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridSourceProxySpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridStateOfMindModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridStateOfMindModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridStateOfMindModuleSpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridWorkoutProxySpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridWorkoutProxySpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridWorkoutProxySpec_(self.toUnsafe())
|
|
@@ -75,7 +75,7 @@ open class HybridWorkoutsModuleSpec_cxx {
|
|
|
75
75
|
*/
|
|
76
76
|
public func getCxxPart() -> bridge.std__shared_ptr_HybridWorkoutsModuleSpec_ {
|
|
77
77
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
-
if
|
|
78
|
+
if cachedCxxPart.use_count() > 0 {
|
|
79
79
|
return cachedCxxPart
|
|
80
80
|
} else {
|
|
81
81
|
let newCxxPart = bridge.create_std__shared_ptr_HybridWorkoutsModuleSpec_(self.toUnsafe())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingstinct/react-native-healthkit",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.3",
|
|
4
4
|
"description": "React Native bindings for HealthKit",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"build": "bun run clean && bun run build:cjs && bun run build:esm && bun run build:types",
|
|
60
60
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
61
61
|
"lint": "bunx @biomejs/biome format --write",
|
|
62
|
-
"codegen": "bun run build && nitrogen --logLevel=\"debug\"",
|
|
62
|
+
"codegen": "bun run build && nitrogen --logLevel=\"debug\" && perl -i -pe 's/Bool\\(fromCxx: cachedCxxPart\\)/cachedCxxPart.use_count() > 0/g' nitrogen/generated/ios/swift/*Spec_cxx.swift",
|
|
63
63
|
"test": "bun test",
|
|
64
64
|
"prepublishOnly": "bun run build && bun run codegen"
|
|
65
65
|
},
|