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
Copy file name to clipboardExpand all lines: README.md
+59-54Lines changed: 59 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,19 @@
8
8
This repository is a monorepo and contains a collection of React Native modules for Adobe Experience Platform Mobile SDK as listed below. These modules can be found in the [packages](./packages) directory.
9
9
| Package Name | Latest Version | Native Extension |
> Note: @adobe/react-native-aepassurance <=2.0 is not compatible with @adobe/react-native-aepcore. Please use @adobe/react-native-aepassurance[3.x or above](./packages/assurance#install-npm-package).
> Warning: Please always use the latest major versions of the above libraries to avoid incompatible issues.
24
24
25
25
## Requirements
26
26
@@ -35,6 +35,7 @@ You need to install Adobe Experience Platform Mobile SDK with [npm](https://www.
35
35
> Note: If you are new to React Native, we suggest you follow the [React Native Getting Started](https://reactnative.dev) page before continuing.
36
36
37
37
### Install AEP npm packages
38
+
38
39
Adobe Experience Platform Mobile SDK packages can be installed from [npm](https://www.npmjs.com/) command.
39
40
40
41
> Note: `@adobe/react-native-aepcore` is required to be installed.
@@ -54,52 +55,60 @@ The following code snippet shows for Mobile Core and Edge Network extensions as
54
55
...
55
56
"dependencies": {
56
57
"react-native": "0.64.2",
57
-
"@adobe/react-native-aepcore": "^1.0.0", //core is required and includes aepcore, aepsignal, aeplifecycle, aepidentity libraries
58
-
"@adobe/react-native-aepedge": "^1.0.0",
59
-
"@adobe/react-native-aepedgeidentity": "^1.0.0",
60
-
"@adobe/react-native-aepedgeconsent": "^1.0.0",
58
+
"@adobe/react-native-aepcore": "^2.0.0", //core is required and includes aepcore, aepsignal, aeplifecycle, aepidentity libraries
59
+
"@adobe/react-native-aepedge": "^2.0.0",
60
+
"@adobe/react-native-aepedgeidentity": "^2.0.0",
61
+
"@adobe/react-native-aepedgeconsent": "^2.0.0",
61
62
...
62
63
},
63
64
```
65
+
64
66
Inside of the app directory, run
65
67
66
68
```bash
67
69
#if using node package manager
68
70
npm install
69
71
```
72
+
70
73
or
74
+
71
75
```bash
72
76
#if using yarn package manager
73
77
yarn install
74
78
```
75
79
76
80
##### ios development
81
+
77
82
For iOS development, after installing the plugins from npm, download the pod dependencies by running the following command:
83
+
78
84
```bash
79
85
cd ios && pod install &&cd ..
80
86
```
81
87
82
88
To update native dependencies to latest available versions, run the following command:
89
+
83
90
```bash
84
91
cd ios && pod update &&cd ..
85
92
```
93
+
86
94
## Initializing
87
95
88
-
Initializing the SDK should be done in native code inside your `AppDelegate` (iOS) and `MainApplication` (Android). The following code snippets demonstrate how to install and register the AEP Mobile Core and Edge Network extensions. Documentation on how to initialize each extension can be found in *./packages/{extension}/README.md*.
96
+
Initializing the SDK should be done in native code inside your `AppDelegate` (iOS) and `MainApplication` (Android). The following code snippets demonstrate how to install and register the AEP Mobile Core and Edge Network extensions. Documentation on how to initialize each extension can be found in _./packages/{extension}/README.md_.
89
97
90
98
###### **iOS**
91
99
92
100
```objective-c
93
101
//AppDelegate.h
94
102
@import AEPCore;
95
103
@import AEPServices;
96
-
@import AEPLifecycle;
97
-
@import AEPSignal;
98
-
@import AEPEdge;
99
-
@import AEPEdgeIdentity;
100
-
@import AEPEdgeConsent;
104
+
@import AEPLifecycle;
105
+
@import AEPSignal;
106
+
@import AEPEdge;
107
+
@import AEPEdgeIdentity;
108
+
@import AEPEdgeConsent;
101
109
...
102
110
```
111
+
103
112
```objective-c
104
113
//AppDelegate.m
105
114
...
@@ -108,13 +117,13 @@ Initializing the SDK should be done in native code inside your `AppDelegate` (iO
//enable this for Lifecycle. See Note for collecting Lifecycle metrics.
119
128
}
120
129
];
@@ -125,27 +134,29 @@ Initializing the SDK should be done in native code inside your `AppDelegate` (iO
125
134
@end
126
135
127
136
```
137
+
128
138
> To enable the Lifecycle metrics, [implement the Lifecycle APIs](./packages/core/README.md#lifecycle)
129
139
130
140
> Hint : While running iOS application after Adobe Experience Platform SDK installation. If you have build error that states:
131
-
> "ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'"
141
+
> "ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'"
132
142
> This is because Adobe Experience Platform SDK now requires the app uses swift interfaces. Add a dummy .swift file to your project to embed the swift standard libs. See the SampleApp presented in this repo for example.
0 commit comments