Skip to content

feat: wrap alpha Health Connect APIs (mindfulness, skin temp, intensity, matchmaking, PHR) - #23

Merged
lam0819 merged 1 commit into
mainfrom
feat/wrap-alpha-apis
Nov 18, 2026
Merged

lam0819 merged 1 commit into
mainfrom
feat/wrap-alpha-apis

Conversation

@lam0819

@lam0819 lam0819 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Wraps the remaining alpha-gated Health Connect APIs that README called out as missing:

New record types (read / write / delete via existing readRecords / writeRecords)

  • MindfulnessSession — FEATURE_MINDFULNESS_SESSION
  • SkinTemperature (series of Celsius deltas + optional baseline) — FEATURE_SKIN_TEMPERATURE
  • ActivityIntensity (moderate / vigorous) — FEATURE_ACTIVITY_INTENSITY

New TurboModule surface

  • getFeatureStatus(feature) → 'available' | 'unavailable'
  • Matchmaking: checkIfMatchmakingIsPossible, launchMatchmaking
  • PHR / medical: createMedicalDataSource, getMedicalDataSources, deleteMedicalDataSourceWithData, upsertMedicalResources, readMedicalResources, deleteMedicalResources

Docs / tests

  • README supported-types table → 22 types + feature/matchmaking/PHR examples
  • Jest: 93 tests; Kotlin RecordMapperTest cases for the 3 new types
  • Local :solutionforest_android-health-connect:compileDebugKotlin succeeded (codegen + HC 1.2.0-alpha06)

Notes

  • Feature-gated APIs throw / reject when the installed Health Connect app lacks the feature — callers should check getFeatureStatus first.
  • Matchmaking + PHR are marked experimental in the Jetpack SDK (@ExperimentalMatchmakingApi / @ExperimentalPersonalHealthRecordApi).
  • No version bump / release in this PR.

Test plan

  • yarn lint, yarn typecheck, yarn test (93), yarn prepare
  • Compile library Kotlin via example Gradle
  • CI build-android
  • Manual: device with HC that supports skin temp / mindfulness / intensity / matchmaking / PHR

Made with Cursor

…ing, PHR)

Add MindfulnessSession, SkinTemperature and ActivityIntensity record CRUD,
getFeatureStatus, Matchmaking helpers, and Personal Health Record
(MedicalDataSource / MedicalResource) APIs against connect-client 1.2.0-alpha06.

Co-authored-by: Cursor <cursoragent@cursor.com>
@lam0819
lam0819 merged commit e926d79 into main Nov 18, 2026
7 checks passed
@lam0819
lam0819 deleted the feat/wrap-alpha-apis branch November 18, 2026 13:03
@lam0819 lam0819 mentioned this pull request Nov 18, 2026
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants