refactor: Rename AttributeListener to ModifyIdentityListener#692
Conversation
AttributeListener now only declares identity APIs; kits implement BaseAttributeListener alongside it for user attribute callbacks. Update affected kits, AttributeListenerTestKit, and KitManagerImplTest mocks. Made-with: Cursor
Replace KitIntegration.AttributeListener with ModifyIdentityListener for set/remove user identity forwarding. Update KitManagerImpl, affected kits, and rename AttributeListenerTestKit to ModifyIdentityListenerTestKit. Clarify BaseAttributeListener Javadoc links and KitManagerImpl section comment. Made-with: Cursor
Drop the deprecated BaseAttributeListener type and merge its callbacks into UserAttributeListener. KitManagerImpl now forwards user attributes using UserAttributeListener only; incrementUserAttribute calls both increment and setUserAttribute on the same listener. Kits that previously implemented BaseAttributeListener without the extended callbacks now implement UserAttributeListener with no-op onIncrementUserAttribute, onSetUserTag, and onConsentStateUpdated. Update ModifyIdentityListenerTestKit and KitManagerImplTest accordingly. Made-with: Cursor
PR SummaryMedium Risk Overview Removes the deprecated shared Written by Cursor Bugbot for commit 39366c7. This will update automatically on new commits. Configure here. |
|


Background
The kit integration API mixed identity updates with a generic "attribute listener" abstraction. Identity-related callbacks are now expressed through a dedicated listener type so kit implementations and the SDK contract are clearer.
What Has Changed
AttributeListenertoModifyIdentityListenerand alignedKitIntegration/KitManagerImplwiring.BaseAttributeListener; user-attribute handling stays onUserAttributeListener.Screenshots/Video
N/A (SDK internals)
Checklist
Additional Notes
Targets branch
workstation/6.0-Release(includes #691 bulk user-attribute sync).