Commit bd7caa6 1 parent 0fccbd5 commit bd7caa6 Copy full SHA for bd7caa6
File tree 5 files changed +10
-20
lines changed
packages/rn-tester/android/app
5 files changed +10
-20
lines changed Original file line number Diff line number Diff line change @@ -648,7 +648,6 @@ jobs:
648
648
- ANDROID_BUILD_VERSION : 31
649
649
- ANDROID_TOOLS_VERSION : 31.0.0
650
650
- GRADLE_OPTS : -Dorg.gradle.daemon=false
651
- - NDK_VERSION : 21.4.7075529
652
651
steps :
653
652
- checkout
654
653
@@ -694,7 +693,6 @@ jobs:
694
693
sdkmanager "build-tools;%ANDROID_TOOLS_VERSION%"
695
694
sdkmanager "add-ons;addon-google_apis-google-23"
696
695
sdkmanager "extras;android;m2repository"
697
- sdkmanager "ndk;%NDK_VERSION%"
698
696
699
697
# -------------------------
700
698
# Run Tests
Original file line number Diff line number Diff line change @@ -274,11 +274,11 @@ task installArchives {
274
274
275
275
android {
276
276
compileSdkVersion 31
277
- if (project . hasProperty( " ANDROID_NDK_VERSION " )) {
278
- ndkVersion project . property( " ANDROID_NDK_VERSION " )
279
- }
280
- if (project . hasProperty( " ANDROID_NDK_PATH " )) {
281
- ndkPath project . property( " ANDROID_NDK_PATH " )
277
+
278
+ // Used to override the NDK path & version on internal CI
279
+ if ( System . getenv( " ANDROID_NDK " ) != null && System . getenv( " LOCAL_ANDROID_NDK_VERSION " ) != null ) {
280
+ ndkPath System . getenv( " ANDROID_NDK " )
281
+ ndkVersion System . getenv( " LOCAL_ANDROID_NDK_VERSION " )
282
282
}
283
283
284
284
defaultConfig {
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ allprojects {
39
39
}
40
40
}
41
41
}
42
-
43
- // used to override ndk path/version from env variables on CI
44
- ext[" ANDROID_NDK_PATH" ] = null
45
- if (System .getenv(" LOCAL_ANDROID_NDK_VERSION" ) != null ) {
46
- setProperty(" ANDROID_NDK_VERSION" , System .getenv(" LOCAL_ANDROID_NDK_VERSION" ))
47
- ext[" ANDROID_NDK_PATH" ] = System .getenv(" ANDROID_NDK" )
48
- }
49
42
}
50
43
51
44
tasks.register(" cleanAll" , Delete ::class .java) {
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ org.gradle.daemon=true
4
4
org.gradle.jvmargs =-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
5
5
org.gradle.parallel =true
6
6
7
- ANDROID_NDK_VERSION =21.4.7075529
8
7
android.useAndroidX =true
9
8
kotlin_version =1.5.31
10
9
Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ def reactNativeArchitectures() {
143
143
144
144
android {
145
145
compileSdkVersion 31
146
- if (project . hasProperty( " ANDROID_NDK_VERSION " )) {
147
- ndkVersion project . property( " ANDROID_NDK_VERSION " )
148
- }
149
- if (project . hasProperty( " ANDROID_NDK_PATH " )) {
150
- ndkPath project . property( " ANDROID_NDK_PATH " )
146
+
147
+ // Used to override the NDK path & version on internal CI
148
+ if ( System . getenv( " ANDROID_NDK " ) != null && System . getenv( " LOCAL_ANDROID_NDK_VERSION " ) != null ) {
149
+ ndkPath System . getenv( " ANDROID_NDK " )
150
+ ndkVersion System . getenv( " LOCAL_ANDROID_NDK_VERSION " )
151
151
}
152
152
153
153
flavorDimensions " vm"
You can’t perform that action at this time.
0 commit comments