-
Notifications
You must be signed in to change notification settings - Fork 25k
WIP: Add an explicit NDK version to RNTester and ReactAndroid #29987
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
Conversation
Base commit: 7b82df2 |
Base commit: abff021 |
|
Actually I have a question about this explicit version specification: #29403 (comment)
FB uses a different internal version of the NDK, so it will conflict with the version you specify here, hence my question linked above |
|
Based on #29403 (comment), I wonder if we can make https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle#L249-L271 a little smarter by detecting the version you specify here. If that's possible, that would reduce confusion a lot. Side note: is there a way to put all these "blessed versions" in one place so that we minimize repetition? E.g. perhaps we could put it in the root project config? |
|
@fkgozali Kindly check I just updated the For me, I think this is the best approach, considering that support for |
|
Thanks for the PR @gedeagas! I think in general we should keep this aligned with whatever the currently used version the Android Gradle plugin defaults to, unless there is a specific reason to use a different version. For AGP versions 3.5 and later, this page states:
Since React Native is currently using Also, I don't think it should be inside |
|
Also (in case I missed it somewhere in the long discussion) - The point of |
|
Yes, @friederbluemle, you are correct this pr is to ensure we all use the same version of NDK. And prevent people from using the different NDK version than we already specified on the React NativeGradle template file We should use the same version of NDK on Gradle or Buck to ensure that a specific state of the repository is always built with the same exact tools. |
facebook-github-bot
left a comment
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.
@fkgozali has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
Hmm looks like this broke the test_android CI? Can you take a look? |
|
@fkgozali we probably need to wait for this one #29050. The Android dockerfile is already being migrated to use Side by Side NDK. Compile Native Libs is successful |
6f7733b to
819452b
Compare
Summary: This does a few things: * Remove USE_CODEGEN flag so that TurboModule is enabled by default for RNTester * Use the codegen output for Java/JNI spec files * Remove the checked in com.facebook.fbreact.specs Java/JNI files Changelog: [Changed][Android] RNTester now enables TurboModule by default using codegen. Reviewed By: RSNara Differential Revision: D24382083 fbshipit-source-id: 87e3e0581bac3287ef01c1a0deb070c1d7d40f2d
Summary: Pull Request resolved: facebook#30259 Before side-by-side NDK is supported by the Circle CI image, pending facebook#29050 & facebook#29987, this local.properties file forces Gradle to use the specified SDK/NDK path. We do this internally at FB CI as well. This addresses the following failure: https://app.circleci.com/pipelines/github/facebook/react-native/6851/workflows/9fd91d5d-3f05-4521-93fc-95abd5c84227/jobs/173735 Also, this fixed bad src copy for Buck-building: `//packages/react-native-codegen:setup_cli` Changelog: [Internal] Reviewed By: hramos Differential Revision: D24577333 fbshipit-source-id: 93f11c3e3a3f699415739d0760ee10909eb748ed
facebook-github-bot
left a comment
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.
@ShikaSD has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
This pull request was successfully merged by @gedeagas in 5b34c98. When will my fix make it into a release? | Upcoming Releases |

Summary
When I try to run RNTester with Gradle the RNTester Required me to use NDK 20.0.5594570. I can't seem to find an explicit NDK version anywhere in ReactAndroid and RNTester. This PR Aims to add an explicit NDK version to RNTester and ReactAndroid.
Changelog
[Android] [Added] - Add an explicit NDK version to RNTester and ReactAndroid.
Test Plan
Build manually from RNTester