Setting the package up has two parts. This page covers the first one: the Dart dependency and the iOS project settings. The second half is the companion watch app.

1. Add the dependency

pubspec.yaml

2. Register the sampling package

Registering makes the nine watch measure types available, it registers the AppleWatchDevice so protocols containing one can be deserialized, and it hands CAMS the AppleWatchDeviceManager that communicates with the watch.

3. Enable Swift Package Manager

The AWARE watchOS framework is distributed only through Swift Package Manager. There is no CocoaPods podspec so make sure SwiftPM is enabled:
Verify it took effect:

4. Set the iOS deployment target to 16.0

The AWARE framework requires minimum iOS 16.
1

The Xcode project

Open ios/Runner.xcworkspace, select the Runner project → Runner target → GeneralMinimum DeploymentsiOS 16.0. Set it on the project as well as the target if they differ.
2

The Podfile

In ios/Podfile, uncomment and set the platform line:
ios/Podfile
3

The Flutter framework plist

In ios/Flutter/AppFrameworkInfo.plist:
ios/Flutter/AppFrameworkInfo.plist
4

Re-resolve

5. Generate the SwiftPM package and check it resolved

In the Xcode Project navigator you should now see Package DependenciesFlutterGeneratedPluginSwiftPackage, and carp_aware_package under it. The AWARE framework itself is not listed as a package. Currently it ships with the plugin as pre-compiled binaries.

Android

Not supported

Next step

Add the companion watch app