1. Add the dependency
pubspec.yaml
2. Register the sampling package
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: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 →
General → Minimum Deployments → iOS 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
FlutterGeneratedPluginSwiftPackage, 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.