# Contributing to tauri-plugin-healthkit
[日本語版](CONTRIBUTING.ja.md)
## Setting Up the Development Environment
### 🛠 Required Tools and Versions
- Rust 1.70.0 or higher
- Node.js 18.0.0 or higher
- npm 9.0.0 or higher
- Android Studio Iguana or higher
- Xcode 15.0 or higher (for iOS development)
For more details, please refer to the official documentation
👉 [Tauri v2 - Prerequisites](https://v2.tauri.app/start/prerequisites/)
### ⚙️ Setting Up Your Environment
1. Clone the repository:
```bash
git clone git@github.com:The-Phage-Inc/tauri-plugin-healthkit.git
cd tauri-plugin-healthkit
```
2. Install dependencies and build:
```bash
cargo fetch
cargo build
npm install
npm run build
```
3. Build for Android:
```bash
cd android
./gradlew
cargo build --target aarch64-linux-android
./gradlew clean
```
* If developing in Android Studio, select "File" → "Sync Project with Gradle Files" to resync Gradle
4. Build for iOS (in development)
### 🚀 Testing with Sample App
`examples/tauri-app` serves as a sample application.
You can run your modified code directly in this app.
#### Android
```bash
cd examples/tauri-app
npm install
npm run tauri android dev
```
#### iOS (in development)
## Project Structure
```
tauri-plugin-healthkit/
├── android/ - Android source code
├── ios/ - iOS source code
├── src/ - Plugin source code
├── guest-js/ - JavaScript bindings (entry point for JS usage)
├── examples/ - Sample applications
└── permissions/ - Permission-related code (except default.toml, auto-generated during cargo build)
```