To support the multiple instances in the v2 SDK, we have decided to get rid of the instanceName field and use writeKey in place of that.
This PR contains changes related to the replacement of the instanceName field with the writeKey.
I've also performed dev testing to ensure the following things work well: E2E flow of events and also checked that PreferenceManager, events DB and metrics DB are created properly.
Fixes # (issue)
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[ ] Version upgraded (project, README, gradle, podspec etc)
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added unit tests for the code
[ ] I have made corresponding changes to the documentation
Description
Refer to this: https://linear.app/rudderstack/issue/SDK-1287/change-initialization-of-sdk.
instanceName
field and usewriteKey
in place of that.Fixes # (issue)
Type of change
Checklist: