Skip to content
REFERENCE · SDK CONTRACT

Packages

Health Connector is a Melos-managed Flutter monorepo. Most applications depend only on the facade package.

Runtime packages

PackageRoleDirect app dependency?
health_connectorUnified public APIYes
health_connector_coreRecords, units, annotations, and abstractionsUsually transitive
health_connector_hc_androidAndroid Health Connect implementationTransitive
health_connector_hk_iosiOS HealthKit implementationTransitive
health_connector_loggerStructured logging contracts and processorsTransitive

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.4

Add 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

Released under the Apache 2.0 License.