We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 523edc1 commit 5bca238Copy full SHA for 5bca238
1 file changed
core/build.gradle.kts
@@ -28,15 +28,6 @@ android {
28
}
29
30
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
-
40
kotlin {
41
jvmToolchain(25)
42
@@ -71,3 +62,8 @@ cargo {
71
62
profile = "release"
72
63
73
64
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