-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove userId from the configurationAndroid class (#448)
* fix: remove userId from ConfigurationAndroid and ConfigurationAndroidBuilder UserId should not be part of the sdk configuration. It can only be modified by the identify event. * fix: remove the code to update the userId in configuration object * refactor: use `androidStorage` to fetch the userId * test: fix failing test case in FillDefaultsPluginTest Use real storage object so that userId could be fetched * refactor: directly set the userId in storage Analytics.setUserId extension function was required for two purpose: First is to store the userId in storage and second is to update the userId configuration. Now we no longer require the latter part we can simplify the logic. * chore: remove setting of userId from v2Cache As we are no longer updating the userId in configuration object, we don't need to basically fetch the userId from the storage and again store it in storage. * refactor: create an extension function for empty string and use that
- Loading branch information
1 parent
a661748
commit c1aa1ec
Showing
7 changed files
with
28 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters