File tree Expand file tree Collapse file tree 6 files changed +611
-655
lines changed
Expand file tree Collapse file tree 6 files changed +611
-655
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11apply plugin : " com.android.application"
22
33import com.android.build.OutputFile
4+ import org.apache.tools.ant.taskdefs.condition.Os
45
56/**
67 * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
@@ -157,6 +158,15 @@ android {
157158 // Make sure this target name is the same you specify inside the
158159 // src/main/jni/Android.mk file for the `LOCAL_MODULE` variable.
159160 targets " enderchat_appmodules"
161+ // Fix for windows limit on number of character in file paths and in command lines
162+ if (Os . isFamily(Os . FAMILY_WINDOWS )) {
163+ arguments " NDK_APP_SHORT_COMMANDS=true"
164+ }
165+ }
166+ }
167+ if (! enableSeparateBuildPerCPUArchitecture) {
168+ ndk {
169+ abiFilters (* reactNativeArchitectures())
160170 }
161171 }
162172 }
Original file line number Diff line number Diff line change 1+ import org.apache.tools.ant.taskdefs.condition.Os
2+
13// Top-level build file where you can add configuration options common to all sub-projects/modules.
24
35buildscript {
@@ -6,7 +8,14 @@ buildscript {
68 minSdkVersion = 21
79 compileSdkVersion = 31
810 targetSdkVersion = 31
9- ndkVersion = " 21.4.7075529"
11+
12+ if (System . properties[' os.arch' ] == " aarch64" ) {
13+ // For M1 Users we need to use the NDK 24 which added support for aarch64
14+ ndkVersion = " 24.0.8215888"
15+ } else {
16+ // Otherwise we default to the side-by-side NDK version from AGP.
17+ ndkVersion = " 21.4.7075529"
18+ }
1019 }
1120 repositories {
1221 google()
You can’t perform that action at this time.
0 commit comments