customerio / customerio-reactnative

MIT License
23 stars 11 forks source link

chore: update package configuration #293

Closed ami-aman closed 1 month ago

ami-aman commented 1 month ago

Linear: https://linear.app/customerio/issue/MBL-443/update-package-configuration-for-initialization

Problem

As a user, I want the ability to add configuration options during initialization, catering to both migrating users and new adopters of the packafe. This involves using updated configurations in the initialization method, allowing the end user to easily adjust configs in their app. For migrating users, while migrationSiteId is optional, it is expected for those transitioning from Journeys to CDP. If migrationSiteId is not provided, the SDK will assume no migration is needed, treating the user as a new CDP user, and any unprocessed tasks will not be handled.

Exlcusions

Testing

The current flow of the modules is broken, and the ticket does not include updates to the sample app, making testing of the changes not possible at this time. Testing will be carried out at the end of this milestone, consolidated into a single branch and PR.​