@flomentumsolutions/capacitor-health-extended 0.7.2 → 0.7.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/README.md +2 -0
- package/android/build.gradle +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/flomentumsolutions/capacitor-health-extended/HealthPlugin.kt +1 -1
- package/ios/Sources/HealthPluginPlugin/HealthPlugin.swift +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,8 @@ you can keep using the CocoaPods spec `FlomentumSolutionsCapacitorHealthExtended
|
|
|
63
63
|
|
|
64
64
|
### Android
|
|
65
65
|
|
|
66
|
+
The plugin namespace/package is `com.flomentumsolutions.capacitorhealthextended.capacitor` (hyphen removed from older `com.flomentumsolutions.capacitor-health-extended` references); use this when wiring activities, manifest entries, or ProGuard rules.
|
|
67
|
+
|
|
66
68
|
* Android Manifest in root tag right after opening manifest tag
|
|
67
69
|
```xml
|
|
68
70
|
<!-- Make Health Connect visible to detect installation -->
|
package/android/build.gradle
CHANGED
|
@@ -25,7 +25,7 @@ apply plugin: 'com.android.library'
|
|
|
25
25
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
26
26
|
|
|
27
27
|
android {
|
|
28
|
-
namespace = "com.flomentumsolutions.
|
|
28
|
+
namespace = "com.flomentumsolutions.capacitorhealthextended.capacitor"
|
|
29
29
|
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
30
30
|
defaultConfig {
|
|
31
31
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 36
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.flomentumsolutions.
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.flomentumsolutions.capacitorhealthextended.capacitor">
|
|
2
2
|
|
|
3
3
|
</manifest>
|
|
@@ -28,7 +28,7 @@ public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
28
28
|
let healthStore = HKHealthStore()
|
|
29
29
|
|
|
30
30
|
/// Serial queue to make route‑location mutations thread‑safe without locks
|
|
31
|
-
private let routeSyncQueue = DispatchQueue(label: "com.flomentumsolutions.
|
|
31
|
+
private let routeSyncQueue = DispatchQueue(label: "com.flomentumsolutions.capacitorhealthextended.routeSync")
|
|
32
32
|
|
|
33
33
|
@objc func isHealthAvailable(_ call: CAPPluginCall) {
|
|
34
34
|
let isAvailable = HKHealthStore.isHealthDataAvailable()
|
|
@@ -1788,7 +1788,7 @@ public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
1788
1788
|
return
|
|
1789
1789
|
}
|
|
1790
1790
|
let outerGroup = DispatchGroup()
|
|
1791
|
-
let resultsQueue = DispatchQueue(label: "com.flomentumsolutions.
|
|
1791
|
+
let resultsQueue = DispatchQueue(label: "com.flomentumsolutions.capacitorhealthextended.workoutResults")
|
|
1792
1792
|
var workoutResults: [[String: Any]] = []
|
|
1793
1793
|
var errors: [String: String] = [:]
|
|
1794
1794
|
|
|
@@ -1806,8 +1806,8 @@ public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
1806
1806
|
"distance": workout.totalDistance?.doubleValue(for: .meter()) ?? 0
|
|
1807
1807
|
]
|
|
1808
1808
|
let innerGroup = DispatchGroup()
|
|
1809
|
-
let heartRateQueue = DispatchQueue(label: "com.flomentumsolutions.
|
|
1810
|
-
let routeQueue = DispatchQueue(label: "com.flomentumsolutions.
|
|
1809
|
+
let heartRateQueue = DispatchQueue(label: "com.flomentumsolutions.capacitorhealthextended.heartRates")
|
|
1810
|
+
let routeQueue = DispatchQueue(label: "com.flomentumsolutions.capacitorhealthextended.routes")
|
|
1811
1811
|
var localHeartRates: [[String: Any]] = []
|
|
1812
1812
|
var localRoutes: [[String: Any]] = []
|
|
1813
1813
|
|
|
@@ -1906,7 +1906,7 @@ public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
1906
1906
|
guard let self = self else { return }
|
|
1907
1907
|
if let routes = samples as? [HKWorkoutRoute], error == nil {
|
|
1908
1908
|
let routeDispatchGroup = DispatchGroup()
|
|
1909
|
-
let allLocationsQueue = DispatchQueue(label: "com.flomentumsolutions.
|
|
1909
|
+
let allLocationsQueue = DispatchQueue(label: "com.flomentumsolutions.capacitorhealthextended.allLocations")
|
|
1910
1910
|
var allLocations: [[String: Any]] = []
|
|
1911
1911
|
|
|
1912
1912
|
for route in routes {
|
package/package.json
CHANGED