Skip to content

Commit

Permalink
only update NDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
sethkfman committed May 3, 2023
1 parent ab3b7fb commit 2285dd3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions patches/react-native+0.71.6.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
diff --git a/node_modules/react-native/ReactAndroid/build.gradle b/node_modules/react-native/ReactAndroid/build.gradle
index 155cb59..5b61e5a 100644
--- a/node_modules/react-native/ReactAndroid/build.gradle
+++ b/node_modules/react-native/ReactAndroid/build.gradle
@@ -420,12 +420,8 @@ android {

// Used to override the NDK path/version on internal CI or by allowing
// users to customize the NDK path/version from their root project (e.g. for M1 support)
- if (rootProject.hasProperty("ndkPath")) {
- ndkPath rootProject.ext.ndkPath
- }
- if (rootProject.hasProperty("ndkVersion")) {
- ndkVersion rootProject.ext.ndkVersion
- }
+ ndkPath = "/usr/local/share/android-sdk/ndk-bundle"
+

defaultConfig {
minSdkVersion(21)
diff --git a/node_modules/react-native/ReactAndroid/hermes-engine/build.gradle b/node_modules/react-native/ReactAndroid/hermes-engine/build.gradle
index c714f87..62173ba 100644
--- a/node_modules/react-native/ReactAndroid/hermes-engine/build.gradle
+++ b/node_modules/react-native/ReactAndroid/hermes-engine/build.gradle
@@ -120,12 +120,8 @@ android {

// Used to override the NDK path/version on internal CI or by allowing
// users to customize the NDK path/version from their root project (e.g. for M1 support)
- if (rootProject.hasProperty("ndkPath")) {
- ndkPath rootProject.ext.ndkPath
- }
- if (rootProject.hasProperty("ndkVersion")) {
- ndkVersion rootProject.ext.ndkVersion
- }
+ ndkPath = "/usr/local/share/android-sdk/ndk-bundle"
+

defaultConfig {
minSdkVersion 21

0 comments on commit 2285dd3

Please sign in to comment.