Skip to content

Commit bfa1c60

Browse files
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 <[email protected]>
1 parent 9b39e80 commit bfa1c60

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ This repository is a monorepo and contains a collection of React Native modules
2121
| [@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 |
2222
| [@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 |
2323

24+
> [!NOTE]
25+
> 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.
26+
2427
> [!NOTE]
2528
> 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.
2629
@@ -152,6 +155,14 @@ Underlying Objective-C module 'AEPRulesEngine' not found
152155
```
153156
Refer to the solution [here](https://github.com/adobe/aepsdk-react-native/issues/263#issuecomment-1498393770).
154157

158+
3. **Fixing Android Build Error in `@adobe/react-native-aepoptimize`**
159+
160+
```java
161+
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
162+
offerWritableMap.putInt("score", offer.getScore());
163+
```
164+
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](#).
165+
155166
## Sample Apps
156167
Refer to the [sample apps](https://github.com/adobe/aepsdk-react-native/tree/main/apps) for example implementations.
157168

packages/optimize/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Yarn:
3131
yarn add @adobe/react-native-aepoptimize
3232
```
3333

34+
> [!NOTE]
35+
> 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.
36+
3437
## Usage
3538

3639
### Initializing with SDK:

packages/places/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ dependencies {
4444
implementation 'com.facebook.react:react-native:+'
4545
implementation platform("com.adobe.marketing.mobile:sdk-bom:3.+")
4646
api "com.adobe.marketing.mobile:places"
47-
implementation 'com.google.android.gms:play-services-location:16.0.0'
47+
implementation 'com.google.android.gms:play-services-location:21.2.0'
4848
}

packages/places/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/react-native-aepplaces",
3-
"version": "7.0.0",
3+
"version": "7.0.1",
44
"description": "Adobe Experience Platform support for React Native apps.",
55
"homepage": "https://developer.adobe.com/client-sdks/documentation/",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)