-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Update VisionCamera to 4.7.0 for Android 16KB memory page size compatibility #66640
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
Update VisionCamera to 4.7.0 for Android 16KB memory page size compatibility #66640
Conversation
|
|
|
@srikarparsi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Re-assigning you here @roryabraham if that's okay |
|
Coming from https://expensify.slack.com/archives/C08CZDJFJ77/p1752781508251129, I'd love to see if we can redo and simplify this patch to its most minimal form |
…-16kb-memory-page-size-compat
roryabraham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrispader the structure of patches has changed in this repo. It should be like this:
patches
|-- react-native-vision-camera
|---- details.md # This is required!
|---- react-native-vision-camera+4.7.0+001+add-new-arch-compatibility.patch
|---- react-native-vision-camera+4.7.0+002+native-stack-unmount-recycle-camera-session.patch
@roryabraham yes, sorry this is still WIP |
…-16kb-memory-page-size-compat
|
@roryabraham apparently we don't need any of these patches anymore. I've just tested vanilla VisionCamera without nay patches on both Standalone and Hybrid iOS and Android. @roryabraham @WoLewicki do you know if VisionCamera only caused issues with New Arch/Bridgeless on specific (Android) devices? Because i cannot see any issue with latest |
|
🚧 @roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
Requested some regression tests: https://expensify.slack.com/archives/C9YU7BX5M/p1754335109766819 |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Could you link the patch or issue that you mean here? |
@WoLewicki i'm talking about the huge VisionCamera patch that i was about to simplify in this PR and ended up just removing completely: https://github.com/Expensify/App/blob/main/patches/react-native-vision-camera/react-native-vision-camera%2B4.6.1.patch Were any of the changes from the previous RN upgrade PRs only needed for issues with specific devices? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-1.mp4android-2.mp4Android: mWeb Chromemweb-chrome.mp4iOS: HybridAppiOS: mWeb Safarimweb-safari.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@roryabraham , I tested on Android, mweb Chrome, and mweb Safari, camera worked well across all. I also tried a few edge cases like switching between foreground/background, locking the screen, and leaving the camera screen open for 10 minutes, and everything worked fine. I’m not able to test on iOS since my UDID isn’t added for the adhocs. You’ll either need to test iOS yourself, or if it’s possible to add my UDID, I can send it to you. |
I don't think so. It might be a case that the interop layer for using components was bad at the moment we added this patch and now it works well enough. Because if I understand it correctly, the package still is not officially moved to new arch yeah? So it now goes through interop layer when you removed the patch, so as long as it works correctly, we should be good. At the same time, I am not an expert on interop layer so can't say much about what are potential issues with such approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regression tests completed, no issues found
Testing was done on 2 different iPhones and 5 different Android phones
|
filled in the remainder of @jayeshmangwani's checklist since Applause tested on iOS |
|
Thanks for testing on iOS ❤️ |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.1.91-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.92-5 🚀
|
@roryabraham
Explanation of Change
Updates
react-native-vision-camerato version 4.7.0 which adds compatibility with Android 16 KB memory page sizes.Fixed Issues
$ #63871
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop