diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efc3914..73b55bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 840a667..10f75aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 633fbbf..e418811 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: diff --git a/README.md b/README.md index b4a8a65..7527aeb 100644 --- a/README.md +++ b/README.md @@ -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) | @@ -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 @@ -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. diff --git a/docs/assets/github-social-preview.png b/docs/assets/github-social-preview.png index ecb69c4..1aa3a7a 100644 Binary files a/docs/assets/github-social-preview.png and b/docs/assets/github-social-preview.png differ diff --git a/docs/assets/og-cover.png b/docs/assets/og-cover.png index a250482..f7dce23 100644 Binary files a/docs/assets/og-cover.png and b/docs/assets/og-cover.png differ diff --git a/docs/assets/social-square.png b/docs/assets/social-square.png index 9d8392b..bbcafc9 100644 Binary files a/docs/assets/social-square.png and b/docs/assets/social-square.png differ diff --git a/docs/assets/src/og-cover.svg b/docs/assets/src/og-cover.svg index 518d318..818519a 100644 --- a/docs/assets/src/og-cover.svg +++ b/docs/assets/src/og-cover.svg @@ -3,4 +3,4 @@ -v0.3.17Published to npm · Android 10+Health Connect,native to React Native.A typed TurboModule for Android Health Connect:permissions, 42 record types, aggregates, sync.solutionforest.github.io/AndroidHealthConnectterminal · npmjs.org$ yarn add @solutionforest/android-health-connect \ No newline at end of file +v0.3.18Published to npm · Android 10+Health Connect,native to React Native.A typed TurboModule for Android Health Connect:permissions, 42 record types, aggregates, sync.solutionforest.github.io/AndroidHealthConnectterminal · npmjs.org$ yarn add @solutionforest/android-health-connect \ No newline at end of file diff --git a/docs/assets/src/social-square.svg b/docs/assets/src/social-square.svg index e541698..fbc1135 100644 --- a/docs/assets/src/social-square.svg +++ b/docs/assets/src/social-square.svg @@ -3,4 +3,4 @@ -v0.3.17Published to npm · Android 10+HealthConnect,nativeto React Native.A typed TurboModule for Android Health Connect:permissions, 42 record types, aggregates, sync.terminal · npmjs.org$ yarn add @solutionforest/android-health-connectsolutionforest.github.io/AndroidHealthConnect \ No newline at end of file +v0.3.18Published to npm · Android 10+HealthConnect,nativeto React Native.A typed TurboModule for Android Health Connect:permissions, 42 record types, aggregates, sync.terminal · npmjs.org$ yarn add @solutionforest/android-health-connectsolutionforest.github.io/AndroidHealthConnect \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 59bec06..9147021 100644 --- a/docs/index.html +++ b/docs/index.html @@ -74,8 +74,8 @@
- - v0.3.17 Published to npm with Trusted Publishing + + v0.3.18 Published to npm with Trusted Publishing

Health Connect,
native to React Native. diff --git a/docs/install.html b/docs/install.html index 6918ec4..0c191a6 100644 --- a/docs/install.html +++ b/docs/install.html @@ -156,7 +156,7 @@

02Choose a version line

terminal
# 0.3.x — AGP 9.1+ / compileSdk 37
-yarn add @solutionforest/android-health-connect@0.3.17
+yarn add @solutionforest/android-health-connect@0.3.18
 
 # 0.2.x — AGP 8.9.1+ / compileSdk 36
 yarn add @solutionforest/android-health-connect@release-0.2
@@ -273,7 +273,7 @@

05Install the AI agent skill

06Alternatives

    -
  • Git: solutionforest/AndroidHealthConnect#v0.3.17
  • +
  • Git: solutionforest/AndroidHealthConnect#v0.3.18
  • Download the GitHub Release diff --git a/package.json b/package.json index 04cb8d8..db6f204 100644 --- a/package.json +++ b/package.json @@ -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",