Skip to content

Group patches in directories #210

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

Draft
wants to merge 2 commits into
base: @wolewicki/rn-77-upgrade
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"setupNewDotWebForEmulators": "./scripts/setup-newdot-web-emulators.sh",
"startAndroidEmulator": "./scripts/start-android.sh",
"postinstall": "./scripts/postInstall.sh",
"patch-package": "./scripts/createPatch.sh",
"clean": "./scripts/clean.sh",
"clean-standalone": "STANDALONE_NEW_DOT=true ./scripts/clean.sh",
"android": "./scripts/set-pusher-suffix.sh && ./scripts/run-build.sh --android",
Expand Down
5 changes: 5 additions & 0 deletions patches/@onfido/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List of all patches

- [@onfido+react-native-sdk+10.6.0.patch](@onfido+react-native-sdk+10.6.0.patch)
- Link to upstream PR: https://github.com/onfido/react-native-sdk/pull/115
- support for new architecture
7 changes: 7 additions & 0 deletions patches/@perf-profiler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# List of all patches

- [@perf-profiler+android+0.13.0+001+pid-changed.patch](@perf-profiler+android+0.13.0+001+pid-changed.patch)
- no upstream PR, asked here: https://github.com/Expensify/App/pull/46279#discussion_r1989549237

- [@perf-profiler+types+0.8.0+001+pid-changed.patch](@perf-profiler+types+0.8.0+001+pid-changed.patch)
- no upstream PR, asked here: https://github.com/Expensify/App/pull/46279#discussion_r1989549237
4 changes: 4 additions & 0 deletions patches/@react-native-camera-roll/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [@react-native-camera-roll+camera-roll+7.4.0+002+asset.patch](@react-native-camera-roll+camera-roll+7.4.0+002+asset.patch)
- no upstream PR
6 changes: 6 additions & 0 deletions patches/@react-native-community/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# List of all patches

- [@react-native-community+netinfo+11.2.1+001+initial.patch](@react-native-community+netinfo+11.2.1+001+initial.patch)
- no upstream PR
- [@react-native-community+netinfo+11.2.1+002+turbomodule.patch](@react-native-community+netinfo+11.2.1+002+turbomodule.patch)
- no upstream PR
18 changes: 18 additions & 0 deletions patches/@react-native-firebase/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# List of all patches

- [@react-native-firebase+analytics+12.9.3+001+hybrid-app.patch](@react-native-firebase+analytics+12.9.3+001+hybrid-app.patch)
- can be moved to Mobile-Expensify/patches

- [@react-native-firebase+app+12.9.3+001+hybrid-app.patch](@react-native-firebase+app+12.9.3+001+hybrid-app.patch)
- can be moved to Mobile-Expensify/patches

- [@react-native-firebase+app+12.9.3+002+bridgeless.patch](@react-native-firebase+app+12.9.3+002+bridgeless.patch)
- Link to upstream issue: https://github.com/facebook/react-native/issues/46779
- Link to upstream PR: https://github.com/invertase/react-native-firebase/pull/7688
- upstream PR merged but we would have to bump version to 19...

- [@react-native-firebase+crashlytics+12.9.3+001+hybrid-app.patch](@react-native-firebase+crashlytics+12.9.3+001+hybrid-app.patch)
- can be moved to Mobile-Expensify/patches

- [@react-native-firebase+perf+12.9.3+001+hybrid-app.patch](@react-native-firebase+perf+12.9.3+001+hybrid-app.patch)
- can be moved to Mobile-Expensify/patches
19 changes: 19 additions & 0 deletions patches/@react-navigation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# List of all patches

- [@react-navigation+core+6.4.11+001+fix-react-strictmode.patch](@react-navigation+core+6.4.11+001+fix-react-strictmode.patch)
- Link to explanation: https://github.com/Expensify/App/pull/42592#issuecomment-2178832015

- [@react-navigation+core+6.4.11+002+getStateFromPath-getPathFromState-configs-caching.patch](@react-navigation+core+6.4.11+002+getStateFromPath-getPathFromState-configs-caching.patch)
- Link to upstream PR: https://github.com/react-navigation/react-navigation/pull/12120
- already merged but not sure in which version

