Commit eca7329
authored
feat: move onSetUserAttributeList to BaseAttributeListener (#690)
* Delegate onSetUserAttributeList to setUserAttributeList (dual-interface kits)
Braze, AppsFlyer, and Singular implement both AttributeListener and
UserAttributeListener; wire empty onSetUserAttributeList to existing
setUserAttributeList behavior.
Made-with: Cursor
* Move onSetUserAttributeList to BaseAttributeListener
- Declare onSetUserAttributeList on BaseAttributeListener; remove from UserAttributeListener.
- KitManagerImpl calls BaseAttributeListener.onSetUserAttributeList for list attributes.
- AttributeListener-only kits delegate onSetUserAttributeList to setUserAttributeList.
- AttributeListenerTestKit implements onSetUserAttributeList via setUserAttributeList.
Made-with: Cursor
* test: KitManagerImplTest expect onSetUserAttributeList for list path
KitManagerImpl forwards list-valued attributes via BaseAttributeListener.onSetUserAttributeList when supportsAttributeLists is true.
Made-with: Cursor
* refactor: remove setUserAttributeList from AttributeListener
- Drop legacy two-arg setUserAttributeList from KitIntegration.AttributeListener;
KitManagerImpl already forwards list attributes via onSetUserAttributeList.
- Kits: use private helpers (Braze, Localytics) or inline no-ops; Adobe kits call
syncIds from onSetUserAttributeList only.
- AttributeListenerTestKit invokes list callback from onSetUserAttributeList.
Made-with: Cursor
* refactor: inline list attribute helpers into onSetUserAttributeList
- Braze: remove private setUserAttributeList; duplicate Braze getCurrentUser
flow in onSetUserAttributeList and setAllUserAttributes initial sync.
- Localytics: call Localytics.setProfileAttribute directly from
onSetUserAttributeList and setAllUserAttributes.
Made-with: Cursor
* Align onSetUserAttributeList parameter names with BaseAttributeListener
Rename Kotlin overrides and call sites to use attributeKey, attributeValueList,
and user consistently across kits and test kits.
Made-with: Cursor
* Document empty onSetUserAttributeList overrides with // not supported
Add a consistent comment for no-op kit implementations; align AppsFlyer
wording with other kits.
Made-with: Cursor1 parent e5f50e4 commit eca7329
24 files changed
Lines changed: 248 additions & 189 deletions
File tree
- android-kit-base/src
- androidTest/kotlin/com/mparticle/kits/testkits
- main/java/com/mparticle/kits
- test/kotlin/com/mparticle/kits
- kits
- adobemedia/adobemedia-5/src/main/kotlin/com/mparticle/kits
- adobe/adobe-5/src/main/kotlin/com/mparticle/kits
- appsflyer/appsflyer-6/src/main/kotlin/com/mparticle/kits
- apptentive/apptentive-6/src/main/kotlin/com/mparticle/kits
- apptimize/apptimize-3/src/main/kotlin/com/mparticle/kits
- branch/branch-5/src/main/kotlin/com/mparticle/kits
- braze
- braze-38/src/main/kotlin/com/mparticle/kits
- braze-39/src/main/kotlin/com/mparticle/kits
- braze-40/src/main/kotlin/com/mparticle/kits
- braze-41/src/main/kotlin/com/mparticle/kits
- clevertap/clevertap-7/src/main/kotlin/com/mparticle/kits
- comscore/comscore-6/src/main/kotlin/com/mparticle/kits
- ga4/ga4-23/src/main/kotlin/com/mparticle/kits
- ga/ga-23/src/main/kotlin/com/mparticle/kits
- kochava/kochava-5/src/main/kotlin/com/mparticle/kits
- leanplum/leanplum-7/src/main/kotlin/com/mparticle/kits
- localytics/localytics-6/src/main/kotlin/com/mparticle/kits
- singular/singular-12/src/main/kotlin/com/mparticle/kits
- urbanairship/urbanairship-20/src/main/kotlin/com/mparticle/kits
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
399 | 411 | | |
400 | 412 | | |
401 | 413 | | |
402 | 414 | | |
403 | | - | |
404 | | - | |
405 | 415 | | |
406 | 416 | | |
407 | 417 | | |
| |||
565 | 575 | | |
566 | 576 | | |
567 | 577 | | |
568 | | - | |
569 | | - | |
570 | 578 | | |
571 | 579 | | |
572 | 580 | | |
| |||
Lines changed: 6 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
| 684 | + | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
| 687 | + | |
688 | 688 | | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
702 | 693 | | |
703 | 694 | | |
704 | 695 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
562 | | - | |
| 561 | + | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | 251 | | |
257 | 252 | | |
258 | 253 | | |
| |||
283 | 278 | | |
284 | 279 | | |
285 | 280 | | |
286 | | - | |
| 281 | + | |
287 | 282 | | |
288 | 283 | | |
| 284 | + | |
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
130 | 128 | | |
131 | | - | |
| 129 | + | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
| |||
0 commit comments