Skip to content

Safe getting of Intent extras#1950

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/safe-get-intent-extras
Mar 29, 2024
Merged

Safe getting of Intent extras#1950
0xnm merged 1 commit into
developfrom
nogorodnikov/safe-get-intent-extras

Conversation

@0xnm

@0xnm 0xnm commented Mar 28, 2024

Copy link
Copy Markdown
Member

What does this PR do?

It seems that on old Androids (Android 7 and below) calling Intent#getExtras sometimes may throw different non-documented exceptions.

This PR creates a safe wrapper around this call.

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 March 28, 2024 09:13
@codecov-commenter

codecov-commenter commented Mar 28, 2024

Copy link
Copy Markdown

Codecov Report

Merging #1950 (95c014e) into develop (aab05c6) will increase coverage by 0.05%.
Report is 7 commits behind head on develop.
The diff coverage is 90.91%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1950      +/-   ##
===========================================
+ Coverage    83.14%   83.18%   +0.05%     
===========================================
  Files          486      486              
  Lines        17517    17555      +38     
  Branches      2600     2602       +2     
===========================================
+ Hits         14563    14603      +40     
+ Misses        2258     2254       -4     
- Partials       696      698       +2     
Files Coverage Δ
.../rum/tracking/ActivityLifecycleTrackingStrategy.kt 87.27% <90.91%> (+0.32%) ⬆️

... and 30 files with indirect coverage changes

@0xnm
0xnm merged commit 5e76858 into develop Mar 29, 2024
@0xnm
0xnm deleted the nogorodnikov/safe-get-intent-extras branch March 29, 2024 16:36
@xgouchet xgouchet added this to the 2.8.x milestone Apr 5, 2024
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.

4 participants