RUM-9297: Add Compose actions tracking strategy API in RumConfiguration#2575
Conversation
4a17a14 to
cb9c390
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/actions-tracking #2575 +/- ##
============================================================
- Coverage 70.31% 70.14% -0.17%
============================================================
Files 804 808 +4
Lines 30196 30235 +39
Branches 5050 5052 +2
============================================================
- Hits 21230 21206 -24
- Misses 7587 7618 +31
- Partials 1379 1411 +32
🚀 New features to boost your workflow:
|
6eabf12 to
3de5964
Compare
3de5964 to
5f876ce
Compare
0xnm
left a comment
There was a problem hiding this comment.
overall lgtm! I've added few comments and suggestions.
| composeActionTrackingStrategy = composeActionsTrackingStrategy, | ||
| internalLogger = internalLogger |
There was a problem hiding this comment.
do we need to use named arguments if variable name matches?
There was a problem hiding this comment.
Personally I prefer always adding named argument for function call, for mainly these reasons:
- avoid argument orders mistakes if some arguments have same type.
- more readable in PR on GH, especially the variable name doesn't match exactly with argument name.
- be alerted with the silent break of argument name in the function declaration.
Maybe none of these advantages apply here in this PR, but I think it's a good thing to have more in our code base, WDYT?
There was a problem hiding this comment.
yes, sure, makes sense. just then maybe we can make it consistent and add all names for the remaining arguments in this function call?
There was a problem hiding this comment.
updated with full named arguments
5f876ce to
e8b3239
Compare
e8b3239 to
c80f7cc
Compare
What does this PR do?
Add API
setComposeTrackingStrategyin RumConfiguration which allows user to addComposeActionsTrackingStategy.So that
GestureListenerwill be able to use this strategy to locate target in Jetpack Compose.Motivation
RUM-9297
Review checklist (to be filled by reviewers)