You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install instructions for each respective plugin can be found in each plugin's readme: `/plugins/{plugin_name}/README.md`. Start by installing `flutter_aepcore` which is a dependency for all other extensions.
51
-
52
-
## Usage
53
-
54
-
### Initializing
55
-
56
-
Initializing the SDK should be done in native code (AppDelegate / SceneDelegate for iOS and Application class for Android). Documentation for initializing the SDK can be found [here](https://developer.adobe.com/client-sdks/documentation/getting-started/get-the-sdk/#2-add-initialization-code). The linked documentation initalizes the User Profile extension which is not required or supported in Flutter.
57
-
58
-
As part of the initialization code, make sure that you set the SDK wrapper type to `Flutter` before you start the SDK.
55
+
#### iOS development
59
56
60
-
####iOS:
57
+
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 :
61
58
62
-
Add the initialization code in [AppDelegate.m or AppDelegate.swift](/example/ios/Runner/AppDelegate.m#L9) file of the generated iOS project.
59
+
```bash
60
+
cd ios && pod install &&cd ..
61
+
```
62
+
To update native dependencies to latest available versions, run the following command:
63
63
64
-
#### Android:
65
-
Create an [Application class](/example/android/app/src/main/java/com/adobe/marketing/mobile/flutter/flutter_aepsdk_example/MyApplication.java) which extends [FlutterApplication](https://api.flutter.dev/javadoc/io/flutter/app/FlutterApplication.html) and add the initialization code. Change your [AndroidManifest.xml](/example/android/app/src/main/AndroidManifest.xml#L9) to reference this new class.
64
+
```bash
65
+
cd ios && pod update &&cd ..
66
+
```
67
+
## Importing the Plugin
66
68
67
-
Once you have added the initialization code to your app, be sure to set the SDK wrapper type to Flutter before you start the SDK.
69
+
For both installation methods, you need to import the package in your **Dart** code as follows:
> Starting from Adobe Experience Platform Flutter **5.x**, there is no longer a need to initialize the SDK on the [native platforms](https://github.com/adobe/aepsdk_flutter/tree/v4.x?tab=readme-ov-file#usage), as was required in earlier versions.
> Note: For iOS app, after installing the AEP-prefixed packages, please update native dependecies by running the following command: `cd ios && pod update && cd ..`
92
37
93
-
```objectivec
94
38
95
-
// 1. remove the following header files
96
-
//#import "ACPCore.h"
97
-
//#import "ACPUserProfile.h"
98
-
//#import "ACPIdentity.h"
99
-
//#import "ACPLifecycle.h"
100
-
//#import "ACPSignal.h"
39
+
## Update SDK initialization
101
40
102
-
// 2. import AEP extensions
103
-
@import AEPCore;
104
-
@import AEPUserProfile;
105
-
@import AEPLifecycle;
106
-
@import AEPIdentity;
107
-
@import AEPServices;
108
-
@import AEPSignal;
109
-
@import AEPAssurance;
110
-
// --- 2. end ----
41
+
> [!NOTE]
42
+
> Starting from Adobe Experience Platform Flutter **5.x**, there is no longer a need to initialize the SDK on the [native platforms](https://github.com/adobe/aepsdk_flutter/tree/v4.x?tab=readme-ov-file#usage), as was required in earlier versions.
0 commit comments