Commit 6584c0e
authored
refactor: Route bulk user attribute sync through onSetAllUserAttributes (#691)
* Delegate onSetAllUserAttributes to setAllUserAttributes in dual-listener kits
AppsFlyer and Braze: forward snapshot maps to AttributeListener.setAllUserAttributes.
Singular: align override parameter names with UserAttributeListener and delegate.
Made-with: Cursor
* Move onSetAllUserAttributes to BaseAttributeListener; route sync via one call
- Declare onSetAllUserAttributes on BaseAttributeListener; remove from UserAttributeListener
- KitManagerImpl: call BaseAttributeListener.onSetAllUserAttributes only (no duplicate setAllUserAttributes)
- AttributeListener-only kits: delegate onSetAllUserAttributes to setAllUserAttributes
- AttributeListenerTestKit: align setAllUserAttributes maps with Java API
Made-with: Cursor
* Hoist FilteredMParticleUser in onUserAttributesReceived
Compute getInstance(mpid, provider) once before the supportsAttributeLists branch.
Made-with: Cursor
* Remove setAllUserAttributes from AttributeListener
Drop the method from KitIntegration.AttributeListener; full sync is delivered
via BaseAttributeListener.onSetAllUserAttributes. Kits keep setAllUserAttributes
as ordinary helpers (no override). Update KitManagerImplTest and
AttributeListenerTestKit accordingly.
Made-with: Cursor
* refactor(kits): inline setAllUserAttributes into onSetAllUserAttributes
Remove redundant setAllUserAttributes helpers from kits and AttributeListenerTestKit.
Update BaseAttributeListener Javadoc in KitIntegration.
Made-with: Cursor1 parent eca7329 commit 6584c0e
18 files changed
Lines changed: 177 additions & 207 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
- 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
- comscore/comscore-6/src/main/kotlin/com/mparticle/kits
- kochava/kochava-5/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: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
411 | 424 | | |
412 | 425 | | |
413 | 426 | | |
414 | 427 | | |
415 | | - | |
416 | | - | |
417 | 428 | | |
418 | 429 | | |
419 | 430 | | |
| |||
575 | 586 | | |
576 | 587 | | |
577 | 588 | | |
578 | | - | |
579 | | - | |
580 | 589 | | |
| 590 | + | |
581 | 591 | | |
582 | 592 | | |
583 | 593 | | |
| |||
Lines changed: 10 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
629 | 616 | | |
| 617 | + | |
630 | 618 | | |
631 | 619 | | |
632 | 620 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
| 522 | + | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
530 | | - | |
| 529 | + | |
| 530 | + | |
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | 297 | | |
304 | 298 | | |
305 | 299 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
Lines changed: 25 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
538 | 563 | | |
539 | 564 | | |
540 | 565 | | |
| |||
672 | 697 | | |
673 | 698 | | |
674 | 699 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | 700 | | |
708 | 701 | | |
709 | 702 | | |
| |||
0 commit comments