Aidlab Flutter SDK

Welcome to the official Aidlab Flutter SDK. For installation instructions, usage guidelines, and examples, please visit our documentation.

This SDK is FFI-first: it talks to the Aidlab SDK (C++) via Dart FFI, and expects the host app to provide BLE via a per-device AidlabTransport.

AidlabManager creates a separate transport instance for each discovered device. If you provide your own BLE implementation, it should follow the same model: one transport instance per device, with address/name owned by the transport and lifecycle events reported through onDisconnect.

You can still construct a device manually with Device.withTransport(...), but the transport passed there must already be bound to exactly one device.

Supported Platforms

  • Android
  • iOS

Android Requirements

  • minSdkVersion must be at least 28.

Development

Flutter 3.47.0 is pinned with FVM in this package and its example:

fvm flutter pub get
fvm flutter analyze
cd example
fvm flutter build apk --debug
fvm flutter build ios --debug --simulator

The iOS plugin supports both CocoaPods and Swift Package Manager. Its shared native sources, package manifest, and XCFramework live under ios/aidlab_sdk/. After rebuilding the Apple core, synchronize the framework from the repository root with:

./Flutter/sync_ios_xcframework.sh

Libraries

aidlab_sdk