Adds Lytics.updateUser(), .upload(), updateIdentifiersAndUpload(), and updateUserAndUpload() methods to reduce code duplication and refactors the event methods to use them. The various event method overloads (like Lytics.consent(stream: name: timestamp: consent:shouldSend:) now call these helper methods rather than the full method (Lytics.consent(stream: name: timestamp:identifiers:attributes:consent:shouldSend:)).
Additional:
removes DependencyContainer.logger since Lytics has its own logger member
makes the members of UserManagerMock throwing to improve testability.
Adds
Lytics.updateUser()
,.upload()
,updateIdentifiersAndUpload()
, andupdateUserAndUpload()
methods to reduce code duplication and refactors the event methods to use them. The various event method overloads (likeLytics.consent(stream: name: timestamp: consent:shouldSend:)
now call these helper methods rather than the full method (Lytics.consent(stream: name: timestamp:identifiers:attributes:consent:shouldSend:)
).Additional:
DependencyContainer.logger
sinceLytics
has its ownlogger
memberUserManagerMock
throwing to improve testability.