Skip to content

Commit ed2b84a

Browse files
committed
feat(android): allow app to define ndkVersion to be used for plugins and app
1 parent cb44cf8 commit ed2b84a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

vendor/gradle-app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ android {
218218
}
219219
}
220220

221+
if (project.hasProperty("ndkVersion")) {
222+
ndkVersion project.ndkVersion
223+
}
224+
221225
compileOptions {
222226
sourceCompatibility JavaVersion.VERSION_17
223227
targetCompatibility JavaVersion.VERSION_17

vendor/gradle-plugin/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ android {
281281
sourceCompatibility JavaVersion.VERSION_17
282282
targetCompatibility JavaVersion.VERSION_17
283283
}
284+
if (project.hasProperty("ndkVersion")) {
285+
ndkVersion project.ndkVersion
286+
}
284287

285288
defaultConfig {
286289
targetSdkVersion computeTargetSdkVersion()

0 commit comments

Comments
 (0)