Packages
Health Connector is a Melos-managed Flutter monorepo. Most applications depend only on the facade package.
Runtime packages
| Package | Role | Direct app dependency? |
|---|---|---|
health_connector | Unified public API | Yes |
health_connector_core | Records, units, annotations, and abstractions | Usually transitive |
health_connector_hc_android | Android Health Connect implementation | Transitive |
health_connector_hk_ios | iOS HealthKit implementation | Transitive |
health_connector_logger | Structured logging contracts and processors | Transitive |
Development package
health_connector_lint contains the shared analysis rules used by the workspace. Applications can adopt it independently when they want the same lint policy.
Dependency guidance
Start with only the facade:
yaml
dependencies:
health_connector: ^3.9.4Add a lower-level package directly only when your code imports its library. Keeping native implementations transitive lets the facade coordinate compatible releases.
Repository layout
text
packages/
├── health_connector/ # public facade
├── health_connector_core/ # shared domain model
├── health_connector_hc_android/ # Health Connect adapter
├── health_connector_hk_ios/ # HealthKit adapter
├── health_connector_logger/ # logging
└── health_connector_lint/ # analysis rules