Skip to content

Commit 105e7df

Browse files
committed
build: add task to delete .tar.gz files before building the app module
1 parent c0a8a62 commit 105e7df

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ android {
6767
}
6868
}
6969

70+
tasks.create<Delete>("deleteTarArchivesFromLlamaCpp") {
71+
delete {
72+
fileTree("${rootProject.projectDir}/llama.cpp") {
73+
include("**/*.tar.gz")
74+
}
75+
}
76+
doLast {
77+
println("Deleted all .tar.gz files from llama.cpp submodule")
78+
}
79+
}
80+
81+
tasks.named("preBuild") {
82+
dependsOn("deleteTarArchivesFromLlamaCpp")
83+
}
84+
7085
ksp {
7186
arg("KOIN_CONFIG_CHECK", "true")
7287
}

0 commit comments

Comments
 (0)