-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA] Upgrade RN to 0.70.4 (aka 0.70.1) #10860
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0900616
Upgrade RN to 0.70.1
roryabraham 32125f8
Bump react-test-renderer to 18.2.0
roryabraham 5111caa
Rename loadLibrary call
roryabraham e003fac
Merge branch 'main' into Rory-UpgradeRN
roryabraham 0461aed
Update RN to @expensify/react-native@0.70.2
roryabraham e3a69b2
Update xcproj
roryabraham 12b7bda
Bump version to 0.70.3 and install pods
roryabraham dfb7adf
Merge branch 'main' into Rory-UpgradeRN
roryabraham 386ef8b
Bump reanimated to fix android crash
roryabraham ead43fd
Update reanimated pod
roryabraham b4cd378
Update RN fork to 0.70.4
roryabraham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ apply plugin: "com.google.firebase.firebase-perf" | |
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" | ||
|
||
import com.android.build.OutputFile | ||
import org.apache.tools.ant.taskdefs.condition.Os | ||
|
||
/** | ||
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets | ||
|
@@ -160,22 +161,14 @@ android { | |
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() | ||
|
||
if (isNewArchitectureEnabled()) { | ||
// We configure the NDK build only if you decide to opt-in for the New Architecture. | ||
// We configure the CMake build only if you decide to opt-in for the New Architecture. | ||
externalNativeBuild { | ||
ndkBuild { | ||
arguments "APP_PLATFORM=android-21", | ||
"APP_STL=c++_shared", | ||
"NDK_TOOLCHAIN_VERSION=clang", | ||
"GENERATED_SRC_DIR=$buildDir/generated/source", | ||
"PROJECT_BUILD_DIR=$buildDir", | ||
"REACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", | ||
"REACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", | ||
"NODE_MODULES_DIR=$rootDir/../node_modules" | ||
cFlags "-Wall", "-Werror", "-fexceptions", "-frtti", "-DWITH_INSPECTOR=1" | ||
cppFlags "-std=c++17" | ||
// Make sure this target name is the same you specify inside the | ||
// src/main/jni/Android.mk file for the `LOCAL_MODULE` variable. | ||
targets "rndiffapp_appmodules" | ||
cmake { | ||
arguments "-DPROJECT_BUILD_DIR=$buildDir", | ||
"-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", | ||
"-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", | ||
"-DNODE_MODULES_DIR=$rootDir/../node_modules", | ||
"-DANDROID_STL=c++_shared" | ||
} | ||
} | ||
if (!enableSeparateBuildPerCPUArchitecture) { | ||
|
@@ -189,8 +182,8 @@ android { | |
if (isNewArchitectureEnabled()) { | ||
// We configure the NDK build only if you decide to opt-in for the New Architecture. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We configure the CMake build |
||
externalNativeBuild { | ||
ndkBuild { | ||
path "$projectDir/src/main/jni/Android.mk" | ||
cmake { | ||
path "$projectDir/src/main/jni/CMakeLists.txt" | ||
} | ||
} | ||
def reactAndroidProjectDir = project(':ReactAndroid').projectDir | ||
|
@@ -211,15 +204,15 @@ android { | |
preDebugBuild.dependsOn(packageReactNdkDebugLibs) | ||
preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) | ||
// Due to a bug inside AGP, we have to explicitly set a dependency | ||
// between configureNdkBuild* tasks and the preBuild tasks. | ||
// between configureCMakeDebug* tasks and the preBuild tasks. | ||
// This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 | ||
configureNdkBuildRelease.dependsOn(preReleaseBuild) | ||
configureNdkBuildDebug.dependsOn(preDebugBuild) | ||
configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) | ||
configureCMakeDebug.dependsOn(preDebugBuild) | ||
reactNativeArchitectures().each { architecture -> | ||
tasks.findByName("configureNdkBuildDebug[${architecture}]")?.configure { | ||
tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { | ||
dependsOn("preDebugBuild") | ||
} | ||
tasks.findByName("configureNdkBuildRelease[${architecture}]")?.configure { | ||
tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { | ||
dependsOn("preReleaseBuild") | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.13) | ||
|
||
# Define the library name here. | ||
project(newexpensify_appmodules) | ||
|
||
# This file includes all the necessary to let you build your application with the New Architecture. | ||
include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we're switching from the ndk to Cmake? In which case, can we remove the other ndk config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well we're switching from
ndk-build
toCMake
, but the Java NDK is still used ... that's what enables Java and C++ code to communicate with eachother