diff --git a/README.md b/README.md index b565c630..5034b99b 100644 --- a/README.md +++ b/README.md @@ -11,19 +11,20 @@ By using the Beta, you hereby acknowledge that the Beta is provided "as is" with ## About this project -This repository is a monorepo. It contains a collection of Adobe Experience Platform Mobile SDK React Native modules listed below. These modules can be found in the [packages](./packages) directory. +This repository is a monorepo. It contains a collection of Adobe Experience Platform Mobile SDK React Native modules listed below. These modules can be found in the [packages](./packages) directory. | Package Name | Latest Version | | ---- | ---- | | [@adobe/react-native-aepcore (required)](./packages/core) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepcore.svg)](https://www.npmjs.com/package/@adobe/react-native-aepcore) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepcore)](https://www.npmjs.com/package/@adobe/react-native-aepcore) | | [@adobe/react-native-aepuserprofile](./packages/userprofile) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepuserprofile.svg)](https://www.npmjs.com/package/@adobe/react-native-aepuserprofile) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepuserprofile)](https://www.npmjs.com/package/@adobe/react-native-aepuserprofile) | [@adobe/react-native-aepedge](./packages/edge) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepedge.svg)](https://www.npmjs.com/package/@adobe/react-native-aepedge) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepedge)](https://www.npmjs.com/package/@adobe/react-native-aepedge) | | [@adobe/react-native-aepedgeidentity](./packages/edgeidentity) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepedgeidentity.svg)](https://www.npmjs.com/package/@adobe/react-native-aepedgeidentity) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepedgeidentity)](https://www.npmjs.com/package/@adobe/react-native-aepedgeidentity) | -| [@adobe/react-native-aepassurance](./packages/assurance) | To be released | - - +| [@adobe/react-native-aepmessaging](./packages/messaging) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepmessaging.svg)](https://www.npmjs.com/package/@adobe/react-native-aepmessaging) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepmessaging)](https://www.npmjs.com/package/@adobe/react-native-aepmessaging) | +| [@adobe/react-native-aepassurance (3.0.0-alpha.1)](./packages/assurance) | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-aepassurance/alpha?color=green&label=npm%20package)](https://www.npmjs.com/package/@adobe/react-native-aepassurance/v/3.0.0-alpha.1) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepassurance)](https://www.npmjs.com/package/@adobe/react-native-aepassurance/v/3.0.0-alpha.1) | `@adobe/react-native-aep{extension}` is a wrapper around the iOS and Android [AEP SDK](https://aep-sdks.gitbook.io/docs/) to allow for integration with React Native applications. +> Note: @adobe/react-native-aepassurance <=2.0 is not compatible with @adobe/react-native-aepcore. Please use @adobe/react-native-aepassurance [3.x alpha versions or above](./packages/assurance#install-npm-package) + ## Requirements - React Native >= v0.60.0 @@ -32,7 +33,7 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat You need to install the SDK with [npm](https://www.npmjs.com/) and configure the native Android/iOS project in your React Native project. -> Note: If you are new to React Native, we suggest you follow the [React Native Getting Started]() page before continuing. +> Note: If you are new to React Native, we suggest you follow the [React Native Getting Started]() page before continuing. ### Install npm package @@ -54,7 +55,7 @@ To update native dependencies to latest available versions, run the following co [CLI autolink feature](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) links the module while building the app. -### Initializing +### Initializing Initializing the SDK should be done in native code inside your `AppDelegate` (iOS) and `MainApplication` (Android). The following code snippets demonstrate how to import and register the Mobile Core, Identity, Lifecycle, Signal, and Profile extensions. For other extensions, the documentation on how to initialize the extension can be found in `./packages/{extension}/README.md` @@ -85,6 +86,10 @@ Initializing the SDK should be done in native code inside your `AppDelegate` (iO ``` +> Note : While running iOS application after AEPSDK installation. If you have build error that states: +> "ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'" +> This is because AEPSDK 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. + ###### **Android:** ```java import com.adobe.marketing.mobile.AdobeCallback; diff --git a/apps/AEPSampleApp/App.js b/apps/AEPSampleApp/App.js index db8b5cd3..812bbd20 100644 --- a/apps/AEPSampleApp/App.js +++ b/apps/AEPSampleApp/App.js @@ -5,6 +5,7 @@ import { NavigationContainer } from '@react-navigation/native'; import Profile from './extensions/Profile'; import Core from './extensions/Core'; import Identity from './extensions/Identity'; +import Messaging from './extensions/Messaging'; import EdgeIdentity from './extensions/EdgeIdentity'; import Edge from './extensions/Edge'; import Assurance from './extensions/Assurance'; @@ -24,6 +25,9 @@ function HomeScreen({ navigation }) { onPress={() => navigation.navigate('Identity')} title="Identity" /> +