Skip to content

Commit e6f857c

Browse files
authored
feat(android): use main project's ndkVersion if available (#3)
* feat: use main project's ndkVersion if available * feat: use main project's ndkPath if available
1 parent e7e3550 commit e6f857c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

android/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ android {
5353

5454
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
5555

56+
if (rootProject.hasProperty("ndkPath")) {
57+
ndkPath rootProject.ext.ndkPath
58+
}
59+
60+
if (rootProject.hasProperty("ndkVersion")) {
61+
ndkVersion rootProject.ext.ndkVersion
62+
}
63+
5664
defaultConfig {
5765
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
5866
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")

0 commit comments

Comments
 (0)