From d4c5ec43301a47adb4e7fe5ab589cfff997923cb Mon Sep 17 00:00:00 2001 From: pravin Date: Wed, 15 Sep 2021 21:45:41 -0700 Subject: [PATCH 01/20] Update readme for installation of Assurance alpa version --- README.md | 10 +++++--- packages/assurance/README.md | 45 ++++++++++++++++++++++++++---------- 2 files changed, 40 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index ec142c01..7f4a92cc 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ 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) | @@ -19,7 +19,7 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat | [@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-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](./packages/assurance) | To be released | +| [@adobe/react-native-aepassurance](./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. @@ -53,7 +53,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` @@ -84,6 +84,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/packages/assurance/README.md b/packages/assurance/README.md index a44feb93..b20fc3f4 100644 --- a/packages/assurance/README.md +++ b/packages/assurance/README.md @@ -1,8 +1,8 @@ # React Native AEP Assurance Extension -[![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepassurance.svg)](https://www.npmjs.com/package/@adobe/react-native-aepassurance) -[![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepassurance)](https://www.npmjs.com/package/@adobe/react-native-aepassurance) +[![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-aepassurance` is a wrapper around the iOS and Android [AEPAssurance SDK](https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-experience-platform-assurance) to allow for integration with React Native applications. Functionality to start Assurance session is provided through JavaScript documented below. @@ -10,21 +10,30 @@ You need to install the SDK with [npm](https://www.npmjs.com/) and configure the native Android/iOS project in your react native project. Before installing the Assurance extension it is recommended to begin by installing the [Core extension](../core/README.md). +### Install npm package -## Usage +> Requires `@adobe/react-native-aepcore` to be installed. -### [Assurance](https://aep-sdks.gitbook.io/docs/beta/project-griffon/using-project-griffon) +Install the `@adobe/react-native-aepassurance` alpha package: -##### Importing the extension: -```javascript -import {AEPAssurance} from '@adobe/react-native-aepassurance'; +```bash +cd MyReactApp +npm install @adobe/react-native-aepassurance@3.0.0-alpha.1 ``` -##### Getting the extension version: +For iOS development, after installing the plugins from npm, download the pod dependencies by running the following command: +`cd ios && pod install && cd ..` +To update native dependencies to latest available versions, run the following command: +`cd ios && pod update && cd ..` + +### Link + +[CLI autolink feature](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) links the module while building the app. + +## Usage + +### [Assurance](https://aep-sdks.gitbook.io/docs/beta/project-griffon/using-project-griffon) -```javascript -AEPAssurance.extensionVersion().then(version => console.log("AdobeExperienceSDK: AEPAssurance version: " + version)); -``` ##### Registering the extension with AEPCore: @@ -37,7 +46,7 @@ Initialize the SDK via native code inside your AppDelegate and MainApplication i - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [AEPMobileCore configureWithAppId:@"your-app-ID"]; - [AEPMobileCore registerExtensions: @[AEPMobileIdentity.class, AEPMobileLifecycle.class, AEPMobileAssurance.class] completion:^{ + [AEPMobileCore registerExtensions: @[AEPMobileLifecycle.class, AEPMobileAssurance.class] completion:^{ [AEPMobileCore lifecycleStart:nil]; }]; return YES; @@ -45,6 +54,16 @@ Initialize the SDK via native code inside your AppDelegate and MainApplication i ``` +To connect to a griffon session by scanning the QR code. Follow [Apple developer](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) documentation to set custom URL scheme for your application. Finally, implement the `openURL` delegate method and pass the deeplink URL to startSessionWithURL API. + +```objective-c +-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { + [AEPMobileAssurance startSessionWithUrl:url]; + return true; +} +``` + + ###### **Android:** ```java import com.adobe.marketing.mobile.Assurance; @@ -69,6 +88,8 @@ public class MainApplication extends Application implements ReactApplication { } ``` +To connect to a griffon session by scanning the QR code. Follow the [Android documentation](https://developer.android.com/training/app-links/deep-linking) on information about how to setup a deeplink. + ##### Start Assurance session: ```javascript From 7a0d6cefdf23d4b10b054a4097bb6a20365cbaff Mon Sep 17 00:00:00 2001 From: pravin Date: Thu, 16 Sep 2021 10:30:51 -0700 Subject: [PATCH 02/20] Warning Note downloading wrong Assurance version --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f4a92cc..263b3abb 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,13 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat | [@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-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](./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-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 the @adobe/react-native-aepassurance 3.x alpha versions or above + ## Requirements - React Native >= v0.60.0 From 8d8d5e9ab6ee77e8dcca5cea12a5cb6c29ecee30 Mon Sep 17 00:00:00 2001 From: pravin Date: Thu, 16 Sep 2021 10:35:42 -0700 Subject: [PATCH 03/20] Update the broken reactnative homepage link --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 263b3abb..28c60c93 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat `@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 the @adobe/react-native-aepassurance 3.x alpha versions or above +> 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 ## Requirements @@ -34,7 +33,7 @@ Please use the @adobe/react-native-aepassurance 3.x alpha versions or above 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 From d6665c5ef91a4f3391fe5a8d61ee90e40ad9e760 Mon Sep 17 00:00:00 2001 From: pravin Date: Thu, 16 Sep 2021 10:49:31 -0700 Subject: [PATCH 04/20] Update the package name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28c60c93..ffdcfc6a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat | [@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-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-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. From c467eec694e797e8010e7c26bff3bd538b60f343 Mon Sep 17 00:00:00 2001 From: pravin Date: Thu, 16 Sep 2021 11:01:31 -0700 Subject: [PATCH 05/20] Link to assurance install instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ffdcfc6a..0878d5dc 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat `@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 +> 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 From 59163a5edd9051572613595f028bf36d99f2b975 Mon Sep 17 00:00:00 2001 From: pravin Date: Thu, 16 Sep 2021 11:02:40 -0700 Subject: [PATCH 06/20] Fix link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0878d5dc..5034b99b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat `@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) +> 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 From 45b475e070ef51042c2bb10cbc5e041c30485b82 Mon Sep 17 00:00:00 2001 From: Yansong Yang Date: Tue, 21 Sep 2021 18:21:01 -0500 Subject: [PATCH 07/20] UserProfile (1.0.0-alpha.3) -> staging (#50) (#51) --- packages/userprofile/README.md | 9 +++++++++ packages/userprofile/package.json | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/userprofile/README.md b/packages/userprofile/README.md index 7e2829f4..150479b4 100644 --- a/packages/userprofile/README.md +++ b/packages/userprofile/README.md @@ -4,6 +4,15 @@ [![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) +## Prerequisites + +The UserProfile extension has the following peer dependency, which must be installed prior to installing the UserProfile extension: +- [Core](../core/README.md) + +## Installation + +See [Requirements and Installation](https://github.com/adobe/aepsdk-react-native#requirements) instructions on the main page + ## Usage ### Initializing and registering the extension diff --git a/packages/userprofile/package.json b/packages/userprofile/package.json index a6acefb3..4f5f2eb4 100644 --- a/packages/userprofile/package.json +++ b/packages/userprofile/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/react-native-aepuserprofile", - "version": "1.0.0-alpha.2", + "version": "1.0.0-alpha.3", "description": "Adobe Experience Platform support for React Native apps.", "homepage": "https://aep-sdks.gitbook.io/docs/", "license": "Apache-2.0", @@ -28,7 +28,7 @@ "name": "Adobe Experience Platform SDK Team" }, "peerDependencies": { - "@adobe/react-native-aepcore": "^1.0.0", + "@adobe/react-native-aepcore": "^1.0.0-alpha", "react-native": ">=0.60.0" }, "publishConfig": { From 3833c14b7498ea818fd9c2c68107689b0432da2d Mon Sep 17 00:00:00 2001 From: Yansong Yang Date: Tue, 21 Sep 2021 20:16:49 -0500 Subject: [PATCH 08/20] UserProfile (1.0.0-alpha.3) -> staging (#50) (#53) --- packages/userprofile/README.md | 9 +++++++++ packages/userprofile/package.json | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/userprofile/README.md b/packages/userprofile/README.md index 7e2829f4..150479b4 100644 --- a/packages/userprofile/README.md +++ b/packages/userprofile/README.md @@ -4,6 +4,15 @@ [![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) +## Prerequisites + +The UserProfile extension has the following peer dependency, which must be installed prior to installing the UserProfile extension: +- [Core](../core/README.md) + +## Installation + +See [Requirements and Installation](https://github.com/adobe/aepsdk-react-native#requirements) instructions on the main page + ## Usage ### Initializing and registering the extension diff --git a/packages/userprofile/package.json b/packages/userprofile/package.json index a6acefb3..4f5f2eb4 100644 --- a/packages/userprofile/package.json +++ b/packages/userprofile/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/react-native-aepuserprofile", - "version": "1.0.0-alpha.2", + "version": "1.0.0-alpha.3", "description": "Adobe Experience Platform support for React Native apps.", "homepage": "https://aep-sdks.gitbook.io/docs/", "license": "Apache-2.0", @@ -28,7 +28,7 @@ "name": "Adobe Experience Platform SDK Team" }, "peerDependencies": { - "@adobe/react-native-aepcore": "^1.0.0", + "@adobe/react-native-aepcore": "^1.0.0-alpha", "react-native": ">=0.60.0" }, "publishConfig": { From 32ce266753c25639b599e4c971aac0014c076239 Mon Sep 17 00:00:00 2001 From: Yansong Yang Date: Wed, 22 Sep 2021 09:37:27 -0500 Subject: [PATCH 09/20] Edge (1.0.0-alpha.2), Messaging (1.0.0-alpha.2) -> staging (#54) * quick fix for peerDependecies issue * update sample app dependencies to latest versions --- apps/AEPSampleApp/package.json | 6 +++--- packages/edge/package.json | 6 +++--- packages/messaging/package.json | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/AEPSampleApp/package.json b/apps/AEPSampleApp/package.json index a6d7d3ce..a2c30e19 100644 --- a/apps/AEPSampleApp/package.json +++ b/apps/AEPSampleApp/package.json @@ -12,10 +12,10 @@ }, "dependencies": { "@adobe/react-native-aepcore": "^1.0.0-alpha.1", - "@adobe/react-native-aepuserprofile": "^1.0.0-alpha.2", - "@adobe/react-native-aepedge": "1.0.0-alpha.1", + "@adobe/react-native-aepuserprofile": "^1.0.0-alpha.3", + "@adobe/react-native-aepedge": "1.0.0-alpha.2", "@adobe/react-native-aepedgeidentity": "^1.0.0-alpha.1", - "@adobe/react-native-aepmessaging": "^1.0.0-alpha.1", + "@adobe/react-native-aepmessaging": "^1.0.0-alpha.2", "@adobe/react-native-aepassurance": "^3.0.0-alpha.0", "@react-native-community/masked-view": "^0.1.11", "@react-navigation/bottom-tabs": "^5.8.0", diff --git a/packages/edge/package.json b/packages/edge/package.json index b0af136a..68a47008 100644 --- a/packages/edge/package.json +++ b/packages/edge/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/react-native-aepedge", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.2", "description": "Adobe Experience Platform Edge Network extension for Adobe Experience Platform Mobile SDK. Written and maintained by Adobe.", "homepage": "https://aep-sdks.gitbook.io/docs/", "license": "Apache-2.0", @@ -26,8 +26,8 @@ "name": "Adobe Experience Platform SDK Team" }, "peerDependencies": { - "@adobe/react-native-aepcore": "^1.0.0", - "@adobe/react-native-aepedgeidentity": "^1.0.0", + "@adobe/react-native-aepcore": "^1.0.0-alpha", + "@adobe/react-native-aepedgeidentity": "^1.0.0-alpha", "react-native": ">=0.60.0" }, "publishConfig": { diff --git a/packages/messaging/package.json b/packages/messaging/package.json index a812623c..ba1dfc0d 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/react-native-aepmessaging", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.2", "description": "Adobe Experience Platform support for React Native apps.", "homepage": "https://aep-sdks.gitbook.io/docs/", "license": "Apache-2.0", @@ -28,9 +28,9 @@ "name": "Adobe Experience Platform SDK Team" }, "peerDependencies": { - "@adobe/react-native-aepcore": "^1.0.0-alpha.1", - "@adobe/react-native-aepedge": "^1.0.0-alpha.1", - "@adobe/react-native-aepedgeidentity":"1.0.0-alpha.1", + "@adobe/react-native-aepcore": "^1.0.0-alpha", + "@adobe/react-native-aepedge": "^1.0.0-alpha", + "@adobe/react-native-aepedgeidentity": "^1.0.0-alpha", "react-native": ">=0.60.0" }, "publishConfig": { From e438749f8a508a20c8bbaaf243885a849e37fdb2 Mon Sep 17 00:00:00 2001 From: calise cheung Date: Wed, 22 Sep 2021 09:43:52 -0700 Subject: [PATCH 10/20] Update Edge Wrapper Readme Update Edge Wrapper Readme --- packages/edge/README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/packages/edge/README.md b/packages/edge/README.md index 1051dbb8..a441c5fe 100644 --- a/packages/edge/README.md +++ b/packages/edge/README.md @@ -4,8 +4,28 @@ [![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-aepedge` is a wrapper around the iOS and Android [Adobe Experience Platform Edge Network](https://aep-sdks.gitbook.io/docs/foundation-extensions/experience-platform-extension) to allow for integration with React Native applications. + +## Prerequisites + +The Edge Network extension has the following peer dependencies, which must be installed prior to installing the messaging extension: +- [Core](../core/README.md) +- [Edge Identity](../edgeidentity/README.md) + +## Installation + +See [Requirements and Installation](https://github.com/adobe/aepsdk-react-native#requirements) instructions on the main page + +Install the `@adobe/react-native-aepedge` package: + +```bash +cd MyReactApp +npm install @adobe/react-native-aepedge +``` ## Usage +### [Adobe Experience Platform Edge Network](https://aep-sdks.gitbook.io/docs/foundation-extensions/experience-platform-extension) + ### Initializing: Initializing the SDK should be done in native code, documentation on how to initialize the SDK can be found [here](https://github.com/adobe/aepsdk-react-native#initializing). @@ -76,8 +96,6 @@ public class MainApplication extends Application implements ReactApplication { } ``` -### [Edge Network](https://aep-sdks.gitbook.io/docs/foundation-extensions/experience-platform-extension) - #### Importing the extension: ```javascript import {AEPEdge, AEPExperienceEvent} from '@adobe/react-native-aepedge'; From c93100d098adacff67efd71f10f93db618016df0 Mon Sep 17 00:00:00 2001 From: calise cheung Date: Wed, 22 Sep 2021 09:59:10 -0700 Subject: [PATCH 11/20] update readme update readme --- packages/edge/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edge/README.md b/packages/edge/README.md index a441c5fe..b76dcbe6 100644 --- a/packages/edge/README.md +++ b/packages/edge/README.md @@ -10,7 +10,7 @@ The Edge Network extension has the following peer dependencies, which must be installed prior to installing the messaging extension: - [Core](../core/README.md) -- [Edge Identity](../edgeidentity/README.md) +- [Identity for Edge Network](../edgeidentity/README.md) ## Installation From 36806b1a4add0a89f235d52d6e14335cd1d5d83a Mon Sep 17 00:00:00 2001 From: Yansong Yang Date: Wed, 22 Sep 2021 12:26:09 -0500 Subject: [PATCH 12/20] Edge (1.0.0-alpha.2), Messaging (1.0.0-alpha.2) -> main (#55) --- apps/AEPSampleApp/package.json | 6 +++--- packages/edge/README.md | 22 ++++++++++++++++++++-- packages/edge/package.json | 6 +++--- packages/messaging/package.json | 8 ++++---- 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/apps/AEPSampleApp/package.json b/apps/AEPSampleApp/package.json index a6d7d3ce..a2c30e19 100644 --- a/apps/AEPSampleApp/package.json +++ b/apps/AEPSampleApp/package.json @@ -12,10 +12,10 @@ }, "dependencies": { "@adobe/react-native-aepcore": "^1.0.0-alpha.1", - "@adobe/react-native-aepuserprofile": "^1.0.0-alpha.2", - "@adobe/react-native-aepedge": "1.0.0-alpha.1", + "@adobe/react-native-aepuserprofile": "^1.0.0-alpha.3", + "@adobe/react-native-aepedge": "1.0.0-alpha.2", "@adobe/react-native-aepedgeidentity": "^1.0.0-alpha.1", - "@adobe/react-native-aepmessaging": "^1.0.0-alpha.1", + "@adobe/react-native-aepmessaging": "^1.0.0-alpha.2", "@adobe/react-native-aepassurance": "^3.0.0-alpha.0", "@react-native-community/masked-view": "^0.1.11", "@react-navigation/bottom-tabs": "^5.8.0", diff --git a/packages/edge/README.md b/packages/edge/README.md index 1051dbb8..b76dcbe6 100644 --- a/packages/edge/README.md +++ b/packages/edge/README.md @@ -4,8 +4,28 @@ [![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-aepedge` is a wrapper around the iOS and Android [Adobe Experience Platform Edge Network](https://aep-sdks.gitbook.io/docs/foundation-extensions/experience-platform-extension) to allow for integration with React Native applications. + +## Prerequisites + +The Edge Network extension has the following peer dependencies, which must be installed prior to installing the messaging extension: +- [Core](../core/README.md) +- [Identity for Edge Network](../edgeidentity/README.md) + +## Installation + +See [Requirements and Installation](https://github.com/adobe/aepsdk-react-native#requirements) instructions on the main page + +Install the `@adobe/react-native-aepedge` package: + +```bash +cd MyReactApp +npm install @adobe/react-native-aepedge +``` ## Usage +### [Adobe Experience Platform Edge Network](https://aep-sdks.gitbook.io/docs/foundation-extensions/experience-platform-extension) + ### Initializing: Initializing the SDK should be done in native code, documentation on how to initialize the SDK can be found [here](https://github.com/adobe/aepsdk-react-native#initializing). @@ -76,8 +96,6 @@ public class MainApplication extends Application implements ReactApplication { } ``` -### [Edge Network](https://aep-sdks.gitbook.io/docs/foundation-extensions/experience-platform-extension) - #### Importing the extension: ```javascript import {AEPEdge, AEPExperienceEvent} from '@adobe/react-native-aepedge'; diff --git a/packages/edge/package.json b/packages/edge/package.json index b0af136a..68a47008 100644 --- a/packages/edge/package.json +++ b/packages/edge/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/react-native-aepedge", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.2", "description": "Adobe Experience Platform Edge Network extension for Adobe Experience Platform Mobile SDK. Written and maintained by Adobe.", "homepage": "https://aep-sdks.gitbook.io/docs/", "license": "Apache-2.0", @@ -26,8 +26,8 @@ "name": "Adobe Experience Platform SDK Team" }, "peerDependencies": { - "@adobe/react-native-aepcore": "^1.0.0", - "@adobe/react-native-aepedgeidentity": "^1.0.0", + "@adobe/react-native-aepcore": "^1.0.0-alpha", + "@adobe/react-native-aepedgeidentity": "^1.0.0-alpha", "react-native": ">=0.60.0" }, "publishConfig": { diff --git a/packages/messaging/package.json b/packages/messaging/package.json index a812623c..ba1dfc0d 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/react-native-aepmessaging", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.2", "description": "Adobe Experience Platform support for React Native apps.", "homepage": "https://aep-sdks.gitbook.io/docs/", "license": "Apache-2.0", @@ -28,9 +28,9 @@ "name": "Adobe Experience Platform SDK Team" }, "peerDependencies": { - "@adobe/react-native-aepcore": "^1.0.0-alpha.1", - "@adobe/react-native-aepedge": "^1.0.0-alpha.1", - "@adobe/react-native-aepedgeidentity":"1.0.0-alpha.1", + "@adobe/react-native-aepcore": "^1.0.0-alpha", + "@adobe/react-native-aepedge": "^1.0.0-alpha", + "@adobe/react-native-aepedgeidentity": "^1.0.0-alpha", "react-native": ">=0.60.0" }, "publishConfig": { From 2d6dcbe3dda683fbd32517264ee51bdd78a610a0 Mon Sep 17 00:00:00 2001 From: Yansong Yang Date: Wed, 22 Sep 2021 19:31:14 -0500 Subject: [PATCH 13/20] EdgeIdentity (1.0.0-alpha.2) -> staging (#59) --- apps/AEPSampleApp/extensions/EdgeIdentity.js | 4 ++ apps/AEPSampleApp/extensions/Identity.js | 2 +- apps/AEPSampleApp/ios/Podfile.lock | 38 +++++++++---------- apps/AEPSampleApp/package.json | 4 +- packages/edgeidentity/README.md | 26 ++++++++++++- .../__tests__/AEPEdgeIdentityTests.ts | 6 +++ .../RCTAEPEdgeIdentityModule.java | 10 +++++ .../edgeidentity/ios/src/RCTAEPEdgeIdentity.m | 5 +++ packages/edgeidentity/js/AEPIdentity.js | 11 ++++++ packages/edgeidentity/js/index.d.ts | 1 + packages/edgeidentity/package.json | 4 +- tests/jest/setup.ts | 1 + 12 files changed, 87 insertions(+), 25 deletions(-) diff --git a/apps/AEPSampleApp/extensions/EdgeIdentity.js b/apps/AEPSampleApp/extensions/EdgeIdentity.js index 0abd598f..6733e413 100644 --- a/apps/AEPSampleApp/extensions/EdgeIdentity.js +++ b/apps/AEPSampleApp/extensions/EdgeIdentity.js @@ -25,6 +25,7 @@ export default EdgeIdentity = ({ navigation }) => {