@kingstinct/react-native-healthkit 8.0.0 → 8.0.1
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/ios/ReactNativeHealthkit.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/ReactNativeHealthkit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/ReactNativeHealthkit.xcodeproj/project.xcworkspace/xcuserdata/robertherber.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/ReactNativeHealthkit.xcodeproj/xcuserdata/robertherber.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/Serializers.swift +2 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>ReactNativeHealthkit.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
package/ios/Serializers.swift
CHANGED
|
@@ -113,11 +113,13 @@ func serializeUnknownQuantity(quantity: HKQuantity) -> [String: Any]? {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
#if compiler(>=6)
|
|
116
117
|
if #available(iOS 18.0, *) {
|
|
117
118
|
if quantity.is(compatibleWith: HKUnit.appleEffortScore()) {
|
|
118
119
|
return serializeQuantity(unit: HKUnit.appleEffortScore(), quantity: quantity)
|
|
119
120
|
}
|
|
120
121
|
}
|
|
122
|
+
#endif
|
|
121
123
|
|
|
122
124
|
if quantity.is(compatibleWith: SpeedUnit) {
|
|
123
125
|
return serializeQuantity(unit: SpeedUnit, quantity: quantity)
|