@adobe/react-native-aepmessaging 6.0.5 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,79 +33,13 @@ yarn add @adobe/react-native-aepmessaging
33
33
 
34
34
  ## Usage
35
35
 
36
- ### [Messaging](https://developer.adobe.com/client-sdks/documentation/adobe-journey-optimizer)
36
+ ### Initializing with SDK:
37
37
 
38
- ### Installing and registering the extension with the AEP Mobile Core
38
+ To initialize the SDK, use the following methods:
39
+ - [MobileCore.initializeWithAppId(appId)](https://github.com/adobe/aepsdk-react-native/tree/main/packages/core#initializewithappid)
40
+ - [MobileCore.initialize(initOptions)](https://github.com/adobe/aepsdk-react-native/tree/main/packages/core#initialize)
39
41
 
40
- ### Initialization
41
-
42
- Initializing the SDK should be done in native code, additional documentation on how to initialize the SDK can be found [here](https://github.com/adobe/aepsdk-react-native#initializing).
43
-
44
- Example:
45
-
46
- iOS
47
-
48
- ```objectivec
49
- @import AEPCore;
50
- @import AEPLifecycle;
51
- @import AEPEdge;
52
- @import AEPEdgeIdentity;
53
- @import AEPMessaging;
54
-
55
- ...
56
- @implementation AppDelegate
57
- -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
58
- [AEPMobileCore setLogLevel: AEPLogLevelDebug];
59
- [AEPMobileCore configureWithAppId:@"yourAppID"];
60
-
61
- const UIApplicationState appState = application.applicationState;
62
-
63
- [AEPMobileCore registerExtensions: @[AEPMobileEdgeIdentity.class, AEPMobileEdge.class, AEPMobileMessaging.class, AEPMobileOptimize.class] completion:^{
64
- if (appState != UIApplicationStateBackground) {
65
- [AEPMobileCore lifecycleStart:nil}];
66
- }
67
- }];
68
- return YES;
69
- }
70
-
71
- @end
72
- ```
73
-
74
- Android
75
-
76
- ```java
77
- import com.adobe.marketing.mobile.AdobeCallback;
78
- import com.adobe.marketing.mobile.InvalidInitException;
79
- import com.adobe.marketing.mobile.Lifecycle;
80
- import com.adobe.marketing.mobile.LoggingMode;
81
- import com.adobe.marketing.mobile.MobileCore;
82
- import com.adobe.marketing.mobile.Edge;
83
- import com.adobe.marketing.mobile.edge.identity.Identity;
84
- import com.adobe.marketing.mobile.Messaging;
85
-
86
- ...
87
- import android.app.Application;
88
- ...
89
- public class MainApplication extends Application implements ReactApplication {
90
- ...
91
- @Override
92
- public void on Create(){
93
- super.onCreate();
94
- ...
95
- MobileCore.setApplication(this);
96
- MobileCore.setLogLevel(LoggingMode.DEBUG);
97
- MobileCore.configureWithAppID("yourAppID");
98
- List<Class<? extends Extension>> extensions = Arrays.asList(
99
- Edge.EXTENSION,
100
- Identity.EXTENSION,
101
- Messaging.EXTENSION,
102
- Lifecycle.EXTENSION);
103
- MobileCore.registerExtensions(extensions, o -> {
104
- MobileCore.lifecycleStart(null);
105
- });
106
- }
107
- }
108
- ```
42
+ Refer to the root [Readme](https://github.com/adobe/aepsdk-react-native/blob/main/README.md) for more information about the SDK setup.
109
43
 
110
44
  ### Importing the extension:
111
45
 
@@ -372,23 +306,6 @@ var message: Message;
372
306
  message.track('sample text', MessagingEdgeEventType.IN_APP_DISMISS);
373
307
  ```
374
308
 
375
- ### handleJavascriptMessage
376
-
377
- Adds a handler for Javascript messages sent from the message's webview.
378
-
379
- **Syntax**
380
-
381
- ```javascript
382
- handleJavascriptMessage(name: string) : Promise<?any>
383
- ```
384
-
385
- **Example**
386
-
387
- ```javascript
388
- var message: Message;
389
- message.handleJavascriptMessage('test').then((data) => {});
390
- ```
391
-
392
309
  ### setAutoTrack
393
310
 
394
311
  Enables/Disables autotracking for message events.
@@ -80,6 +80,7 @@ dependencies {
80
80
  //noinspection GradleDynamicVersion
81
81
  implementation "com.facebook.react:react-native:+"
82
82
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
83
- api "com.adobe.marketing.mobile:messaging:3.+"
84
- implementation "com.facebook.react:react-native:+"
83
+ implementation platform("com.adobe.marketing.mobile:sdk-bom:3.+")
84
+ api "com.adobe.marketing.mobile:messaging"
85
+
85
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/react-native-aepmessaging",
3
- "version": "6.0.5",
3
+ "version": "7.0.0",
4
4
  "description": "Adobe Experience Platform support for React Native apps.",
5
5
  "homepage": "https://developer.adobe.com/client-sdks/documentation/",
6
6
  "license": "Apache-2.0",
@@ -28,9 +28,9 @@
28
28
  "name": "Adobe Experience Platform SDK Team"
29
29
  },
30
30
  "peerDependencies": {
31
- "@adobe/react-native-aepcore": "^6.0.0",
32
- "@adobe/react-native-aepedge": "^6.0.0",
33
- "@adobe/react-native-aepedgeidentity": "^6.0.0",
31
+ "@adobe/react-native-aepcore": "^7.0.0",
32
+ "@adobe/react-native-aepedge": "^7.0.0",
33
+ "@adobe/react-native-aepedgeidentity": "^7.0.0",
34
34
  "react-native": ">=0.60.0"
35
35
  },
36
36
  "publishConfig": {
@@ -39,5 +39,5 @@
39
39
  "installConfig": {
40
40
  "hoistingLimits": "dependencies"
41
41
  },
42
- "gitHead": "d907afaf1a8d7521a95ab744bf0e7ea6890e79db"
42
+ "gitHead": "34244aead8ef2c7845d78f3b59578effd8acefdd"
43
43
  }