Skip to content

Commit e4ac2ae

Browse files
Maxim Zhemerenkomaksim.zhemerenko
andauthored
Add ndkVersion to Android project (#271)
Co-authored-by: maksim.zhemerenko <[email protected]>
1 parent 9e5daae commit e4ac2ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

android/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ if (isNewArchitectureEnabled()) {
3232
android {
3333
compileSdkVersion getExtOrDefault('compileSdkVersion', 30)
3434

35+
// Used to override the NDK path/version on internal CI or by allowing
36+
// users to customize the NDK path/version from their root project (e.g. for M1 support)
37+
if (rootProject.hasProperty("ndkPath")) {
38+
ndkPath rootProject.ext.ndkPath
39+
}
40+
if (rootProject.hasProperty("ndkVersion")) {
41+
ndkVersion rootProject.ext.ndkVersion
42+
}
43+
3544
defaultConfig {
3645
minSdkVersion getExtOrDefault('minSdkVersion', 16)
3746
targetSdkVersion getExtOrDefault('targetSdkVersion', 28)

0 commit comments

Comments
 (0)