Skip to content

Commit 4f61f7d

Browse files
committed
Merge branch 'main' into create-new-log
2 parents 9ae1dd8 + 76e3fe5 commit 4f61f7d

94 files changed

Lines changed: 1167 additions & 806 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ android {
114114
minSdkVersion rootProject.ext.minSdkVersion
115115
targetSdkVersion rootProject.ext.targetSdkVersion
116116
multiDexEnabled rootProject.ext.multiDexEnabled
117-
versionCode 1009018502
118-
versionName "9.1.85-2"
117+
versionCode 1009018505
118+
versionName "9.1.85-5"
119119
// Supported language variants must be declared here to avoid from being removed during the compilation.
120120
// This also helps us to not include unnecessary language variants in the APK.
121121
resConfigs "en", "es"

ios/NewExpensify/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</dict>
4545
</array>
4646
<key>CFBundleVersion</key>
47-
<string>9.1.85.2</string>
47+
<string>9.1.85.5</string>
4848
<key>FullStory</key>
4949
<dict>
5050
<key>OrgId</key>

ios/NotificationServiceExtension/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.1.85</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.85.2</string>
16+
<string>9.1.85.5</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

ios/ShareViewController/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.1.85</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.85.2</string>
16+
<string>9.1.85.5</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionAttributes</key>

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "9.1.85-2",
3+
"version": "9.1.85-5",
44
"author": "Expensify, Inc.",
55
"homepage": "https://new.expensify.com",
66
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
@@ -46,7 +46,7 @@
4646
"test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand",
4747
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
4848
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
49-
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=328 --cache --cache-location=node_modules/.cache/eslint",
49+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=323 --cache --cache-location=node_modules/.cache/eslint",
5050
"lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh",
5151
"lint-watch": "npx eslint-watch --watch --changed",
5252
"shellcheck": "./scripts/shellCheck.sh",
@@ -129,7 +129,7 @@
129129
"date-fns-tz": "^3.2.0",
130130
"dom-serializer": "^0.2.2",
131131
"domhandler": "^4.3.0",
132-
"expensify-common": "^2.0.142",
132+
"expensify-common": "2.0.147",
133133
"expo": "53.0.7",
134134
"expo-asset": "^11.1.2",
135135
"expo-av": "^15.1.5",

patches/react-native/details.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,10 @@
176176
- Upstream PR/issue: https://github.com/facebook/react-native/pull/52530
177177
- E/App issue: https://github.com/Expensify/App/issues/65268
178178
- PR introducing patch: [#65925](https://github.com/Expensify/App/pull/65925)
179+
180+
### [react-native+0.79.2+025+fix-textinput-oncontentsizechange-dispatched-only-once-ios.patch](react-native+0.79.2+025+fix-textinput-oncontentsizechange-dispatched-only-once-ios.patch)
181+
182+
- Reason: This patch updates RCTTextInputComponentView.mm to fix an issue where the TextInput onContentSizeChange event is dispatched only once on iOS instead of being triggered for subsequent content size changes.
183+
- Upstream PR/issue: https://github.com/facebook/react-native/pull/50782
184+
- E/App issue: https://github.com/Expensify/App/issues/64900
185+
- PR introducing patch: [#65804](https://github.com/Expensify/App/pull/65804)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
diff --git a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm
2+
index fef9c63..1859b31 100644
3+
--- a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm
4+
+++ b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm
5+
@@ -70,6 +70,7 @@ @implementation RCTTextInputComponentView {
6+
NSDictionary<NSAttributedStringKey, id> *_originalTypingAttributes;
7+
8+
BOOL _hasInputAccessoryView;
9+
+ CGSize _previousContentSize;
10+
}
11+
12+
#pragma mark - UIView overrides
13+
@@ -86,6 +87,7 @@ - (instancetype)initWithFrame:(CGRect)frame
14+
_comingFromJS = NO;
15+
_didMoveToWindow = NO;
16+
_originalTypingAttributes = [_backedTextInputView.typingAttributes copy];
17+
+ _previousContentSize = CGSizeZero;
18+
19+
[self addSubview:_backedTextInputView];
20+
[self initializeReturnKeyType];
21+
@@ -326,7 +328,6 @@ - (void)updateState:(const State::Shared &)state oldState:(const State::Shared &
22+
- (void)updateLayoutMetrics:(const LayoutMetrics &)layoutMetrics
23+
oldLayoutMetrics:(const LayoutMetrics &)oldLayoutMetrics
24+
{
25+
- CGSize previousContentSize = _backedTextInputView.contentSize;
26+
27+
[super updateLayoutMetrics:layoutMetrics oldLayoutMetrics:oldLayoutMetrics];
28+
29+
@@ -335,7 +336,8 @@ - (void)updateLayoutMetrics:(const LayoutMetrics &)layoutMetrics
30+
_backedTextInputView.textContainerInset =
31+
RCTUIEdgeInsetsFromEdgeInsets(layoutMetrics.contentInsets - layoutMetrics.borderWidth);
32+
33+
- if (!CGSizeEqualToSize(previousContentSize, _backedTextInputView.contentSize) && _eventEmitter) {
34+
+ if (!CGSizeEqualToSize(_previousContentSize, _backedTextInputView.contentSize) && _eventEmitter) {
35+
+ _previousContentSize = _backedTextInputView.contentSize;
36+
static_cast<const TextInputEventEmitter &>(*_eventEmitter).onContentSizeChange([self _textInputMetrics]);
37+
}
38+
}

src/CONST/index.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5204,7 +5204,7 @@ const CONST = {
52045204
* The maximum count of items per page for SelectionList.
52055205
* When paginate, it multiplies by page number.
52065206
*/
5207-
MAX_SELECTION_LIST_PAGE_LENGTH: 50,
5207+
MAX_SELECTION_LIST_PAGE_LENGTH: 500,
52085208

52095209
/**
52105210
* Bank account names
@@ -6421,20 +6421,6 @@ const CONST = {
64216421
ONYXKEYS.PERSONAL_DETAILS_LIST,
64226422
ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
64236423
],
6424-
SEARCH_LIST: {
6425-
EXPENSES: 'expenses',
6426-
REPORTS: 'reports',
6427-
CHATS: 'chats',
6428-
SUBMIT: 'submit',
6429-
APPROVE: 'approve',
6430-
PAY: 'pay',
6431-
EXPORT: 'export',
6432-
STATEMENTS: 'statements',
6433-
UNAPPROVED_CASH: 'unapprovedCash',
6434-
UNAPPROVED_COMPANY_CARDS: 'unapprovedCompanyCards',
6435-
UNAPPROVED_CASH_ONLY: 'unapprovedCashOnly',
6436-
UNAPPROVED_COMPANY_CARDS_ONLY: 'unapprovedCompanyCardsOnly',
6437-
},
64386424
SEARCH_KEYS: {
64396425
EXPENSES: 'expenses',
64406426
REPORTS: 'reports',

src/Expensify.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import useDebugShortcut from './hooks/useDebugShortcut';
1818
import useIsAuthenticated from './hooks/useIsAuthenticated';
1919
import useLocalize from './hooks/useLocalize';
2020
import useOnyx from './hooks/useOnyx';
21+
import usePriorityMode from './hooks/usePriorityChange';
2122
import {updateLastRoute} from './libs/actions/App';
2223
import {disconnect} from './libs/actions/Delegate';
2324
import * as EmojiPickerAction from './libs/actions/EmojiPickerAction';
@@ -101,8 +102,12 @@ function Expensify() {
101102
const [isSidebarLoaded] = useOnyx(ONYXKEYS.IS_SIDEBAR_LOADED, {canBeMissing: true});
102103
const [screenShareRequest] = useOnyx(ONYXKEYS.SCREEN_SHARE_REQUEST, {canBeMissing: true});
103104
const [lastVisitedPath] = useOnyx(ONYXKEYS.LAST_VISITED_PATH, {canBeMissing: true});
105+
const [currentOnboardingPurposeSelected] = useOnyx(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, {canBeMissing: true});
106+
const [currentOnboardingCompanySize] = useOnyx(ONYXKEYS.ONBOARDING_COMPANY_SIZE, {canBeMissing: true});
107+
const [onboardingInitialPath] = useOnyx(ONYXKEYS.ONBOARDING_LAST_VISITED_PATH, {canBeMissing: true});
104108

105109
useDebugShortcut();
110+
usePriorityMode();
106111

107112
const [initialUrl, setInitialUrl] = useState<Route | null>(null);
108113

@@ -204,12 +209,12 @@ function Expensify() {
204209
// If the app is opened from a deep link, get the reportID (if exists) from the deep link and navigate to the chat report
205210
Linking.getInitialURL().then((url) => {
206211
setInitialUrl(url as Route);
207-
Report.openReportFromDeepLink(url ?? '');
212+
Report.openReportFromDeepLink(url ?? '', currentOnboardingPurposeSelected, currentOnboardingCompanySize, onboardingInitialPath);
208213
});
209214

210215
// Open chat report from a deep link (only mobile native)
211216
Linking.addEventListener('url', (state) => {
212-
Report.openReportFromDeepLink(state.url);
217+
Report.openReportFromDeepLink(state.url, currentOnboardingPurposeSelected, currentOnboardingCompanySize, onboardingInitialPath);
213218
});
214219
if (CONFIG.IS_HYBRID_APP) {
215220
HybridAppModule.onURLListenerAdded();

0 commit comments

Comments
 (0)