From 1c7e077e78bf254d85bf6af1e1beb936812fcbe8 Mon Sep 17 00:00:00 2001 From: namArora3112 Date: Thu, 20 Feb 2025 16:07:30 +0530 Subject: [PATCH 1/3] build error optimize read me updated --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a917db65f..ebf21b5b1 100644 --- a/README.md +++ b/README.md @@ -309,6 +309,14 @@ Underlying Objective-C module 'AEPRulesEngine' not found ``` Refer to the solution [here](https://github.com/adobe/aepsdk-react-native/issues/263#issuecomment-1498393770). +3. **Fixing Android Build Error in `@adobe/react-native-aepoptimize`** + +```java + TestReactNativeApp/node_modules/@adobe/react-native-aepoptimize/android/src/main/java/com/adobe/marketing/mobile/reactnative/optimize/RCTAEPOptimizeUtil.java:75: error: incompatible types: possible lossy conversion from double to int + offerWritableMap.putInt("score", offer.getScore()); +``` +This is caused by a breaking change in the `@adobe/react-native-aepoptimize` wrapper. Update to **version 6.1.0 or later** to resolve the type mismatch. For more details, see the [Adobe SDK Release Notes](#). + ## Sample Apps Refer to the [sample apps](https://github.com/adobe/aepsdk-react-native/tree/main/apps) for example implementations. From d7fb09c5451a1dcea22cc475f1224a8583f57d50 Mon Sep 17 00:00:00 2001 From: namArora3112 Date: Thu, 20 Feb 2025 16:19:47 +0530 Subject: [PATCH 2/3] optimize note added --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ebf21b5b1..65028e6cc 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ This repository is a monorepo and contains a collection of React Native modules | [@adobe/react-native-aeptarget](./packages/target) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aeptarget.svg)](https://www.npmjs.com/package/@adobe/react-native-aeptarget) ![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aeptarget) | [Target](https://developer.adobe.com/client-sdks/documentation/adobe-target) | Supported | | [@adobe/react-native-aepcampaignclassic](./packages/campaignclassic) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepcampaignclassic.svg)](https://www.npmjs.com/package/@adobe/react-native-aepcampaignclassic) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepcampaignclassic)](https://www.npmjs.com/package/@adobe/react-native-aepcampaignclassic) |[CampaignClassic](https://developer.adobe.com/client-sdks/documentation/adobe-campaign-classic) | Not Supported | +> [!NOTE] +> The `@adobe/react-native-aepoptimize` package introduced a **breaking change** affecting the `score` data type, causing a build failure due to a lossy conversion from `double` to `int`. To resolve this, **upgrade to version 6.1.0 or later**. Refer to the [Adobe SDK Release Notes](https://developer.adobe.com/client-sdks/home/release-notes/) for details. + > [!NOTE] > Since version 5.0.0 of the Adobe React Native SDK, all React Native libraries that share the same major version are compatible with each other. From f84b293ebe7844e15b8ad1525a3d0b902c3085f8 Mon Sep 17 00:00:00 2001 From: namArora3112 Date: Thu, 8 May 2025 12:57:03 +0530 Subject: [PATCH 3/3] updated optimize read me for build errors --- packages/optimize/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/optimize/README.md b/packages/optimize/README.md index f6f11bf11..331ec7d4f 100644 --- a/packages/optimize/README.md +++ b/packages/optimize/README.md @@ -31,6 +31,9 @@ Yarn: yarn add @adobe/react-native-aepoptimize ``` +> [!NOTE] +> The `@adobe/react-native-aepoptimize` package introduced a **breaking change** affecting the `score` data type, causing a build failure due to a lossy conversion from `double` to `int`. To resolve this, **upgrade to version 6.1.0 or later**. Refer to the [Adobe SDK Release Notes](https://developer.adobe.com/client-sdks/home/release-notes/) for details. + ## Usage ### Initializing and registering the extension