docs.rs failed to build tauri-plugin-healthkit-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tauri-plugin-healthkit
This plugin provides access to HealthConnect (Android) and HealthKit (iOS).
| Platform | Supported |
|---|---|
| Linux | x |
| Windows | x |
| macOS | x |
| Android | ✓ |
| iOS | ✓ |
Install
Coming soon.
We plan to publish this plugin on crates.io and npm.
Usage
Requirements
- Gradle 8.1.1 or higher
- Android Gradle Plugin 8.9.1 or higher
- compileSdk 36 or higher (Android 14+)
- minSdk 26 or higher (Android 8.0+)
src-tauri/gen/android/app/build.gradle.kts
android {
compileSdk = 36
namespace = "com.tauri.dev"
defaultConfig {
minSdk = 26
targetSdk = 36
}
}
src-tauri/gen/android/build.gradle.kts
dependencies {
classpath("com.android.tools.build:gradle:8.9.1")
}
src-tauri/gen/android/buildSrc/build.gradle.kts
dependencies {
compileOnly(gradleApi())
implementation("com.android.tools.build:gradle:8.9.1")
}
src-tauri/gen/android/gradle/gradle-wrapper.properties
Adding the Plugin
Add the plugin to your Tauri application:
src-tauri/src/lib.rs
Usage Example
Specify the permissions you need for HealthConnect (Android):
src-tauri/gen/android/app/src/AndroidManifest.xml
<!-- Health Connect permissions -->
Contributing
Pull requests are welcome.
Please see CONTRIBUTING.md for more information.