flutter_assurance
flutter_assurance
is a flutter plugin for the iOS and Android AEPAssurance SDK to allow for integration with Flutter applications. Functionality to enable the Assurance extension is provided entirely through Dart documented below.
Installation
Install instructions for this package can be found here.
Note: After you have installed the SDK, don't forget to run
pod install
in yourios
directory to link the libraries to your Xcode project.
Tests
Run:
flutter test
Usage
Assurance
Registering the extension with ACPCore:
Note: It is required to initialize the SDK via native code inside your AppDelegate and MainApplication for iOS and Android respectively. For more information see how to initialize Core.
iOS
Swift
import AEPAssurance
AEPAssurance.registerExtension()
Objective-C
#import "AEPAssurance.h"
[AEPAssurance registerExtension];
Android:
import com.adobe.marketing.mobile.Assurance;
Assurance.registerExtension();
Importing the SDK:
import 'package:flutter_assurance/flutter_assurance.dart';
Getting Assurance version:
String version = await FlutterAssurance.extensionVersion;
Starting a Assurance session:
FlutterAssurance.startSession(url);
Contributing
See CONTRIBUTING
License
See LICENSE