Skip to content

Commit 15b134d

Browse files
committed
React Native 0.68.2 + peer warning fix.
1 parent 2478c73 commit 15b134d

File tree

6 files changed

+611
-655
lines changed

6 files changed

+611
-655
lines changed

Gemfile.lock

Lines changed: 0 additions & 100 deletions
This file was deleted.

android/app/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: "com.android.application"
22

33
import 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
}

android/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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

35
buildscript {
@@ -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()

0 commit comments

Comments
 (0)