- [@react-navigation+core+6.4.11+003+platform-navigation-stack-types.patch](@react-navigation+core+6.4.11+003+platform-navigation-stack-types.patch)
- no upstream PR
- [@react-navigation+core+6.4.11+004+side-pane.patch](@react-navigation+core+6.4.11+004+side-pane.patch)
- [@react-navigation+material-top-tabs+6.6.3.patch](@react-navigation+material-top-tabs+6.6.3.patch)
- [@react-navigation+native+6.1.12.patch](@react-navigation+native+6.1.12.patch)
- [@react-navigation+native-stack+6.9.26+001+keyboardHandlingEnabled-prop.patch](@react-navigation+native-stack+6.9.26+001+keyboardHandlingEnabled-prop.patch)
- [@react-navigation+native-stack+6.9.26+002+added-interaction-manager-integration.patch](@react-navigation+native-stack+6.9.26+002+added-interaction-manager-integration.patch)
- [@react-navigation+stack+6.3.29+001+initial.patch](@react-navigation+stack+6.3.29+001+initial.patch)
- [@react-navigation+stack+6.3.29+002+dontDetachScreen.patch](@react-navigation+stack+6.3.29+002+dontDetachScreen.patch)
-
5 changes: 5 additions & 0 deletions patches/@rnmapbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List of all patches

- [@rnmapbox+maps+10.1.33.patch](@rnmapbox+maps+10.1.33.patch)
- Link to upstream PR: https://github.com/rnmapbox/maps/pull/3749
- support for RN 77
4 changes: 4 additions & 0 deletions patches/eslint-plugin-react-native-a11y/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [eslint-plugin-react-native-a11y+3.3.0.patch](eslint-plugin-react-native-a11y+3.3.0.patch)
- no upstream PR
22 changes: 22 additions & 0 deletions patches/expo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# List of all patches

- [expo+52.0.28+001+dont-change-formdata.patch](expo+52.0.28+001+dont-change-formdata.patch)
- Link to upstream PR: https://github.com/expo/expo/pull/35243
- already merged and will be included in next version

- [expo-asset+11.0.2+002+initial.patch](expo-asset+11.0.2+002+initial.patch)
- ?
- [expo-image-manipulator+13.0.6+001+initial.patch](expo-image-manipulator+13.0.6+001+initial.patch)
- [expo-image-manipulator+13.0.6+002+fix-type-exports.patch](expo-image-manipulator+13.0.6+002+fix-type-exports.patch)
- Link to upstream PR: https://github.com/expo/expo/pull/33446
- already merged

- [expo-modules-core+2.2.0+001+disableViewRecycling.patch](expo-modules-core+2.2.0+001+disableViewRecycling.patch)
- no upstream PR

- [expo-modules-core+2.2.0+002+change-global-type.patch](expo-modules-core+2.2.0+002+change-global-type.patch)
- no upstream PR

