@adobe/react-native-aepmessaging 6.0.0 → 6.0.2

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.
@@ -8,7 +8,7 @@ buildscript {
8
8
  }
9
9
 
10
10
  dependencies {
11
- classpath "com.android.tools.build:gradle:7.2.1"
11
+ classpath 'com.android.tools.build:gradle:8.1.1'
12
12
  // noinspection DifferentKotlinGradleVersion
13
13
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
14
  }
@@ -36,31 +36,14 @@ def getExtOrIntegerDefault(name) {
36
36
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["ReactNativeMessaging_" + name]).toInteger()
37
37
  }
38
38
 
39
- def supportsNamespace() {
40
- def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
41
- def major = parsed[0].toInteger()
42
- def minor = parsed[1].toInteger()
43
-
44
- // Namespace support was added in 7.3.0
45
- if (major == 7 && minor >= 3) {
46
- return true
47
- }
48
-
49
- return major >= 8
50
- }
51
-
52
39
  android {
53
- if (supportsNamespace()) {
54
- namespace "com.adobe.marketing.mobile.reactnative.messaging"
55
40
 
56
- sourceSets {
57
- main {
58
- manifest.srcFile "src/main/AndroidManifestNew.xml"
59
- }
60
- }
41
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
42
+ if (agpVersion >= 8) {
43
+ namespace = "com.adobe.marketing.mobile.reactnative.messaging"
61
44
  }
62
45
 
63
- compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
46
+ compileSdk getExtOrIntegerDefault("compileSdk")
64
47
 
65
48
  defaultConfig {
66
49
  minSdkVersion getExtOrIntegerDefault("minSdkVersion")
@@ -1,5 +1,5 @@
1
1
  ReactNativeMessaging_kotlinVersion=1.7.0
2
2
  ReactNativeMessaging_minSdkVersion=21
3
- ReactNativeMessaging_targetSdkVersion=31
4
- ReactNativeMessaging_compileSdkVersion=31
3
+ ReactNativeMessaging_targetSdkVersion=34
4
+ ReactNativeMessaging_compileSdk=34
5
5
  ReactNativeMessaging_ndkversion=21.4.7075529
@@ -32,7 +32,7 @@ declare class Messaging {
32
32
  * Retrieves the last message that has been shown in the UI
33
33
  * @returns The latest message to have been displayed
34
34
  */
35
- static getLatestMessage(): Promise<Message>;
35
+ static getLatestMessage(): Promise<Message | null | undefined>;
36
36
  /**
37
37
  * Retrieves the previously fetched (and cached) feeds content from the SDK for the provided surfaces.
38
38
  * If the feeds content for one or more surfaces isn't previously cached in the SDK, it will not be retrieved from Adobe Journey Optimizer via the Experience Edge network.
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@adobe/react-native-aepmessaging",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
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",
7
- "main": "./src/index.ts",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
8
9
  "scripts": {
9
10
  "cleanup": "rm -rf node_modules",
10
11
  "tsc": "tsc"
@@ -38,5 +39,5 @@
38
39
  "installConfig": {
39
40
  "hoistingLimits": "dependencies"
40
41
  },
41
- "gitHead": "7df5d257041d7bc1072177e21ff4286cf04773f6"
42
+ "gitHead": "dded69cc74199e7350a886731cbfeb61bae5d257"
42
43
  }
package/src/Messaging.ts CHANGED
@@ -73,7 +73,7 @@ class Messaging {
73
73
  * Retrieves the last message that has been shown in the UI
74
74
  * @returns The latest message to have been displayed
75
75
  */
76
- static async getLatestMessage(): Promise<Message> {
76
+ static async getLatestMessage(): Promise<Message | null | undefined> {
77
77
  const message = await RCTAEPMessaging.getLatestMessage();
78
78
  return message ? new Message(message) : undefined;
79
79
  }
package/.babelrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-typescript", "react-native"],
3
- "plugins": [
4
- ["module-resolver", {
5
- "root": [ "./src/" ]
6
- }]
7
- ]
8
- }
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "noEmit": false,
5
- "rootDir": "./src",
6
- "outDir": "./dist",
7
- "noImplicitAny": false
8
- },
9
- "exclude": ["__tests__", "js"]
10
- }