Skip to content

Commit 5bca238

Browse files
authored
Fix task dependencies (#16)
1 parent 523edc1 commit 5bca238

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

core/build.gradle.kts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ android {
2828
}
2929
}
3030

31-
androidComponents {
32-
onVariants { variant ->
33-
val variantName = variant.name.replaceFirstChar(Char::titlecase)
34-
tasks
35-
.matching { it.name == "compile${variantName}Kotlin" || it.name == "compile${variantName}JavaWithJavac" }
36-
.configureEach { dependsOn("cargoBuild") }
37-
}
38-
}
39-
4031
kotlin {
4132
jvmToolchain(25)
4233
}
@@ -71,3 +62,8 @@ cargo {
7162
profile = "release"
7263
}
7364

65+
val rustJniLibsDir = layout.buildDirectory.dir("rustJniLibs/android").get()!!
66+
tasks.matching { it.name.matches(Regex("merge.*JniLibFolders")) }.configureEach {
67+
inputs.dir(rustJniLibsDir)
68+
dependsOn("cargoBuild")
69+
}

0 commit comments

Comments
 (0)