- [jest-expo+52.0.3.patch](jest-expo+52.0.3.patch)
- Link to upstream PR: https://github.com/expo/expo/pull/35162
- already merged
File renamed without changes.
4 changes: 4 additions & 0 deletions patches/focus-trap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [focus-trap+7.6.4.patch](focus-trap+7.6.4.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/html-entities/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [html-entities+2.5.2.patch](html-entities+2.5.2.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/http-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [http-server+14.1.1.patch](http-server+14.1.1.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/link/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [link+2.1.1.patch](link+2.1.1.patch)
- no upstream PR
96 changes: 48 additions & 48 deletions patches/link+2.1.1.patch → patches/link/link+2.1.1.patch
Original file line number Diff line number Diff line change
Expand Up @@ -513,54 +513,54 @@ index ae69549..5687188 100755
+
+var toBatchSyntax$1 = {};
+
+toBatchSyntax$1.replaceDollarWithPercentPair = replaceDollarWithPercentPair;
+toBatchSyntax$1.convertToSetCommand = convertToSetCommand;
+toBatchSyntax$1.convertToSetCommands = convertToSetCommands;
+
+function convertToSetCommand (key, value) {
+ var line = '';
+ key = key || '';
+ key = key.trim();
+ value = value || '';
+ value = value.trim();
+ if (key && value && value.length > 0) {
+ line = '@SET ' + key + '=' + replaceDollarWithPercentPair(value) + '\r\n';
+ }
+ return line
+}
+
+function extractVariableValuePairs (declarations) {
+ var pairs = {};
+ declarations.map(function (declaration) {
+ var split = declaration.split('=');
+ pairs[split[0]] = split[1];
+ });
+ return pairs
+}
+
+function convertToSetCommands (variableString) {
+ var variableValuePairs = extractVariableValuePairs(variableString.split(' '));
+ var variableDeclarationsAsBatch = '';
+ Object.keys(variableValuePairs).forEach(function (key) {
+ variableDeclarationsAsBatch += convertToSetCommand(key, variableValuePairs[key]);
+ });
+ return variableDeclarationsAsBatch
+}
+
+function replaceDollarWithPercentPair (value) {
+ var dollarExpressions = /\$\{?([^$@#?\- \t{}:]+)\}?/g;
+ var result = '';
+ var startIndex = 0;
+ do {
+ var match = dollarExpressions.exec(value);
+ if (match) {
+ var betweenMatches = value.substring(startIndex, match.index) || '';
+ result += betweenMatches + '%' + match[1] + '%';
+ startIndex = dollarExpressions.lastIndex;
+ }
+ } while (dollarExpressions.lastIndex > 0)
+ result += value.slice(startIndex);
+ return result
+toBatchSyntax$1.replaceDollarWithPercentPair = replaceDollarWithPercentPair;
+toBatchSyntax$1.convertToSetCommand = convertToSetCommand;
+toBatchSyntax$1.convertToSetCommands = convertToSetCommands;
+
+function convertToSetCommand (key, value) {
+ var line = '';
+ key = key || '';
+ key = key.trim();
+ value = value || '';
+ value = value.trim();
+ if (key && value && value.length > 0) {
+ line = '@SET ' + key + '=' + replaceDollarWithPercentPair(value) + '\r\n';
+ }
+ return line
+}
+
+function extractVariableValuePairs (declarations) {
+ var pairs = {};
+ declarations.map(function (declaration) {
+ var split = declaration.split('=');
+ pairs[split[0]] = split[1];
+ });
+ return pairs
+}
+
+function convertToSetCommands (variableString) {
+ var variableValuePairs = extractVariableValuePairs(variableString.split(' '));
+ var variableDeclarationsAsBatch = '';
+ Object.keys(variableValuePairs).forEach(function (key) {
+ variableDeclarationsAsBatch += convertToSetCommand(key, variableValuePairs[key]);
+ });
+ return variableDeclarationsAsBatch
+}
+
+function replaceDollarWithPercentPair (value) {
+ var dollarExpressions = /\$\{?([^$@#?\- \t{}:]+)\}?/g;
+ var result = '';
+ var startIndex = 0;
+ do {
+ var match = dollarExpressions.exec(value);
+ if (match) {
+ var betweenMatches = value.substring(startIndex, match.index) || '';
+ result += betweenMatches + '%' + match[1] + '%';
+ startIndex = dollarExpressions.lastIndex;
+ }
+ } while (dollarExpressions.lastIndex > 0)
+ result += value.slice(startIndex);
+ return result
+}
+
+// On windows, create a .cmd file.
Expand Down
9 changes: 9 additions & 0 deletions patches/lottie-react-native/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# List of all patches

Will require a bump, but it downloads things from sites which are not whitelisted on our backend so we need to do it through proxy.

- [lottie-react-native+6.5.1+001+recycling.patch](lottie-react-native+6.5.1+001+recycling.patch)

- [lottie-react-native+6.5.1+002+bridgeless.patch](lottie-react-native+6.5.1+002+bridgeless.patch)

- [lottie-react-native+6.5.1+003+support-RN-77.patch](lottie-react-native+6.5.1+003+support-RN-77.patch)
5 changes: 5 additions & 0 deletions patches/react-beautiful-dnd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List of all patches

- [react-beautiful-dnd+13.1.1.patch](react-beautiful-dnd+13.1.1.patch)
- no upstream PR

8 changes: 8 additions & 0 deletions patches/react-compiler-healtcheck/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List of all patches

- [react-compiler-healthcheck+19.0.0-beta-8a03594-20241020+001+initial.patch](react-compiler-healthcheck+19.0.0-beta-8a03594-20241020+001+initial.patch)
- no upstream PR

- [react-compiler-healthcheck+19.0.0-beta-8a03594-20241020+002+enable-ref-identifiers.patch](react-compiler-healthcheck+19.0.0-beta-8a03594-20241020+002+enable-ref-identifiers.patch)

- [react-compiler-healthcheck+19.0.0-beta-8a03594-20241020+003+json.patch](react-compiler-healthcheck+19.0.0-beta-8a03594-20241020+003+json.patch)
4 changes: 4 additions & 0 deletions patches/react-native-animatable/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-animatable+1.3.3+001+initial.patch](react-native-animatable+1.3.3+001+initial.patch)
- [react-native-animatable+1.3.3+002+fixAnimationFlicker.patch](react-native-animatable+1.3.3+002+fixAnimationFlicker.patch)
4 changes: 4 additions & 0 deletions patches/react-native-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-config+1.5.3.patch](react-native-config+1.5.3.patch)
- no upstream PR
5 changes: 5 additions & 0 deletions patches/react-native-device-info/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List of all patches

- [react-native-device-info+10.3.1+001+initial.patch](react-native-device-info+10.3.1+001+initial.patch)
- [react-native-device-info+10.3.1+002+turbomodule.patch](react-native-device-info+10.3.1+002+turbomodule.patch)
- no upstream PR
7 changes: 7 additions & 0 deletions patches/react-native-draggable-flatlist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# List of all patches

- [react-native-draggable-flatlist+4.0.1+001+initial.patch](react-native-draggable-flatlist+4.0.1+001+initial.patch)
- Link to upstream PR: https://github.com/computerjazz/react-native-draggable-flatlist/pull/551

- [react-native-draggable-flatlist+4.0.1+002+fix-console-error-ref-measureLayout.patch](react-native-draggable-flatlist+4.0.1+002+fix-console-error-ref-measureLayout.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/react-native-gesture-handler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-gesture-handler+2.22.0+001+fixTests.patch](react-native-gesture-handler+2.22.0+001+fixTests.patch)
- no upstream PR
8 changes: 8 additions & 0 deletions patches/react-native-image-picker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List of all patches

- [react-native-image-picker+7.1.2+001+allowedMimeTypes.patch](react-native-image-picker+7.1.2+001+allowedMimeTypes.patch)
- Link to upstream PR: https://github.com/react-native-image-picker/react-native-image-picker/pull/2145#issuecomment-2687344848
- patch included in version 8.2.0

- [react-native-image-picker+7.1.2+002+callback-in-completion-block.patch](react-native-image-picker+7.1.2+002+callback-in-completion-block.patch)
- no upstream PR
10 changes: 10 additions & 0 deletions patches/react-native-modal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# List of all patches

- new version 14.0.0 is on the way: https://github.com/react-native-modal/react-native-modal/releases/tag/v14.0.0-rc.0

- [react-native-modal+13.0.1+001+initial.patch](react-native-modal+13.0.1+001+initial.patch)
- no upstream PR
- [react-native-modal+13.0.1+002+fix-modal-flicker-on-open.patch](react-native-modal+13.0.1+002+fix-modal-flicker-on-open.patch)
- may be fixed by the new version
- [react-native-modal+13.0.1+002+modal-navigation-bar-translucent.patch](react-native-modal+13.0.1+002+modal-navigation-bar-translucent.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/react-native-pager-view/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-pager-view+6.5.1+001+initial.patch](react-native-pager-view+6.5.1+001+initial.patch)
- no upstream PR
5 changes: 5 additions & 0 deletions patches/react-native-pdf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List of all patches

- [react-native-pdf+6.7.3+001+initial.patch](react-native-pdf+6.7.3+001+initial.patch)
- [react-native-pdf+6.7.3+002+fix-incorrect-decoding.patch](react-native-pdf+6.7.3+002+fix-incorrect-decoding.patch)
- [react-native-pdf+6.7.3+003+update-podspec.patch](react-native-pdf+6.7.3+003+update-podspec.patch)
4 changes: 4 additions & 0 deletions patches/react-native-performance/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-performance+5.1.0+001+bridgeless.patch](react-native-performance+5.1.0+001+bridgeless.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/react-native-plaid-link/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-plaid-link-sdk+11.11.0.patch](react-native-plaid-link-sdk+11.11.0.patch)
- can be moved to Mobile-Expensify/patches
6 changes: 6 additions & 0 deletions patches/react-native-quick-sqlite/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# List of all patches

- deprecated in favour of https://github.com/ospfranco/react-native-quick-sqlite

- [react-native-quick-sqlite+8.1.0+001+bridgeless.patch](react-native-quick-sqlite+8.1.0+001+bridgeless.patch)
- [react-native-quick-sqlite+8.1.0+002+rn76.patch](react-native-quick-sqlite+8.1.0+002+rn76.patch)
22 changes: 22 additions & 0 deletions patches/react-native-reanimated/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# List of all patches

- [react-native-reanimated+3.16.7+001+catch-all-exceptions-on-stoi.patch](react-native-reanimated+3.16.7+001+catch-all-exceptions-on-stoi.patch)
- Link to upstream PR: https://github.com/software-mansion/react-native-reanimated/pull/6773

- [react-native-reanimated+3.16.7+002+dontWhitelistTextProp.patch](react-native-reanimated+3.16.7+002+dontWhitelistTextProp.patch)
- no upstream PR

- [react-native-reanimated+3.16.7+003+hybrid-app.patch](react-native-reanimated+3.16.7+003+hybrid-app.patch)
- can be moved to Mobile-Expensify/patches (probably)

- [react-native-reanimated+3.16.7+004+targets-for-markdown.patch](react-native-reanimated+3.16.7+004+targets-for-markdown.patch)
- not available for upstream due to changes in Reanimated core, should be removed when we bump live-markdown version since it was fixed there in https://github.com/Expensify/react-native-live-markdown/pull/627

- [react-native-reanimated+3.16.7+005+fix-transform-animation-gitter.patch](react-native-reanimated+3.16.7+005+fix-transform-animation-gitter.patch)
- no upstream PR

- [react-native-reanimated+3.16.7+006+fix-web-layout-animation.patch](react-native-reanimated+3.16.7+006+fix-web-layout-animation.patch)
- no upstream PR

- [react-native-reanimated+3.16.7+007+fix-worklet-runtime-creation.patch](react-native-reanimated+3.16.7+007+fix-worklet-runtime-creation.patch)
- no upstream PR
6 changes: 6 additions & 0 deletions patches/react-native-render-html/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# List of all patches

- [react-native-render-html+6.3.1+002+fix-console-warning.patch](react-native-render-html+6.3.1+002+fix-console-warning.patch)
- no upstream PR
- [react-native-render-html+6.3.1.patch](react-native-render-html+6.3.1.patch)
- no upstream PR
13 changes: 13 additions & 0 deletions patches/react-native-screens/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# List of all patches

- [react-native-screens+3.35.0+001+hybrid-app.patch](react-native-screens+3.35.0+001+hybrid-app.patch)
- can be moved to Mobile-Expensify/patches

- [react-native-screens+3.35.0+002+ios-custom-animations-native-transitions.patch](react-native-screens+3.35.0+002+ios-custom-animations-native-transitions.patch)
- no upstream PR

- [react-native-screens+3.35.0+003+fix-screen-flicker-on-modal-unmount.patch](react-native-screens+3.35.0+003+fix-screen-flicker-on-modal-unmount.patch)
- no upstream PR

- [react-native-screens+3.35.0+004+cover-all-cases.patch](react-native-screens+3.35.0+004+cover-all-cases.patch)
- fixed in 4.x so it will removed when we bump to those versions, hopefully soon
4 changes: 4 additions & 0 deletions patches/react-native-sound/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-sound+0.11.2.patch](react-native-sound+0.11.2.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/react-native-tab-view/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-tab-view+3.5.2.patch](react-native-tab-view+3.5.2.patch)
- no upstream PR
4 changes: 4 additions & 0 deletions patches/react-native-vision-camera/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of all patches

- [react-native-vision-camera+4.6.1.patch](react-native-vision-camera+4.6.1.patch)
- no upstream PR
Loading
Loading