Skip to content

RUM-9973: Remove addFirst, removeFirst, removeLast usages#2664

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-9973/replace-addfirst-removefirst-usages
May 21, 2025
Merged

RUM-9973: Remove addFirst, removeFirst, removeLast usages#2664
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-9973/replace-addfirst-removefirst-usages

Conversation

@0xnm

@0xnm 0xnm commented May 20, 2025

Copy link
Copy Markdown
Member

What does this PR do?

This PR removes addFirst, removeFirst, removeLast usages, since they can cause runtime errors if app is built with Android API 35 but with old build tooling like AGP 7.x instead of AGP 8.6.x, old desugaring version.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm requested review from a team as code owners May 20, 2025 13:13
ambushwork
ambushwork previously approved these changes May 20, 2025
@0xnm
0xnm force-pushed the nogorodnikov/rum-9973/replace-addfirst-removefirst-usages branch from dae0f65 to 7af55f5 Compare May 20, 2025 13:23
@0xnm
0xnm requested a review from ambushwork May 20, 2025 13:23
@codecov-commenter

codecov-commenter commented May 20, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 69.95%. Comparing base (131a0a2) to head (7af55f5).
⚠️ Report is 1241 commits behind head on develop.

Files with missing lines Patch % Lines
.../internal/rum/domain/WebViewNativeRumViewsCache.kt 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2664   +/-   ##
========================================
  Coverage    69.95%   69.95%           
========================================
  Files          820      820           
  Lines        30636    30637    +1     
  Branches      5155     5156    +1     
========================================
+ Hits         21429    21431    +2     
+ Misses        7769     7764    -5     
- Partials      1438     1442    +4     
Files with missing lines Coverage Δ
...ernal/instrumentation/gestures/GesturesListener.kt 92.52% <100.00%> (ø)
...ain/java/com/datadog/opentracing/PendingTrace.java 68.82% <ø> (ø)
.../internal/rum/domain/WebViewNativeRumViewsCache.kt 92.86% <80.00%> (+7.49%) ⬆️

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@0xnm
0xnm merged commit c696aa0 into develop May 21, 2025
@0xnm
0xnm deleted the nogorodnikov/rum-9973/replace-addfirst-removefirst-usages branch May 21, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants