Skip to content

Commit 87dc12c

Browse files
committed
fix: android build
1 parent 1f7a570 commit 87dc12c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

examples/SampleApp/android/build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ subprojects { subproject ->
3434
if (subproject.path != ":app") {
3535
evaluationDependsOn(":app")
3636
}
37+
38+
subproject.tasks.matching { it.name == "generateCodegenArtifactsFromSchema" }.configureEach { codegenTask ->
39+
project(":app").tasks.matching { task ->
40+
task.name.startsWith("configureCMake")
41+
}.configureEach {
42+
dependsOn(codegenTask)
43+
}
44+
}
3745
}
3846

3947
allprojects {
@@ -49,7 +57,7 @@ allprojects {
4957
}
5058

5159
project(':app') {
52-
tasks.matching { it.name == "preBuild" }.configureEach {
60+
tasks.matching { it.name == "preBuild" || it.name.startsWith("configureCMake") }.configureEach {
5361
dependsOn("generateCodegenArtifactsFromSchema")
5462
}
5563
}

0 commit comments

Comments
 (0)