File tree 4 files changed +29
-4
lines changed 4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 45
45
public_suffix (~> 4.0 )
46
46
typhoeus (~> 1.0 )
47
47
cocoapods-deintegrate (1.0.5 )
48
- cocoapods-downloader (1.6.2 )
48
+ cocoapods-downloader (1.6.3 )
49
49
cocoapods-plugins (1.0.0 )
50
50
nap
51
51
cocoapods-search (1.0.1 )
71
71
nanaimo (0.3.0 )
72
72
nap (1.1.0 )
73
73
netrc (0.11.0 )
74
- public_suffix (4.0.6 )
74
+ public_suffix (4.0.7 )
75
75
rexml (3.2.5 )
76
76
ruby-macho (2.5.1 )
77
77
typhoeus (1.4.0 )
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.application"
2
2
3
3
import com.android.build.OutputFile
4
+ import org.apache.tools.ant.taskdefs.condition.Os
4
5
5
6
/**
6
7
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
@@ -157,6 +158,17 @@ android {
157
158
// Make sure this target name is the same you specify inside the
158
159
// src/main/jni/Android.mk file for the `LOCAL_MODULE` variable.
159
160
targets " helloworld_appmodules"
161
+
162
+ // Fix for windows limit on number of character in file paths and in command lines
163
+ if (Os . isFamily(Os . FAMILY_WINDOWS )) {
164
+ arguments " NDK_OUT=${ rootProject.projectDir.getParent()} \\ .cxx" ,
165
+ " NDK_APP_SHORT_COMMANDS=true"
166
+ }
167
+ }
168
+ }
169
+ if (! enableSeparateBuildPerCPUArchitecture) {
170
+ ndk {
171
+ abiFilters (* reactNativeArchitectures())
160
172
}
161
173
}
162
174
}
Original file line number Diff line number Diff line change
1
+ import org.apache.tools.ant.taskdefs.condition.Os
2
+
1
3
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
4
3
5
buildscript {
@@ -6,7 +8,18 @@ buildscript {
6
8
minSdkVersion = 21
7
9
compileSdkVersion = 31
8
10
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 if (Os . isFamily(Os . FAMILY_WINDOWS )) {
16
+ // For Android Users, we need to use NDK 23, otherwise the build will
17
+ // fail due to paths longer than the OS limit
18
+ ndkVersion = " 23.1.7779620"
19
+ } else {
20
+ // Otherwise we default to the side-by-side NDK version from AGP.
21
+ ndkVersion = " 21.4.7075529"
22
+ }
10
23
}
11
24
repositories {
12
25
google()
Original file line number Diff line number Diff line change 11
11
},
12
12
"dependencies" : {
13
13
"react" : " 17.0.2" ,
14
- "react-native" : " 0.68.0 "
14
+ "react-native" : " 0.68.1 "
15
15
},
16
16
"devDependencies" : {
17
17
"@babel/core" : " ^7.12.9" ,
You can’t perform that action at this time.
0 commit comments