@solutionforest/android-health-connect 0.3.13 → 0.3.14

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +28 -26
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.14] - 2026-11-23
11
+
12
+ ### Changed
13
+
14
+ - Distribution: **npmjs.org is primary** (Trusted Publishing / OIDC from
15
+ `release.yml`); GitHub Packages remains a mirror. Install docs no longer
16
+ require a GitHub Packages `.npmrc`.
17
+
10
18
  ## [0.3.13] - 2026-11-23
11
19
 
12
20
  ### Added
@@ -188,6 +196,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
188
196
 
189
197
  - Stable 0.2.x line (HC `1.1.0`, AGP 8.9 / sdk 36): GitHub Packages + hosted CI parity and security dependency fixes.
190
198
 
199
+ [0.3.14]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.14
191
200
  [0.3.13]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.13
192
201
  [0.3.12]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.12
193
202
  [0.3.11]: https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.11
package/README.md CHANGED
@@ -38,7 +38,7 @@ A React Native library for integrating with [Android Health Connect](https://dev
38
38
  | Planned exercise | ✅ Supported | `PlannedExerciseSession` when `plannedExercise` feature is available |
39
39
  | Library upgrade reminder | ✅ Supported | `checkLibraryUpdate()` + weekly CI (HC SDK / release drift → issue) |
40
40
  | CI / quality gates | ✅ GitHub-hosted | lint, typecheck, Jest + Kotlin unit tests, library + Android build, audit |
41
- | Distribution | ✅ GitHub Packages + Releases | Primary: `npm.pkg.github.com`. Optional npmjs.org mirror when `NPM_TOKEN` is set. Release `.tgz` has SBOM + attestations |
41
+ | Distribution | ✅ npmjs.org + GitHub Releases | Primary: [npmjs](https://www.npmjs.com/package/@solutionforest/android-health-connect). Mirror: GitHub Packages. Release `.tgz` has SBOM + attestations |
42
42
  | CodeQL | ✅ Supported | On `main` PRs/pushes + weekly schedule |
43
43
 
44
44
  ## Requirements
@@ -50,20 +50,20 @@ Pick a line by Android toolchain (HC SDK / AGP), not by RN major:
50
50
 
51
51
  | Package | RN | Node | `connect-client` | Min AGP | compileSdk | Branch / tag |
52
52
  |---|---|---|---|---|---|---|
53
- | **[`0.3.13`](https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.13)** (default) | **≥0.84** | **≥22.11** | **`1.2.0-alpha06`** | **9.1.0** | **37** | `main` |
53
+ | **[`0.3.14`](https://github.com/solutionforest/AndroidHealthConnect/releases/tag/v0.3.14)** (default) | **≥0.84** | **≥22.11** | **`1.2.0-alpha06`** | **9.1.0** | **37** | `main` |
54
54
  | **[`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) |
55
55
 
56
56
  ```sh
57
- # GitHub Packages (see Installation for .npmrc)
58
- yarn add @solutionforest/android-health-connect@0.3.13 # AGP 9.1+ / compileSdk 37
57
+ # npmjs.org (default — no .npmrc needed)
58
+ yarn add @solutionforest/android-health-connect@0.3.14 # AGP 9.1+ / compileSdk 37
59
59
  yarn add @solutionforest/android-health-connect@0.2.4 # AGP 8.9.1+ / compileSdk 36 (dist-tag release-0.2)
60
60
  ```
61
61
 
62
- ### What `0.3.13` (this branch) needs in your host app
62
+ ### What `0.3.14` (this branch) needs in your host app
63
63
 
64
- | Requirement | Value for `0.3.13` |
64
+ | Requirement | Value for `0.3.14` |
65
65
  |---|---|
66
- | Install | `@solutionforest/android-health-connect` via GitHub Packages |
66
+ | Install | `@solutionforest/android-health-connect` from **npmjs.org** |
67
67
  | Health Connect Jetpack SDK | [`connect-client:1.2.0-alpha06`](https://developer.android.com/jetpack/androidx/releases/health-connect) |
68
68
  | Android Gradle Plugin | **9.1.1** (min **9.1.0**) |
69
69
  | Gradle | **9.3.1+** (required by AGP 9.1) |
@@ -94,35 +94,37 @@ JS API: [42 record types](#supported-record-types), feature checks, Matchmaking,
94
94
 
95
95
  | Registry | Notes |
96
96
  |---|---|
97
- | **[GitHub Packages](https://github.com/orgs/solutionforest/packages?repo_name=AndroidHealthConnect)** | Primary (`npm.pkg.github.com`) + Release `.tgz` |
98
- | **npmjs.org** | Optional — set repo secret `NPM_TOKEN` so Release also runs `npm publish --provenance` |
97
+ | **[npmjs.org](https://www.npmjs.com/package/@solutionforest/android-health-connect)** | **Primary** — `yarn add` / `npm i` with no `.npmrc` |
98
+ | **[GitHub Packages](https://github.com/orgs/solutionforest/packages?repo_name=AndroidHealthConnect)** | Mirror (`npm.pkg.github.com`) + Release `.tgz` (SBOM / attestations) |
99
99
 
100
- ### 1. Point `@solutionforest` at GitHub Packages
101
-
102
- Add to your project `.npmrc` (or user `~/.npmrc`):
103
-
104
- ```ini
105
- @solutionforest:registry=https://npm.pkg.github.com
106
- //npm.pkg.github.com/:_authToken=YOUR_GITHUB_PAT
107
- ```
108
-
109
- Use a classic PAT with `read:packages` (and SSO authorized for the `solutionforest` org if required).
110
-
111
- ### 2. Install the package
100
+ ### Install the package
112
101
 
113
102
  ```sh
114
103
  # Default (0.3.x): connect-client 1.2.0-alpha06 — needs AGP 9.1+ / compileSdk 37
115
- yarn add @solutionforest/android-health-connect@0.3.13
104
+ yarn add @solutionforest/android-health-connect@0.3.14
116
105
  # or
117
- npm install @solutionforest/android-health-connect@0.3.13
106
+ npm install @solutionforest/android-health-connect@0.3.14
118
107
 
119
108
  # Maintenance (0.2.x): connect-client 1.1.0 stable — AGP 8.9.1+ / compileSdk 36
120
109
  yarn add @solutionforest/android-health-connect@release-0.2
121
110
  ```
122
111
 
123
- Alternatives: install from git (`solutionforest/AndroidHealthConnect#v0.3.13`) or download the Release `.tgz`.
112
+ Alternatives: install from git (`solutionforest/AndroidHealthConnect#v0.3.14`) or download the Release `.tgz`.
113
+
114
+ 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.
115
+
116
+ <details>
117
+ <summary>Optional: install from GitHub Packages instead</summary>
118
+
119
+ ```ini
120
+ # .npmrc
121
+ @solutionforest:registry=https://npm.pkg.github.com
122
+ //npm.pkg.github.com/:_authToken=YOUR_GITHUB_PAT
123
+ ```
124
+
125
+ Use a classic PAT with `read:packages` (SSO-authorize for `solutionforest` if required).
124
126
 
125
- Pushing a `v*` tag runs the **Release** workflow: packs `.tgz`, uploads to the GitHub Release, and `npm publish`es to GitHub Packages.
127
+ </details>
126
128
 
127
129
  ### Expo setup
128
130
 
@@ -763,7 +765,7 @@ if (update.updateAvailable) {
763
765
  |---|---|
764
766
  | **CI** / **CodeQL** | Lint, tests, build on `ubuntu-latest` |
765
767
  | **Version check** | Mondays 08:00 UTC — compares HC SDK (Maven) + library (GitHub Release); opens/updates an `upgrade-reminder` issue. Manual: **Actions → Version check → Run workflow**. Cron options in `.github/workflows/version-check.yml`. |
766
- | **Release** (`v*` tag) | Packs `.tgz` + SBOM / attestations → GitHub Release + GitHub Packages. Optional npmjs.org mirror if `NPM_TOKEN` is set. |
768
+ | **Release** (`v*` tag) | Packs `.tgz` + SBOM / attestations → GitHub Release → **npmjs.org** (OIDC Trusted Publishing) → GitHub Packages mirror |
767
769
 
768
770
  ## API reference
769
771
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solutionforest/android-health-connect",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "React Native TurboModule for Android Health Connect — read/write health records, permissions, matchmaking, and PHR helpers.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "homepage": "https://github.com/solutionforest/AndroidHealthConnect#readme",
82
82
  "publishConfig": {
83
- "registry": "https://npm.pkg.github.com",
83
+ "registry": "https://registry.npmjs.org",
84
84
  "access": "public"
85
85
  },
86
86
  "devDependencies": {