@capgo/capacitor-health 7.2.5 → 7.2.7
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.
|
@@ -22,7 +22,7 @@ import kotlinx.coroutines.withContext
|
|
|
22
22
|
|
|
23
23
|
@CapacitorPlugin(name = "Health")
|
|
24
24
|
class HealthPlugin : Plugin() {
|
|
25
|
-
private val
|
|
25
|
+
private val pluginVersion = "7.2.5"
|
|
26
26
|
private val manager = HealthManager()
|
|
27
27
|
private val pluginScope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)
|
|
28
28
|
private var pendingAuthorization: PendingAuthorization? = null
|
|
@@ -313,7 +313,7 @@ class HealthPlugin : Plugin() {
|
|
|
313
313
|
fun getPluginVersion(call: PluginCall) {
|
|
314
314
|
try {
|
|
315
315
|
val ret = JSObject()
|
|
316
|
-
ret.put("version",
|
|
316
|
+
ret.put("version", pluginVersion)
|
|
317
317
|
call.resolve(ret)
|
|
318
318
|
} catch (e: Exception) {
|
|
319
319
|
call.reject("Could not get plugin version", e)
|
|
@@ -3,7 +3,7 @@ import Capacitor
|
|
|
3
3
|
|
|
4
4
|
@objc(HealthPlugin)
|
|
5
5
|
public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
6
|
-
private let
|
|
6
|
+
private let pluginVersion: String = "7.2.7"
|
|
7
7
|
public let identifier = "HealthPlugin"
|
|
8
8
|
public let jsName = "Health"
|
|
9
9
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -131,7 +131,7 @@ public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
134
|
-
call.resolve(["version": self.
|
|
134
|
+
call.resolve(["version": self.pluginVersion])
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
}
|
package/package.json
CHANGED