This repository is a monorepo. It contains a collection of Adobe Experience Platform Mobile SDK Flutter plugins listed below. These plugins can be found in the plugins directory.
Extension | Package |
---|---|
Core (required) | |
Assurance | |
Edge | |
Consent | |
EdgeIdentity | |
EdgeBridge | |
UserProfile | |
Messaging |
Note
The Flutter plugins within this repository are specifically designed to support the Android and iOS platforms only.
Important
Adobe Experience Platform Flutter 4.x plugins now depend on Experience Platform iOS 5.x SDKs, which have been updated to align with Apple's latest guidelines on privacy manifest. For further details on how Apple's privacy-related announcements affect the Adobe mobile SDK for iOS, please refer to this document.
First, make sure that Flutter
is installed.
Install the package, run:
cd MyFlutterApp
flutter pub add flutter_{plugin_name}
This will automatically update your package's pubspec.yaml with the dependency, and run an implicit flutter pub get
.
Alternatively, Editing pubspec.yaml manually with dependencies.
dependencies:
flutter_{plugin_name}: ^{latest_version}
Run:
flutter pub get
For iOS development, after installing the plugin packages, download the pod dependencies by running the following command to link the libraries to your Xcode project :
cd ios && pod install && cd ..
To update native dependencies to latest available versions, run the following command:
cd ios && pod update && cd ..
For both installation methods, you need to import the package in your Dart code as follows:
import 'package:flutter_{extension}/flutter_{plugin_name}.dart'
Then, initialize the SDK using the following methods:
Note
Starting from Adobe Experience Platform Flutter 5.x, there is no longer a need to initialize the SDK on the native platforms, as was required in earlier versions.
Run:
$ cd plugins/flutter_{plugin_name}/
$ flutter test
If you are creating a plugin for an AEP-prefix (Swift) library, please follow the steps outlined here
For all other information on contributing see Contributing
Additional documentation about migrating from older Flutter libraries (ACP-prefixed Flutter libraries) to the latest Flutter libraries (AEP-prefixed libraries) can be found here
See License