@capgo/capacitor-health 8.5.0 → 8.5.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.
@@ -330,7 +330,7 @@ class HealthPlugin : Plugin() {
330
330
  @PluginMethod
331
331
  fun openHealthConnectSettings(call: PluginCall) {
332
332
  try {
333
- val intent = Intent(HEALTH_CONNECT_SETTINGS_ACTION)
333
+ val intent = Intent(HealthConnectClient.ACTION_HEALTH_CONNECT_SETTINGS)
334
334
  intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
335
335
  context.startActivity(intent)
336
336
  call.resolve()
@@ -440,6 +440,5 @@ class HealthPlugin : Plugin() {
440
440
  companion object {
441
441
  private const val DEFAULT_LIMIT = 100
442
442
  private val DEFAULT_PAST_DURATION: Duration = Duration.ofDays(1)
443
- private const val HEALTH_CONNECT_SETTINGS_ACTION = "androidx.health.ACTION_HEALTH_CONNECT_SETTINGS"
444
443
  }
445
444
  }
@@ -3,7 +3,7 @@ import Capacitor
3
3
 
4
4
  @objc(HealthPlugin)
5
5
  public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
6
- private let pluginVersion: String = "8.5.0"
6
+ private let pluginVersion: String = "8.5.1"
7
7
  public let identifier = "HealthPlugin"
8
8
  public let jsName = "Health"
9
9
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-health",
3
- "version": "8.5.0",
3
+ "version": "8.5.1",
4
4
  "description": "Capacitor plugin to interact with data from Apple HealthKit and Health Connect",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",