Revert "Revert "Share extension Android and iOS implementation""#58834
Conversation
This reverts commit e167cd9.
|
|
|
|
|
@grgia There were conflicts in |
| <key>NSExtensionActivationSupportsFileWithMaxCount</key> | ||
| <integer>1</integer> | ||
| <key>NSExtensionActivationSupportsText</key> | ||
| <true/> |
There was a problem hiding this comment.
|
@289Adam289 ping me when you're ready to build. I added @luacmartins as a reviewer as well to keep track of this one |
|
|
|
|
|
@ikevin127 @grgia One of you needs to 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] |
|
@grgia I think we are ready to build. I hope everything works |
|
🚧 @grgia has triggered a test app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
cc @shubham1206agra are you able to do the final checklist for this build so it's ready for the next deploy today? |
|
^ reran android due to 1Pass 500 error |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Reviewer Checklist
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.1.18-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.18-4 🚀
|
| readFileAsync( | ||
| currentAttachment.content, | ||
| getFileName(currentAttachment.content), | ||
| (file) => { | ||
| if (isDraft) { | ||
| openReport( | ||
| report.reportID, | ||
| '', | ||
| displayReport.participantsList?.filter((u) => u.accountID !== currentUserID).map((u) => u.login ?? '') ?? [], | ||
| report, | ||
| undefined, | ||
| undefined, | ||
| undefined, | ||
| undefined, | ||
| ); | ||
| } | ||
| if (report.reportID) { | ||
| addAttachment(report.reportID, file, message); | ||
| } | ||
|
|
||
| const routeToNavigate = ROUTES.REPORT_WITH_ID.getRoute(reportOrAccountID); | ||
| Navigation.navigate(routeToNavigate, {forceReplace: true}); | ||
| }, | ||
| () => {}, | ||
| ); | ||
| }; |
There was a problem hiding this comment.
The readFileAsync here was not passed the fileType argument which caused the following issue on Android: Native:
which was fixed in a follow-up PR.
| onBackButtonPress={() => Navigation.navigate(ROUTES.HOME)} | ||
| /> | ||
| {isFileReady ? ( | ||
| <OnyxTabNavigator |
| } else if (option.isInvoiceRoom) { | ||
| option.text = getReportName(report); | ||
| option.alternateText = translateLocal('workspace.common.invoices'); | ||
| } else if (unknownUserDetails && !option.text) { |
There was a problem hiding this comment.
This line caused a regression
We should
- remove !option.text here since the unknownUserDetails only exists when we don't have a chat with this user
- add clearUnknownUserDetails to clean up as well
|
|
||
| return ( | ||
| <ScreenWrapper | ||
| includeSafeAreaPaddingBottom |
There was a problem hiding this comment.
Coming from #81181, we should enable includeSafeAreaPaddingBottom and shouldEnableKeyboardAvoidingView to avoid the referral banner being hidden behind the keyboard
This reverts commit e167cd9.
Explanation of Change
This PR reapplies changes from #55748
cc @grgia @shubham1206agra
MOBILE-EXPENSIFY: https://github.com/Expensify/Mobile-Expensify/pull/13484
Fixed Issues
$ #48788
$ #48789
PROPOSAL:
Tests
Share test:
Submit test:
Offline tests
QA Steps
Same as steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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