From bfa1c60a6249ba1303641c842f034aff3e91853e Mon Sep 17 00:00:00 2001 From: namArora3112 Date: Mon, 19 May 2025 14:33:10 +0530 Subject: [PATCH] Staging (Places sdk release) (#476) * build error optimize read me updated * optimize note added * enable TVOS platform for Edge Bridge enable TVOS platform for Edge Bridge * update app podfile to the latest versions update app podfile to the latest versions * updated optimize read me for build errors * location services updates (#475) * location services updates * places version bump --------- Co-authored-by: Calise Cheung --- README.md | 11 +++++++++++ packages/optimize/README.md | 3 +++ packages/places/android/build.gradle | 2 +- packages/places/package.json | 2 +- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 72dfe2130..46ef2ec90 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) | 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. @@ -152,6 +155,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. diff --git a/packages/optimize/README.md b/packages/optimize/README.md index 1e657e8b4..02c981a1a 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 with SDK: diff --git a/packages/places/android/build.gradle b/packages/places/android/build.gradle index c0f355098..2e3434028 100644 --- a/packages/places/android/build.gradle +++ b/packages/places/android/build.gradle @@ -44,5 +44,5 @@ dependencies { implementation 'com.facebook.react:react-native:+' implementation platform("com.adobe.marketing.mobile:sdk-bom:3.+") api "com.adobe.marketing.mobile:places" - implementation 'com.google.android.gms:play-services-location:16.0.0' + implementation 'com.google.android.gms:play-services-location:21.2.0' } diff --git a/packages/places/package.json b/packages/places/package.json index 663c7f42d..8af0a98b0 100644 --- a/packages/places/package.json +++ b/packages/places/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/react-native-aepplaces", - "version": "7.0.0", + "version": "7.0.1", "description": "Adobe Experience Platform support for React Native apps.", "homepage": "https://developer.adobe.com/client-sdks/documentation/", "license": "Apache-2.0",