Skip to content

release-7_0_0

Latest

Choose a tag to compare

@dominicmarmionswrve dominicmarmionswrve released this 18 Mar 10:54

Features

  • Legacy Architecture Deprecation: The React Native legacy architecture is now deprecated. A warning will be displayed when using the legacy architecture. Support for the legacy architecture will be removed in a future version. Please migrate to the New Architecture. For more information, see the React Native New Architecture documentation.
  • Updated the SDK to use React Native 0.83.0
  • Updated the Android native Swrve dependency to automatically use the latest minor version of release 12.X.X. For more information on the supported features and fixes, see the Android SDK release notes.
  • Added new refreshContent API to manually refresh campaigns and resources with callback support for completion status
  • Improved TypeScript type definitions for all public APIs including Embedded Message, Message Center, Push Inbox, and In-App Message APIs
  • Added comprehensive JSDoc documentation to all public APIs for better IntelliSense support
  • Migrated SDK to react-native-builder-bob project structure for improved build tooling and developer experience
  • Added JavaScript/TypeScript unit tests for the SDK
  • Replaced StringMap type with Record<string, string> for better TypeScript consistency (StringMap remains supported but deprecated)
  • Updated all void-returning methods to properly return Promise<void> instead of Promise<any>

Fixes

  • Fixed an issue where userResourcesUpdatedListener callbacks were incorrectly gated by the push listener check
  • Fixed type inconsistency where SwrvePushInboxMessage.messageId type didn’t match Push Inbox method parameters
  • Fixed IapReward interface incorrectly using single-element tuples instead of arrays
  • Fixed an issue with In-App Message clipboard functionality