analytics-react-native icon indicating copy to clipboard operation
analytics-react-native copied to clipboard

fix(adjust-plugin): update for compatibility with Adjust SDK v5

Open danieloquelis opened this issue 9 months ago • 0 comments

Fix Adjust Plugin Compatibility with Adjust React Native SDK v5

Summary
Adjust released v5 of its [React Native SDK](https://github.com/adjust/react_native_sdk), introducing some breaking changes. The Adjust team has provided a [migration guide](https://dev.adjust.com/en/sdk/migration/react-native/v4-to-v5) detailing these changes.

Currently, these breaking changes cause the analytics-react-native Adjust plugin to fail, as reported in [issue #1036](https://github.com/segmentio/analytics-react-native/issues/1036).

This PR updates the Adjust plugin to be compatible with Adjust React Native SDK v5 while ensuring continued functionality.

Changes

  • Refactored the Adjust integration to align with Adjust v5 API changes.
  • Updated method calls, event handling, and initialization flow to match the new SDK requirements.
  • Ensured backward compatibility where feasible.
  • Added necessary adjustments to maintain proper tracking and attribution behavior.

Testing

  • Verified that the plugin correctly initializes and communicates with Adjust.
  • Ensured events are tracked as expected.
  • Checked for regressions in existing functionality.

Notes
This update is necessary for users who want to upgrade to Adjust SDK v5 while continuing to use analytics-react-native.

Fixes #1036.

danieloquelis avatar Feb 24 '25 12:02 danieloquelis