Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'Existing tag to build/upload/publish (e.g. v0.3.17). Leave empty to use package.json version.'
description: 'Existing tag to build/upload/publish (e.g. v0.3.18). Leave empty to use package.json version.'
required: false
type: string

Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.18] - 2026-11-26

### Added

- React hooks: `useHealthConnectAvailability`, `useHealthConnectPermissions`
(`[status, request]`), `useReadRecords`, `useMostRecentRecord`, `useAggregate`, and
`useChanges`. Data hooks share the `{ value, satisfied, loading, error, refresh }`
shape of `useForegroundPoll`, refetch on app foreground, and drop results after unmount
or argument changes.
- `example-expo/`: a minimal Expo (SDK 58, dev client) example using the config plugin,
covering availability, permissions, 7-day steps, and an aggregate.

### Changed

- README: npm version and download badges, "React Native Health Connect" wording,
a pointer to `@kingstinct/react-native-healthkit` for iOS, and a Support & enterprise
section. The npm `description` was updated to match.

## [0.3.17] - 2026-11-26

### Changed
Expand Down Expand Up @@ -249,6 +267,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Stable 0.2.x line (HC `1.1.0`, AGP 8.9 / sdk 36): GitHub Packages + hosted CI parity and security dependency fixes.

[0.3.18]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.18
[0.3.17]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.17
[0.3.16]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.16
[0.3.15]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.15
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ for publish).
mirror (`npm.pkg.github.com`).

Tag `v*` on `main` to trigger Release — the tag **must** match `package.json`
(`v0.3.17` ↔ `"version": "0.3.17"`).
(`v0.3.18` ↔ `"version": "0.3.18"`).

We use [release-it](https://github.com/release-it/release-it) for version bumps locally when needed:

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ Pick a line by Android toolchain (HC SDK / AGP), not by RN major:

| Package | RN | Node | `connect-client` | Min AGP | compileSdk | Branch / tag |
|---|---|---|---|---|---|---|
| **[`0.3.17`](https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.17)** (default) | **≥0.84** | **≥22.22** | **`1.2.0-alpha06`** | **9.1.0** | **37** | `main` |
| **[`0.3.18`](https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.18)** (default) | **≥0.84** | **≥22.22** | **`1.2.0-alpha06`** | **9.1.0** | **37** | `main` |
| **[`0.2.4`](https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.2.4)** (maintenance) | **≥0.84** | **≥22.11** | **`1.1.0`** (stable) | **8.9.1** | **36** | [`release/0.2.x`](https://github.com/solutionforest/AndroidHealthConnect/tree/release/0.2.x) |

```sh
# npmjs.org (default — no .npmrc needed)
yarn add @solutionforest/android-health-connect@0.3.17 # AGP 9.1+ / compileSdk 37
yarn add @solutionforest/android-health-connect@0.3.18 # AGP 9.1+ / compileSdk 37
yarn add @solutionforest/android-health-connect@0.2.4 # AGP 8.9.1+ / compileSdk 36 (dist-tag release-0.2)
```

### What `0.3.17` (this branch) needs in your host app
### What `0.3.18` (this branch) needs in your host app

| Requirement | Value for `0.3.17` |
| Requirement | Value for `0.3.18` |
|---|---|
| Install | `@solutionforest/android-health-connect` from **npmjs.org** |
| Health Connect Jetpack SDK | [`connect-client:1.2.0-alpha06`](https://developer.android.com/jetpack/androidx/releases/health-connect) |
Expand Down Expand Up @@ -111,9 +111,9 @@ Same scoped name on **both** registries: `@solutionforest/android-health-connect

```sh
# Default (0.3.x): connect-client 1.2.0-alpha06 — needs AGP 9.1+ / compileSdk 37
yarn add @solutionforest/android-health-connect@0.3.17
yarn add @solutionforest/android-health-connect@0.3.18
# or
npm install @solutionforest/android-health-connect@0.3.17
npm install @solutionforest/android-health-connect@0.3.18

# Maintenance (0.2.x): connect-client 1.1.0 stable — AGP 8.9.1+ / compileSdk 36
yarn add @solutionforest/android-health-connect@release-0.2
Expand All @@ -128,12 +128,12 @@ yarn add @solutionforest/android-health-connect@release-0.2
```

```sh
yarn add @solutionforest/android-health-connect@0.3.17
yarn add @solutionforest/android-health-connect@0.3.18
```

Use a classic PAT with `read:packages` (SSO-authorize for `solutionforest` if required).

Alternatives: install from git (`solutionforest/AndroidHealthConnect#v0.3.17`) or download the Release `.tgz`.
Alternatives: install from git (`solutionforest/AndroidHealthConnect#v0.3.18`) or download the Release `.tgz`.

Pushing a `v*` tag runs the **Release** workflow: packs `.tgz`, uploads to the GitHub Release, publishes to **npmjs.org** via Trusted Publishing (OIDC), and mirrors to GitHub Packages.

Expand Down
Binary file modified docs/assets/github-social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/og-cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/social-square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/assets/src/og-cover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/assets/src/social-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
<div class="shell hero">
<div class="hero__mesh" aria-hidden="true"></div>
<div class="hero__copy">
<a class="pill rise" href="https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.17">
<b>v0.3.17</b> Published to npm with Trusted Publishing
<a class="pill rise" href="https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.18">
<b>v0.3.18</b> Published to npm with Trusted Publishing
</a>
<h1 class="rise" style="--i: 1">
Health Connect,<br /><em>native</em> to React&nbsp;Native.
Expand Down
4 changes: 2 additions & 2 deletions docs/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h2><span class="step">02</span>Choose a version line</h2>
<div class="code">
<div class="code__bar"><span>terminal</span><button class="copy" data-copy>Copy</button></div>
<pre><code><span class="c"># 0.3.x — AGP 9.1+ / compileSdk 37</span>
yarn add @solutionforest/android-health-connect@0.3.17
yarn add @solutionforest/android-health-connect@0.3.18

<span class="c"># 0.2.x — AGP 8.9.1+ / compileSdk 36</span>
yarn add @solutionforest/android-health-connect@release-0.2</code></pre>
Expand Down Expand Up @@ -273,7 +273,7 @@ <h2><span class="step">05</span>Install the AI agent skill</h2>
<section id="alternatives">
<h2><span class="step">06</span>Alternatives</h2>
<ul>
<li>Git: <code>solutionforest/AndroidHealthConnect#v0.3.17</code></li>
<li>Git: <code>solutionforest/AndroidHealthConnect#v0.3.18</code></li>
<li>
Download the
<a href="https://github.com/solutionforest/AndroidHealthConnect/releases">GitHub Release</a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solutionforest/android-health-connect",
"version": "0.3.17",
"version": "0.3.18",
"description": "React Native Health Connect library for Android — TurboModule to read/write health records (steps, heart rate, sleep, 42 types), permissions, aggregates, matchmaking, and PHR helpers.",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down