Wavebrook Flutter SDK

The Wavebrook SDK for Flutter.

Requirements

  • Android 5.0+ (API 21)
  • iOS 13.0+

Installation

Add the dependency to your pubspec.yaml:

dependencies:
  wavebrook: ^2.2.0

iOS

If your project uses CocoaPods (the default unless Swift Package Manager support is enabled), add the Wavebrook specs repository at the top of ios/Podfile:

source 'https://github.com/wavebrook/cocoapods-specs.git'
source 'https://cdn.cocoapods.org/'

Projects with Flutter's Swift Package Manager integration enabled need no configuration — the SDK resolves through the public ios-spm package.

Usage

Import the library:

import 'package:wavebrook/wavebrook.dart';

Provide consent and initialize:

await ConsentManager.set(true);
await Wavebrook.initialize('<your-asset-key>');

The current consent is available as a typed model:

final ConsentData? consent = await ConsentManager.data;

Libraries

wavebrook