RUM-2485 Provide the parent container information for browser rum events#1831
Conversation
4ba06aa to
0011b35
Compare
| private fun resolveRumFeature(sdkCore: FeatureSdkCore): WebViewRumFeature? { | ||
| ( | ||
| sdkCore.getFeature(WebViewRumFeature.WEB_RUM_FEATURE_NAME) | ||
| ?.unwrap<StorageBackedFeature>() as? WebViewRumFeature |
There was a problem hiding this comment.
Is there a particular reason for doing ?.unwrap<StorageBackedFeature>() as? WebViewRumFeature instead of the ?.unwrap<WebViewRumFeature>()? Same for the similar calls below.
There was a problem hiding this comment.
oh...nope I think I did that just because I've seen it that way in another place. Better how you suggested
There was a problem hiding this comment.
I found the explanation why, is because in the core we are force casting it, we are not using as? :
override fun <T : Feature> unwrap(): T = wrappedFeature as T
There was a problem hiding this comment.
but it is us who is owning implementation anyway, so we if got the scope for the feature, we can safely unwrap with using as under the hood.
| } | ||
|
|
||
| private fun addToCache( | ||
| entry: Triple<String, Long, Boolean> |
There was a problem hiding this comment.
I would suggest to create a dedicated class maybe for that.
6869dff to
474b8b0
Compare
392479d to
5a770f1
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## feature/sr-web-view-support #1831 +/- ##
===============================================================
- Coverage 83.69% 83.68% -0.01%
===============================================================
Files 472 473 +1
Lines 16615 16706 +91
Branches 2504 2533 +29
===============================================================
+ Hits 13905 13979 +74
- Misses 2015 2019 +4
- Partials 695 708 +13
|
0734db6 to
527454f
Compare
243ea1e to
952e57a
Compare
952e57a to
688c2a7
Compare
What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)