ND changes for Hybrid App switch to fragments on Android#55010
ND changes for Hybrid App switch to fragments on Android#55010jnowakow wants to merge 25 commits intoExpensify:mainfrom
Conversation
|
@johnmlee101 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] |
2781604 to
fc8cb33
Compare
…sion-labs/expensify-app-fork into hybrid-app-android-fragment
| const isLastScreenOnStack = bottomTabRoutes.length === 1 && rootState?.routes?.length === 1; | ||
|
|
||
| if (NativeModules.HybridAppModule && isLastScreenOnStack) { | ||
| NativeModules.HybridAppModule.exitApp(); | ||
| } | ||
|
|
There was a problem hiding this comment.
Why has this code been deleted?
EDIT: I think I figured that out, but I'd like to make sure anyway 😄
There was a problem hiding this comment.
When ND was on home screen and back button was clicked app crashed instead of going to background
# Conflicts: # src/types/modules/react-native.d.ts
|
Noting QA will run on the combined PRs in the hybridApp Android build from SWM https://expensify.slack.com/archives/C9YU7BX5M/p1737455902896799 |
# Conflicts: # modules/background-task/android/src/main/java/com/expensify/reactnativebackgroundtask/ReactNativeBackgroundTaskModule.kt
|
🚧 @mountiny has triggered a test hybrid app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
🚧 @mountiny has triggered a test hybrid app build. You can view the workflow run here. |
|
We got further with the builds 🎉 |
|
🚧 @mountiny has triggered a test hybrid app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
# Conflicts: # src/libs/TripReservationUtils.ts # src/pages/Search/EmptySearchView.tsx # src/pages/Travel/ManageTrips.tsx
|
🚧 @mountiny has triggered a test hybrid app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
🚧 @mountiny has triggered a test hybrid app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
🚧 @mountiny has triggered a test hybrid app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
mountiny
left a comment
There was a problem hiding this comment.
LGTM and the QA has done full Android testing on this PR https://github.com/Expensify/Mobile-Expensify/pull/13349
Conflicts are present
|
Discarding in favour of #56145 to be sure that we don't reintroduce bad commit |
cc @war-in @mateuuszzzzz
Explanation of Change
This PR adjust app to new way ND is opened in hybrid app on Android. For more details check https://github.com/Expensify/Mobile-Expensify/pull/13349
Fixed Issues
$ #55520
PROPOSAL: N/A
MOBILE-EXPENSIFY:13349
Tests
This PR requires big round of testing of whole app like transitions between app, navigation and all functionalities in ND.
Offline tests
App functionality should in offline mode should not change compared to current main.
QA Steps
Please download app for testing from this link. Unfortunately we can't use adhoc build for this one.
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
N/A
Android: mWeb Chrome
N/A
iOS: Native
N/A
iOS: mWeb Safari
N/A
MacOS: Chrome / Safari
N/A
MacOS: Desktop
N/A