-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
iOS: Clear temp pasted files #51932
iOS: Clear temp pasted files #51932
Conversation
@cristipaval 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] |
Sorry @cristipaval I think @ahmedGaber93 and @roryabraham should review this |
@roryabraham is on parental leave, so I'll assign @ahmedGaber93 as the c+ and then I can take care of the rest. |
Sorry for the delay, reviewing today |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeUntitled.mp4iOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
LGTM!
All yours. @cristipaval |
✋ 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/cristipaval in version: 9.0.59-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.59-3 🚀
|
Explanation of Change
A follow up for #41239.
Problem: On iOS pasted files are copied as temporarily files (so that we can provide a direct uri) however I found out that those temp files are not cleared at all (unless the OS needs that space).
Solution: Instead of using the app temp folder directly (
NSTemporaryDirectory
) use the one provided by react-native (RCTTempFilePath
). The latter is cleared on next initialization (clearing the previous temp files).Fixed Issues
$ #41239
PROPOSAL:
Tests
console.log(fileURI)
after this linels -lh /Users/s77rt/Library/Developer/CoreSimulator/Devices/DEVICE-ID/data/Containers/Data/Application/APP-ID/tmp/ReactNative/1BA5BAD5-421A-494B-9B4B-9E0E48A208C6.jpeg
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
ios-1.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop