Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nft-videos): prevent app crash on nft video loads #5566

Merged
merged 6 commits into from
Jun 25, 2024
Merged

Conversation

MuckT
Copy link
Collaborator

@MuckT MuckT commented Jun 24, 2024

Description

This prevents the app from crashing when attempting to load NFT videos on iOS. It also adjusts the layout for iOS which previously used a header workaround prior to the changes in #5565.

Test plan

  • Tested locally on iOS
  • Tested locally on Android

Related issues

Backwards compatibility

Yes

Network scalability

N/A

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.46%. Comparing base (3365fa7) to head (bad81d6).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5566      +/-   ##
==========================================
- Coverage   86.47%   86.46%   -0.01%     
==========================================
  Files         764      764              
  Lines       31490    31487       -3     
  Branches     5451     5452       +1     
==========================================
- Hits        27230    27226       -4     
- Misses       4028     4029       +1     
  Partials      232      232              
Files Coverage Δ
src/nfts/NftMedia.tsx 81.01% <100.00%> (-0.70%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3365fa7...bad81d6. Read the comment docs.

Base automatically changed from tomm/act-1227 to main June 24, 2024 22:54
Copy link

emerge-tools bot commented Jun 24, 2024

1 build increased size

Name Version Download Change Install Change Approval
Celo (test)
org.celo.mobile.test
1.88.0 (153) 27.6 MB ⬆️ 158.4 kB (0.58%) 65.4 MB ⬆️ 361.5 kB (0.56%) N/A

Celo (test) 1.88.0 (153)
org.celo.mobile.test

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 361.5 kB (0.56%)
Total download size change: ⬆️ 158.4 kB (0.58%)

Largest size changes

Item Install Size Change
Code Signature ⬆️ 15.7 kB
📝 react_native_video.RCTVideo.Objc Metadata ⬆️ 10.6 kB
📝 react_native_video.RCTVideo.setSrc ⬆️ 6.8 kB
📝 react_native_video.RCTVideo.Swift Metadata ⬆️ 5.7 kB
DYLD.Fixups ⬆️ 5.2 kB
View Treemap

Image of diff


🛸 Powered by Emerge Tools

Comment trigger: Size diff threshold of 100.00kB exceeded

@MuckT MuckT added this pull request to the merge queue Jun 25, 2024
Merged via the queue into main with commit 369a269 Jun 25, 2024
16 checks passed
@MuckT MuckT deleted the tomm/act-1230 branch June 25, 2024 00:31
github-merge-queue bot pushed a commit that referenced this pull request Jun 26, 2024
### Description

Follow up to #5566 where iOS's initial load of iOS could obscure the
full screen controls. This also cleans up the navigation options and
moves them into `src/nfts/NftsInfoCarousel.tsx`.

| iOS Before | iOS After |
| ----- | ----- |
| <video
src="https://github.com/valora-inc/wallet/assets/26950305/f884e901-31d4-42e8-b2f7-b1b6dacb07ca"
/> | <video
src="https://github.com/valora-inc/wallet/assets/26950305/b55776a9-7e37-42fa-a261-e4e2d95bbb97"
/> |

### Test plan

- [x] Tested locally on iOS
- [x] Tested locally on Android

### Related issues

- N/A

### Backwards compatibility

Yes

### Network scalability

N/A
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.

2 participants