-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Expensify:main' into ts-migration/31988
- Loading branch information
Showing
82 changed files
with
731 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
__mocks__/@react-navigation/native/index.js → __mocks__/@react-navigation/native/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+101 Bytes
(100%)
ios/NewApp_AdHoc_Notification_Service.mobileprovision.gpg
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/node_modules/@react-native-camera-roll/camera-roll/android/build.gradle b/node_modules/@react-native-camera-roll/camera-roll/android/build.gradle | ||
index 3f76132..63dc946 100644 | ||
--- a/node_modules/@react-native-camera-roll/camera-roll/android/build.gradle | ||
+++ b/node_modules/@react-native-camera-roll/camera-roll/android/build.gradle | ||
@@ -81,7 +81,9 @@ def findNodeModulePath(baseDir, packageName) { | ||
} | ||
|
||
def resolveReactNativeDirectory() { | ||
- def reactNative = file("${findNodeModulePath(rootProject.projectDir, "react-native")}") | ||
+ def projectDir = this.hasProperty('reactNativeProject') ? this.reactNativeProject : rootProject.projectDir | ||
+ def modulePath = file(projectDir); | ||
+ def reactNative = file("${findNodeModulePath(modulePath, 'react-native')}") | ||
if (reactNative.exists()) { | ||
return reactNative | ||
} |
52 changes: 52 additions & 0 deletions
52
patches/@react-native-community+cli-platform-android+12.3.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
diff --git a/node_modules/@react-native-community/cli-platform-android/native_modules.gradle b/node_modules/@react-native-community/cli-platform-android/native_modules.gradle | ||
index bbfa7f7..ed53872 100644 | ||
--- a/node_modules/@react-native-community/cli-platform-android/native_modules.gradle | ||
+++ b/node_modules/@react-native-community/cli-platform-android/native_modules.gradle | ||
@@ -140,6 +140,7 @@ class ReactNativeModules { | ||
private Logger logger | ||
private String packageName | ||
private File root | ||
+ private File rnRoot | ||
private ArrayList<HashMap<String, String>> reactNativeModules | ||
private ArrayList<String> unstable_reactLegacyComponentNames | ||
private HashMap<String, ArrayList> reactNativeModulesBuildVariants | ||
@@ -147,9 +148,10 @@ class ReactNativeModules { | ||
|
||
private static String LOG_PREFIX = ":ReactNative:" | ||
|
||
- ReactNativeModules(Logger logger, File root) { | ||
+ ReactNativeModules(Logger logger, File root, File rnRoot) { | ||
this.logger = logger | ||
this.root = root | ||
+ this.rnRoot = rnRoot | ||
|
||
def (nativeModules, reactNativeModulesBuildVariants, androidProject, reactNativeVersion) = this.getReactNativeConfig() | ||
this.reactNativeModules = nativeModules | ||
@@ -416,10 +418,10 @@ class ReactNativeModules { | ||
*/ | ||
def cliResolveScript = "try {console.log(require('@react-native-community/cli').bin);} catch (e) {console.log(require('react-native/cli').bin);}" | ||
String[] nodeCommand = ["node", "-e", cliResolveScript] | ||
- def cliPath = this.getCommandOutput(nodeCommand, this.root) | ||
+ def cliPath = this.getCommandOutput(nodeCommand, this.rnRoot) | ||
|
||
String[] reactNativeConfigCommand = ["node", cliPath, "config"] | ||
- def reactNativeConfigOutput = this.getCommandOutput(reactNativeConfigCommand, this.root) | ||
+ def reactNativeConfigOutput = this.getCommandOutput(reactNativeConfigCommand, this.rnRoot) | ||
|
||
def json | ||
try { | ||
@@ -486,7 +488,13 @@ class ReactNativeModules { | ||
*/ | ||
def projectRoot = rootProject.projectDir | ||
|
||
-def autoModules = new ReactNativeModules(logger, projectRoot) | ||
+def autoModules | ||
+ | ||
+if(this.hasProperty('reactNativeProject')){ | ||
+ autoModules = new ReactNativeModules(logger, projectRoot, new File(projectRoot, reactNativeProject)) | ||
+} else { | ||
+ autoModules = new ReactNativeModules(logger, projectRoot, projectRoot) | ||
+} | ||
|
||
def reactNativeVersionRequireNewArchEnabled(autoModules) { | ||
def rnVersion = autoModules.reactNativeVersion |
Oops, something went wrong.